RE: [xsl] superfluous namespace declarations with xsl:element

Subject: RE: [xsl] superfluous namespace declarations with xsl:element
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 11 Dec 2002 09:17:48 -0000
>  > Why are you using <xsl:element name="{name()}"> rather 
> than <xsl:copy>?
> 
> I have to manipulate the text content of these nodes (for the ones,
> that have "[]" around themselves, I use a separate lookup table,
> replacing the actual [value] by the one I found).
> 

I don't understand the detail of what you want to do, but

<xsl:copy>
  ... some instructions here ...
</xsl:copy>

is more-or-less equivalent to:

<xsl:element name="{name()}">
  ... some instructions here ...
</xsl:element>

The only differences are in the way that namespaces are handled, which
probably won't affect you.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread