xsl-list
[Top] [All Lists]

[xsl] How to include attributes with apply-templates

2007-02-22 12:53:43
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>