[Home] [By Thread] [By Date] [Recent Entries]
How about:
<xsl:for-each select="document('factories.xml')//factory">
<xsl:choose>
<xsl:when test="count(preceding-sibling::factory/@widget) > $limit">
<!-- output gadgets -->
<tr>
<td><xsl:value-of select="@name" /></td>
<td>nbsp</td>
<td><xsl:value-of select="$gadgets" /></td>
</tr>
</xsl:when>
<xsl:otherwise>
<!-- output widgets -->
<tr>
<td><xsl:value-of select="@name" /></td>
<td><xsl:value-of select="@widgets" /></td>
<td>nbsp</td>
</tr>
</xsl:otherwise>
</xsl:choose>Failing that, come up with a concise input XML and give an example of the required output XML. Your original question was a bit wordy... On 7/11/06, Steve <subsume@xxxxxxxxx> wrote: Any other takers?
|

Cart



