[Home] [By Thread] [By Date] [Recent Entries]
Please try the technique illustrated in the following stylesheet:
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" /> <xsl:template match="/test"> <xsl:value-of select="count(B[generate-id() = generate-id(following-sibling::C[1]/preceding-sibling::B[1])])" /> </xsl:template> </xsl:stylesheet> The above stylesheet prints 2, when applied to the given XML. On 12/6/06, Ken Tam <kentam@xxxxxxxxxxxxxxx> wrote: Hi all, -- Regards, Mukul Gandhi
|

Cart



