|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with constructing a tree
Yash wrote:
<xsl:template name="do-tree">
<xsl:param name="node"/>
<!-- set of visited nodes -->
<xsl:param name="visited"/>
<!-- process the currenttly visited node -->
<xsl:copy-of select="$node"/>
<!-- get referenced node -->
<xsl:variable name="referenced" select="//feeClauses[
@clauseid=$node/cumputationUnit/complexComputatioUnit/@clauseid]"/>
<!-- check whether the referenced node has been visited -->
<xsl:if test="count($referenced|$visited)!=count($visited)">
<xsl:call-template name="do-tree">
<xsl:with-param name="node" select="$referenced"/>
<!-- don't forget to add the referenced node to the visited list -->
<xsl:with-param name="visited" select="$referenced|$visited"/>
</xsl:call-template>
</xsl:if>
<xsl:template>J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








