Subject: [xsl] copy attribute question From: Garvin Riensche <g.riensche@xxxxxxx> Date: Tue, 24 Mar 2009 23:14:22 +0100 |
Input: <a id="1"/>
Template 1: <xsl:template match="a/@*"> <aa> <xsl:copy/> </aa> </xsl:template>
Template 2: <xsl:template match="a"> <xsl:for-each select="@*"> <aa> <xsl:copy/> </aa> </xsl:for-each> </xsl:template>
Template 1 doesn't produce any output and template 2 outputs: <aa id="1"/>
regards, Garvin
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Identity Tranlate, too ma, Karl Stubsjoen | Thread | RE: [xsl] copy attribute question, Geert Josten |
RE: [xsl] Compound filter in for-ea, Wendell Piez | Date | RE: [xsl] copy attribute question, Geert Josten |
Month |