This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Removing namespaces from source document (long)


Mike said:
> The basic answer is that <xsl:copy> and <xsl:copy-of> will always
> copy the namespace nodes from the source element to the result
> element. If you don't want them copied, you have to use
>
> <xsl:element name="name()">

Or:

  <xsl:element name="{name()}" namespace-uri="{namespace-uri()}">
    ...
  </xsl:element>

if you want to maintain the namespace of the element... and also to
get it to work (you need {}s so that name() is evaluated rather than
the processor trying to use it as the name of the element and
barfing).
  
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]