xsl-list
[Top] [All Lists]

Re: [xsl] question about count(node())

2007-06-22 16:05:52
 Hi Abel,

On 6/22/07, Abel Braaksma wrote:
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

Actually, rather count(.//node()), count(.//*), etc... unless the OP
wants to count all nodes in the document ;)

Cheers,

Eric Bréchemier

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