[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Keeping a running total?
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?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|