|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Equivalence between XSL and XPath expression
> And the question is: Is this XPath expression > > count(./ancestor-or-self::menu)+count(./preceding::menu) > > equivalent to this XSL expression? > > <xsl:variable name="position"> > <xsl:number level='any' count="menu"/> > </xsl:variable> > Almost. xsl:number will never return 0, but the XPath expression might. Take a look at the XSLT 2.0 spec which defines xsl:number in terms of equivalent XPath expressions. Michael Kay http://www.saxonica.com/
|
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








