paul.band...@nomura.com wrote:
However, you might want to look at the XSLT document function, instead of generating a result DOM and modifying it. You can use the xsl:copy-of instruction to copy an entire document

While that sounds like an eminently good suggestion, I need to make this
change without altering the XSLT workings of this program.
If you want a mutable result, then yes, you have to use the Xerces-C
DOM.

Ok, thanks so what I'm trying to is possible.  You probably haven't
wanted to tell me what is probably plainly obvious to anyone more
familiar with these API's, but how do I alter an existing DOM document -
I've seen and used the content handler to create a new document, but
once its 'endDocument' method has been called - can the constructed
document be further modified?
Take a look at the TransformToXercesDOM sample program, which shows how to generate an instance of the Xerces-C DOM as the result of a transformation. Once you've finished the XSLT part, you can modify the DOM instance using the standard DOM APIs.

Dave

Reply via email to