iH:

The sample "XPathResolver" that ships with Xalan 2.7.0 (xalan-j_2_7_0/samples/XPathAPI/XPathResolver) doesn't seem to work.  Is this a known issue?  When I run the sample code, I get:
===========================================================
javax.xml.transform.TransformerException: Variable not resolvable: xyz
   at org.apache.xpath.operations.Variable.execute(Unknown Source)
   at org.apache.xpath.operations.Operation.execute(Unknown Source)
   at org.apache.xpath.XPath.execute(Unknown Source)
   at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:213)
   at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
   at net.java.lang.XPathResolver.main(XPathResolver.java:131)
--------------- linked to ------------------
javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Variable not resolvable: xyz
   at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:289)
   at net.java.lang.XPathResolver.main(XPathResolver.java:131)
Caused by: javax.xml.transform.TransformerException: Variable not resolvable: xyz
   at org.apache.xpath.operations.Variable.execute(Unknown Source)
   at org.apache.xpath.operations.Operation.execute(Unknown Source)
   at org.apache.xpath.XPath.execute(Unknown Source)
   at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:213)
   at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
   ... 1 more

The evaluation result: null
===========================================================

I'm trying to use XPathVariableResolver instance in my own code, and I get 'Variable not resolvable' errors just like above.

Aaron.

Reply via email to