You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by DB...@Primavera.com on 2006/03/07 18:43:21 UTC

Struggling with transformer.setParameter and node-sets

I am trying to pass a set of nodes to transformer.setParameter, but am 
getting

ERROR: 'Invalid conversion from 'com.acme.AcmeTask$1' to 'node-set'.'

AcmeTask$1 is defined as 

NodeList nl = new NodeList()
{
    ....
};


where i have implemented getLength() and item(int)

I clearly must be misunderstanding something...

Can anyone set a struggler straight?

thanks!

Re: Struggling with transformer.setParameter and node-sets

Posted by DB...@Primavera.com.
Ah, never mind i figured it out myself.

A nodelist isn't a nodelist unless it's in a document tree.

silly me.




I am trying to pass a set of nodes to transformer.setParameter, but am 
getting 

ERROR: 'Invalid conversion from 'com.acme.AcmeTask$1' to 'node-set'.' 

AcmeTask$1 is defined as 

NodeList nl = new NodeList() 
{ 
    .... 
}; 


where i have implemented getLength() and item(int) 

I clearly must be misunderstanding something... 

Can anyone set a struggler straight? 

thanks!