[Home] [By Thread] [By Date] [Recent Entries]

Subject: How to include attributes with apply-templates
From: Chad Chelius <cchelius@xxxxxxxxxxxxxxx>
Date: Thu, 22 Feb 2007 14:53:14 -0500
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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member