This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Beginner XSL question
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 16 May 2002 21:12:47 +0200
- Subject: Re: [xsl] Beginner XSL question
- References: <F1624geJhW8P5f3qpF100011bdb@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
using the count()-function:
<xsl:template match="school">
<xsl:value-of select="count(student)"/>
</xsl:template>
Joerg
Arturo C schrieb:
> Hi and sorry my english... how can i count the number of elements, for
> instance, student in the following case:
>
> <school>
> <student>
> ....
> </student>
> <student>
> ....
> </student>
> <student>
> ....
> </student>
> </school>
>
> and show the result (3) in an HTML page using XSL?
>
> Thanks in advance!!
>
> Arturo
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list