Count a element in a specific section

Subject: Count a element in a specific section
From: Stephane St-Denis <Stephane.St-Denis@xxxxxx>
Date: Thu, 09 Sep 1999 11:43:41 -0400
Hi everybody!
I would like to know if it is possible to count a element
in a specific section.

Example :
<ie>
<breakdown>
 <ie>
  <name>
  <ie>
   <name>
  </ie>
 </ie>
</breakdown>
</ie>

XSL :
<xsl:template match="*/ie/name">
 <div class="BodyText">
  <xsl:value-of select="count(from-ancestors(IE in section
Breakdown))"/>
 </div>
</xsl:template>

It is possible to have a statement to execute
this : count(from-ancestors(IE in section Breakdown)).

Thanks !!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread