[Home] [By Thread] [By Date] [Recent Entries]
Andreas Peter wrote:
That you receive '9' has already been explained by Eric and Michael. Here are some possible scenarios for what you may mean: If you want to count *all* nodes, I assume you mean all descendants from block. Use: count(//node()). If you want all nodes, but not the whitespace or text nodes, use count(//*). If you want all nodes, but not whitespace nodes, including text nodes, you can use count(//text()[.] | //*). etc Cheers, -- Abel Braaksma
|

Cart



