This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XT and SAXON treats //ccc and /descendant::ccc differently
- To: xsl-list at mulberrytech dot com
- Subject: Re: XT and SAXON treats //ccc and /descendant::ccc differently
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 26 May 2000 09:24:51 +0100 (BST)
- References: <200005260634.AAA17939@skew.org> <392E2F14.77B40120@idoox.com>
- Reply-To: xsl-list at mulberrytech dot com
> 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