xsl-list
[Top] [All Lists]

[xsl] count following-sibling node()

2008-11-13 23:57:53
Assuming the context is:
EVENT[6]
And there are 10 EVENT elements.

Why am I getting different results for the following counts:

<xsl:value-of select="count(following-sibling::EVENT)"/>
<xsl:value-of select="count(following-sibling::node())"/>

Assume the following XML:

<ROOT>
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
  <EVENT />
</ROOT>

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>