Subject: RE: [xsl] output node-set From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 1 Apr 2005 19:55:59 +0100 |
> <xsl:template match="path"> > <xsl:for-each select="*"> > <xsl:choose> > > <xsl:when test="'self::dig'"> > <xsl:copy-of select="dig[node()]"/> > </xsl:when> > > <xsl:when test="'self::nondig'"> > <xsl:copy-of select="nondig[node()]""/> > </xsl:when> > > <xsl:when test="'self::CCTo'"> > <CCTo /> > </xsl:when> > XSLT provides an apply-templates instruction so you don't have to do this. Replace this by: <xsl:template match="path"> <xsl:apply-templates/> </xsl:template> <xsl:template match="dig"> <xsl:copy-of select="."/> </xsl:template> etc. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] output node-set, 04083259 | Thread | RE: [xsl] output node-set, Michael Kay |
[xsl] output node-set, 04083259 | Date | RE: [xsl] output node-set, Bondarenko, Taras |
Month |