[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Default Namespace version problem
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
|
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
|