|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: output node-set
> <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/
|
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








