|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: using only xpath string to count list items
Hi Deb
Hello, I am not sure whether it is going to help you or not. But give it a go and see this what you want. <xsl:template match="/task/topic"> <xsl:apply-templates select="subtask" /> </xsl:template> <xsl:template match="subtask"> <xsl:text>Subtask position = </xsl:text><xsl:value-of select="position()" /><br /> <xsl:text>llitem count = </xsl:text><xsl:value-of select="count(list1/l1item)" /><br /> <xsl:for-each select="list1/l1item"> <xsl:text>llitem position in subtask = </xsl:text><xsl:value-of select="position()" /><br /> </xsl:for-each> </xsl:template> Cheers. Arun _________________________________________________________________ NRIs - Free money transfer to India. Fly to India for free! http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 Apply Now.
|
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








