Hello all,

I'm getting an error when trying to pas a NodeSet as a parameter with
XSLTC.

The error occurs only with XSLTC, this code works fine in "regular"
Xalan.

Here's my XSL:

<xsl:param name="labelsOfProperties" />
<xsl:variable name="test" select="count($labelsOfProperties)" />

And this is the Java code:

        NodeSet nodes = new NodeSet();
        nodes.addNode(oNode1);  
        nodes.addNode(oNode2);
        transofmer.setParameter("labelsOfProperties", nodes);

The error I'm getting is:
java.lang.RuntimeException: Invalid conversion from 'reference' to
'org.apache.xpath.NodeSet'. 

also, string($labelsOfProperties) returns
"[EMAIL PROTECTED]" with XSLTC, but it returns values of
the nodes in the NodeSet without XSLTC.

I am using Xalan 2.4.1.

Anybody knows why is this happening and how I can get around this
problem?

Thanks in advance,

Vladimir



Reply via email to