|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: getting rid of xmlns
Thanks.
copy-namespaces='no'
works great. Problem solved. Sorry I forgot to say I am using XSLT 2.0.
Jim Albright
704 843-0582
Wycliffe Bible Translators
Date: Sun, 27 Feb 2005 03:15:02 -0000
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Subject: RE: getting rid of xmlns
Message-Id: <200502270315.j1R3FZo09975@xxxxxxxxxxxxxxxxxxxxxxx>
If the namespaces came from the stylesheet, use exclude-result-prefixes="w
v
o" etc to avoid them finding their way into the result document.
If the namespaces came from the source document, use <xsl:element
name="{local-name()}" namespace="{namespace-uri()}"> in preference to
xsl:copy or xsl:copy-of. In XSLT 2.0 you can use xsl:copy-of select="XXX"
copy-namespaces="no" to copy an element except for any unused namespace
declarations.
Michael Kay
http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








