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

Default Namespace version problem

Subject: Default Namespace version problem
From: "Shea, Michael" <Michael_Shea@xxxxxxx>
Date: Wed, 4 Dec 2002 20:30:37 -0600
namespace version
Hey Everybody.

I'm having troubles with transforming one version of an XML document into a different version.  I have in the first XML file, a default namespace consisting of: xmlns="http://www.blah.com/test/v1".  When I transform this (using Xalan v2.4.D1) I want to change the default namespace to: xmlns="http://www.blah.com/test/v2" in the generated XML file (to reflect the new version of the previous xml file).  However, in my xslt stylesheet, I need to have a xmlns tag which specifies: xmlns="http://www.blah.com/test/v1".  The reason that this is the case is if I set the default namespace to v2 then the stlyesheet won't transform the XML documents correctly (the output consists of just the text within the elements, and nothing else). 

Changing the namespace so that it doesn't use the version in the namespace is not an option as what we are doing is upgrading an already existing XML file into another version.

Can anyone suggest a way for me to change the namespace from one to another in the output XML file?

Thanks.



 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.