xsl-list
[Top] [All Lists]

Default Namespace version problem

2002-12-04 19:30:37
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



<Prev in Thread] Current Thread [Next in Thread>