[Home] [By Thread] [By Date] [Recent Entries]

Subject: count following-sibling node()
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Thu, 13 Nov 2008 21:57:24 -0700
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>

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member