[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: getting rid of xmlns

Subject: Re: getting rid of xmlns
From: Jim_Albright@xxxxxxxxxxxx
Date: Sun, 27 Feb 2005 13:42:52 -0500
xslt copy 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/ 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.