This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XSLT,Java, external function and set DTMDOMException
- From: Joseph Kesselman <keshlam at us dot ibm dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 16 Aug 2002 08:49:28 -0400
- Subject: [xsl] XSLT,Java, external function and set DTMDOMException
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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