|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using <xsl:for-each> and position() to increase i
David,
One may use a recursively-called template to print things such as padding. For example: <xsl:for-each ...>
<xsl:call-template name="pad">
<xsl:with-param name="padlen" select="position()/>
</...>
...print more stuff...
</...><xsl:template name="pad"> <xsl:param name="padlen" select="0"/> <xsl:if test="$padlen > 0">
<xsl:text> </...>
<xsl:call-template name="pad">
<xsl:with-param name="padlen" select="$padlen - 1"/>
</...>
</...>
</...>From: "David Gadd" <David.Gadd@xxxxxxxxxxxxxxxxxxx> _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
|
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
|

Cart








