Subject: XSLT,Java, external function and set DTMDOMException
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Fri, 16 Aug 2002 08:49:28 -0400
|
> I'm basically trying to write in Java a function that
> returns a part of the nodes past to it (from XSLT) while
> modifying (or replacing) one of these nodes.
Don't do that. XSLT assumes that the input document is IMMUTABLE during
the course of a tranformation, and some processors (Xalan among them)
enforce that.
If you want to return DOM nodes from your extension, construct new nodes
using a read/write DOM implementation -- one is included with most XML
parsers, so this shouldn't be a problem.
______________________________________
Joe Kesselman / IBM Research
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|