xsl-list
[Top] [All Lists]

Re: [xsl] number of particular sub elements

2007-09-09 05:10:08
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/

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