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 Martin <mg...@hotmail.com> on 2002/04/27 03:49:57 UTC
Re: Using NodeSet as a parameter with XSLTC
You can start with checking the spelling of 'transofmer'
Regards,
-Martin
----- Original Message -----
From: "Evgeniy Strokin (rT)" <ev...@rocketrainer.com>
To: <xa...@xml.apache.org>
Sent: Monday, November 25, 2002 10:34 PM
Subject: RE: Using NodeSet as a parameter with XSLTC
> I had the same problem I spent a lot of time to solve this and asked
mailing
> list, but didn't get answer, so I had decided don't use NodeSet as a
> parameter.
> If, you'll find the solution, please let me know too.
>
> Jenya
>
> > -----Original Message-----
> > From: Fridman, Vladimir [mailto:vfridman@filenet.com]
> > Sent: Monday, November 25, 2002 8:40 PM
> > To: xalan-j-users@xml.apache.org
> > Subject: Using NodeSet as a parameter with XSLTC
> >
> >
> > 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
> > "org.apache.xpath.NodeSet@7a7de4" 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
> >
> >
> >
> >
>
> ---------------------------------------------
> Introducing NetZero Long Distance
> 1st month Free!
> Sign up today at: www.netzerolongdistance.com
>