RE: [xsl] xml to xml transformation

Subject: RE: [xsl] xml to xml transformation
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 16 May 2003 09:20:29 +0300

> My problem is that I want to Sum the total of all the Batches 
> belonging to each Entity(including its Sub-Entities). For 

  <xsl:template match="Entity">
      <xsl:apply-templates select="node()"/>
        <xsl:value-of select="sum(descendant::TotalAmount)"/>
  <xsl:template match="@*|node()">
      <xsl:apply-templates select="@*|node()"/>

> how chould I go about it. In a programming world, this would 
> be achieved through recursive functions. How Would I do this in XSLt.

You can use recursive template calls in XSLT--though in this case you need not.


Jarno - Dulce Liquido: Psicosis

 XSL-List info and archive:

Current Thread