[xsl] copy of attributes

Subject: [xsl] copy of attributes
From: news@xxxxxxxxxxx
Date: Thu, 21 Oct 2004 10:41:52 +0200
Hello List,

I want to performe a copy of an nodesets attributes. I can'nt use
xsl:copy-of, because I dont want to copy all the child nodes. Is it possible
to do this? Or do I have to copy each attribute manually by doing something
like this: 

<node>
  <xsl:attribute name="attr"><xsl:value-of select="@attr"/></xsl:attribute>
</node>

?

I find this quite circuitous. 

Thanks!

Jan

Current Thread