Hi,
 
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.
at org.apache.xpath.compiler.XPathParser.error (XPathParser.java:608)
at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1737)
at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1624)
at org.apache.xpath.compiler.XPathParser.LocationPath (XPathParser.java:1595)
 
 
What should be used to pass the root node to a java method with xalan 2.7?

Thanks and Regards,

Hari

Reply via email to