java - Modifying existing DOM using XSL -


i using framework xml dom (instance of org.w3c.dom.document) has listeners attached helps keeping track of changes done once created (it used internally generate deltas). requirement modify dom using xsl passed me outside . tried using transformer create new dom not solves purpose. want transform exisiting dom based on xsl . suggestions ?

xslt takes input tree , transforms new result tree, don't think can use xslt way want, namely manipulate existing tree directly, without first creating new tree.

thus if want manipulate existing dom document object, use w3c dom api methods createelement, appendchild, replacechild, setattribute, xslt not useful if can't afford creation of new tree.


Comments