Subject: Re: [xsl] How to include attributes with apply-templates From: "Spencer Tickner" <spencertickner@xxxxxxxxx> Date: Thu, 22 Feb 2007 11:57:23 -0800 |
<xsl:template match="myelement"> <mynewelement> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </mynewelement> </xsl:template>
I am writing an XSLT to simply transform the names of elements within an XML file. I am currently using:
<xsl:template match="myelement"> <mynewelement> <xsl:apply-templates/> <mynewelement/> </xsl:template>
What selector do I ad to the xsl:apply-templates to pull the attributes over from my source to the destination?
Thanks!
chad
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to include attributes wit, Chad Chelius | Thread | Re: [xsl] How to include attributes, Mukul Gandhi |
[xsl] How to include attributes wit, Chad Chelius | Date | [xsl] Splitting Excel XML tables us, Scott Lynch |
Month |