[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XT and SAXON treats //ccc and /descendant::ccc different
> By now I thought that //foo is an abbrev form of /descendant::foo > Am I missing something or is there some shared bug ? Thanks. The former. xpath spec says As in location paths, // is short for /descendant-or-self::node()/. > <xsl:value-of select="//ccc[5]"/> gives no hit > <xsl:value-of select="/descendant::ccc[5]"/> gives c22 and one assumes <xsl:value-of select="/descendant-or-self::node()/ccc[5]"/> does the same as // "//ccc[5]" selects ccc elements that are 5th ccc children of their parents. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|