[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: Recursive substitution
Subject: Re: Recursive substitution From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 11 Mar 1999 17:49:31 GMT |
I get bash-2.01$ xt a.xml a.xsl <PARAM name="tree" value="$depth 1| $depth 1| $$depth 2| $$depth 2| $depth 1| $depth 1| "/> which I think is what you want? from this <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" default-space="strip"> <xsl:template match="CGROUP" > <xsl:choose> <xsl:when test="ancestor(CGROUP)"><xsl:apply-templates/></xsl:when> <xsl:otherwise> <xsl:element name="PARAM"> <xsl:attribute name='name'>tree</xsl:attribute> <xsl:attribute name='value'><xsl:apply-templates/></xsl:attribute> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="CITEM" > <xsl:apply-templates mode="$" select="ancestor(CGROUP)" /> <xsl:apply-templates/> <xsl:text>| </xsl:text> </xsl:template> <xsl:template match="CGROUP" mode="$" >$<xsl:apply-templates mode="$" select="ancestor(CGROUP)" /> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Recursive substitution, Peter Quarendon | Thread | Re: Recursive substitution, Keith Visco |
RE: lambda was RE: W3C-transformati, Didier PH Martin | Date | Re: How to reorder tree by member, Shekhar Kshirsagar |
Month |