Re: [xsl] number of particular sub elements

Subject: Re: [xsl] number of particular sub elements
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sun, 09 Sep 2007 14:09:40 +0200
John Smith wrote:

so if the context node was 'x' I want to the number of 'y' sub elements:

<x>
    <z />
    <y />
    <z />
    <y />
    <z />
</x>

So want to get the number of 'y' elements which in this case is 2.

count(y) will do.

--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread