Which version of Xalan are you using? I just looked at the code in
DTMNodeProxy.getChildNodes(). The older Xalan version throws a
DTMDOMException here. But it was now changed to do something meaningful.
You can try with the latest Xalan 2.4.1 release.
Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
si To: [EMAIL PROTECTED]
cc:
12/06/2002 03:06 Subject: Using nodes passes as
arguments to extension functions
AM
I'm having some troubles using nodes, that are passes to my extension
function. My methods signature looks like this:
public static int method( NodeList nodes, String name )
The problem is that when I call getChildNodes() on the node in the passes
nodelist, the following exception occurs:
org.apache.xml.dtm.DTMDOMException:
at
org.apache.xml.dtm.ref.DTMNodeProxy.getChildNodes(DTMNodeProxy.java:357)
.....
So the example that makes this happen is:
Node node = nodes.item( 0 ); // nodes is not empty
NodeList children = node.getChildNodes();
Has anyone experienced anything like described here, I would appreciate it
very much to help me out.
Greetings,
Uros-J