[XSL-LIST Mailing List Archive Home]
[xsl] XSLT,Java, external function and set DTMDOMException
Subject: [xsl] XSLT,Java, external function and set DTMDOMException|
From: "Louis Meigret" <meigret@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Aug 2002 23:52:23 -0500
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
I am using Java 1.4.1 (I have had the same problem with 1.4.0) with Xalan
(included in the jaxp-1.2_0.1 release).
I get the following error which puzzles me.
This is an sniplet of the function where the exception occurs *** represents
public static NodeList getNodesAfterSecNum(NodeList nl)
int i = 0;
if (i < nl.getLength() && nl.item(i).getNodeType() ==
nl.item(i).setNodeValue(" Changed "); <**********
I have tried to clone the Node, to import the node into a different document
and return this to XSLT, I always get an Exception at the end.
I must say I did not find much documentation (what does a DTMDOMException
mean ?). Why is DTMDOM used, how can I change this if this limits what I can
Thank you for any help (sorry if this is a basic problem).
Sign-up for your own FREE Personalized E-mail at Mail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list