|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Namespace issue when using Xalan
I have resolved this issue and thought I should reply to tidy this up. I
am not sure this posting would now seem to be relevant to xsl-list but
here is the reply anyway!
The basic issue was that although I had constructed my parser to be namespace aware when constructing my xml document I had failed to use the "createElementNS" method rather than "createElement" which makes a DOMSource object in Java able to differentiate between elements in different namespaces. The reason that it worked from the command line and in msxml is because I was throwing just a file at Xalan and msxml which processes the namespace from the file. The DomSource object I was using in the java code needs to be "told" that an object belongs to another namespace. Regards Andrew I have a stylesheet that seems to work for me when using Xalan on the command line. The problem presents itself when I attempt the transform from within a java class that I am using:
|
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
|

Cart








