xsl-list
[Top] [All Lists]

Re: [xsl] How to include attributes with apply-templates

2007-02-24 12:09:24
On 2/23/07, Chad Chelius <cchelius(_at_)agitraining(_dot_)com> wrote:
What selector do I ad to the xsl:apply-templates to pull the
attributes over from my source to the destination?

As Spencer said, you need to use <xsl:copy-of select="@*" /> to copy
attribute nodes from source tree to result tree.

The purpose of xsl:apply-templates is to find templates in the
stylesheet (or use built-in template rules) and apply them to the
nodes from source tree.

--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
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>