[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Given this XML:
and this bit of XSLT:
I get this result:
000
Is this the case? Do parentless trees lose their axes?
[xsl] Sibling axis and as="element()"
Subject: [xsl] Sibling axis and as="element()" From: "andrew welch" <andrew.j.welch@xxxxxxxxx> Date: Mon, 31 Jul 2006 16:11:40 +0100 |
Given this XML:
<xsl:variable name="foo" as="element(foo)+"> <foo/> <foo/> <foo/> </xsl:variable>
and this bit of XSLT:
<xsl:for-each select="$foo"> <xsl:value-of select="count(preceding-sibling::*)"/> </xsl:for-each>
I get this result:
000
I seem to remember David C mentioning something about using as="element()" means the elements are no longer siblings... but I can't find anything about it now.
Is this the case? Do parentless trees lose their axes?
thanks andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE: [xsl] Calender support, cknell | Thread | Re: [xsl] Sibling axis and as="elem, David Carlisle |
Re: [xsl] Make RSS output?, Smoother | Date | [xsl] Disapearing spaces between en, Stan Smeets |
Month |