|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPATH question
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
|
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
|






