You can start with checking the spelling of 'transofmer' Regards, -Martin ----- Original Message ----- From: "Evgeniy Strokin (rT)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > Sent: Monday, November 25, 2002 8:40 PM > > To: [EMAIL PROTECTED] > > 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 > > "[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 > > > > > > > > > > --------------------------------------------- > Introducing NetZero Long Distance > 1st month Free! > Sign up today at: www.netzerolongdistance.com >
