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

RE: possible to use copy-of without namespace

Subject: RE: possible to use copy-of without namespace
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 8 Jan 2003 11:13:18 -0000
xsl copy of without namespace
> i try to get a 1:1 copy of a tree (using xsl:copy-of) without 
> having the 
> xmlns attribute set in the root node of the result tree.
> 

xsl:copy-of can only be used if you want an exact copy.

If you want to make any changes at all, use a recursive descent using
xsl:apply-templates, defining an identity template rule using xsl:copy,
plus specific template rules to define the changes you want to make.

To remove namespace nodes from an element, use

<xsl:element name="local-name()">

in place of <xsl:copy>

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

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.