XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
chukuemeka ogbonnayaSubject: Copy-of and namespace Hell
Author: chukuemeka ogbonnaya
Date: 07 Sep 2007 06:29 AM
Hi,

I am sure this topic has been treated at some point but I need some help with this particular problem. I am copying (copy-of)a nodeset of an xml doc which has no namespace into another with a namespace.
Is there a way i can force the copied nodeset to be included in the namespace scope of the entire xml doc?

my stylesheet;
<xsl:element name="message" namespace="http://www.myspace.co.uk">
<xsl:copy-of select="m_control"/>
</element>


Thanks Chuks

Posttop
Tony LavinioSubject: Copy-of and namespace Hell
Author: Tony Lavinio
Date: 09 Sep 2007 08:46 PM
In XSLT 2.0, you might be able to use the
copy-namespaces? = "yes" | "no" attribute
See http://www.w3.org/TR/xslt20/#copy-of

But most likely, instead of copy-of you'll
need to use an identity transform. To keep
it from copying what you don't want, you
might need to restrict it with a mode.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.