|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: current() - referring to top in nested predicates
Subject: Re: current() - referring to top in nested predicates
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Wed, 06 Aug 2008 14:47:01 +0200
|
Martin Honnen schrieb:
Michael Ludwig wrote:
Michael Ludwig schrieb:
<xsl:template match="/">
<xsl:variable name="b" select="//B"/>
<xsl:apply-templates select="
//T [ position() != last() ]
[ count( $b[. >= current() and
. < current()/following-sibling::T[1]]) > 0]"/>
</xsl:template>
What does current() refer to here? To the node-set contained in $b?
To the root node (the document node), because it is inside of
xsl:template match="/".
Great! I had to verify it, because I didn't want to believe it.
Got rid of a long-lasting misconception or uncertainty now. Thanks!
Michael Ludwig
|
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
| RSS 2.0 |
|
| Atom 0.3 |
|
|