Subject:how to copy elements from an xml document with their prefixes Author:Dorian Dongmo Date:26 Jul 2007 08:13 AM
Hello helpful people,
I am using a JAXP application to modify the content of an xml document. The modifications are done using DOM in the java application, and in the end I am trying to output the result tree by binding the source tree to the following identity style sheet:
However, my style sheet leaves out all the prefixes of the source document and outputs the tag names without prefixes. for example, an element named <ibml:equity> in the source will appear as <equity> in the result. How do I copy the tag names prefixes such as "ibml" (all declared in namespaces in the source document) as well?