Hi Henry,
Thanks for the reply.
Regarding the line that was causing the problem. my apologies first as I have made a mistake while drafting the mail. The line in the XSL that was causing the problem had two slashes.
<xsl:variable name="myVar" select="java:com.mycompany.myclass.mymethod(//)"/>
This was working fine with Xalan/Xerces 2.3. When upgraded to 2.7, I got the error message
> ; Line#: 60; Column#: 98
> ; Line#: 60; Column#: 98
> javax.xml.transform.TransformerException: A location step was
> expected following the '/' or '//' token.
When I removed one of the slash, it worked fine in 2.7 also.
> ; Line#: 60; Column#: 98
> javax.xml.transform.TransformerException: A location step was
> expected following the '/' or '//' token.
When I removed one of the slash, it worked fine in 2.7 also.
<xsl:variable name="myVar" select="java:com.mycompany.myclass.mymethod(/)"/>
Now, can you please tell me, is it functinally the same and my correction is not affecting any existing functionality?
Thanks and Regards,
Hari
On 12/22/05, Henry Zongaro <[EMAIL PROTECTED]> wrote:
Hi, Hari.
Hariprasath Manivannan <[EMAIL PROTECTED] > wrote on 2005-12-20
05:25:08 PM:
> I have been using Xalan2.3 and my XSL contains the following line
> <xsl:variable name="myVar"
select="java:com.mycompany.myclass.mymethod(/)"/>
>
> I want to pass the entire XML Dom as a parameter to my java method
> as a NodeList
>
> When I use the same XSL with Xalan2.7 I am getting the following error:
>
> ; Line#: 60; Column#: 98
> ; Line#: 60; Column#: 98
> javax.xml.transform.TransformerException: A location step was
> expected following the '/' or '//' token.
Are you certain that line in your stylesheet is causing the problem?
I was unable to reproduce the problem in a stylesheet that included that
line.
Please provide a complete, stand-alone test case (stylesheet and
input document) that demonstrates the problem so that we will be able to
do more investigation.
Thanks,
Henry
------------------------------------------------------------------
Henry Zongaro Xalan development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]
