[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Beginner XSL question
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 16 May 2002 21:12:47 +0200
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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member