xsl-list
[Top] [All Lists]

Re: [xsl] current() - referring to top in nested predicates

2008-08-06 05:47:37
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
                      . &lt; 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--