xsl-list
[Top] [All Lists]

copy of attributes

2004-10-21 01:41:52
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


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