This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XSLT,Java, external function and set DTMDOMException


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]