Subject: Re: How to include attributes with apply-templates
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sun, 25 Feb 2007 00:39:09 +0530
|
On 2/23/07, Chad Chelius <cchelius@xxxxxxxxxxxxxxx> 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
|