  | |  | sample XPathResolver broken? | sample XPathResolver broken? 2005-09-19 - By Aaron Aston
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.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <div class="moz-text-flowed" style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">iH: <br> <br> 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: <br> ===========================================================<br> javax.xml.transform.TransformerException: Variable not resolvable: xyz <br> at org.apache.xpath.operations.Variable.execute(Unknown Source) <br> at org.apache.xpath.operations.Operation.execute(Unknown Source) <br> at org.apache.xpath.XPath.execute(Unknown Source) <br> at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:213) <br> at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:275) <br> at net.java.lang.XPathResolver.main(XPathResolver.java:131) <br> --------------- linked to ------------------ <br> javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Variable not resolvable: xyz <br> at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:289) <br> at net.java.lang.XPathResolver.main(XPathResolver.java:131) <br> Caused by: javax.xml.transform.TransformerException: Variable not resolvable: xyz <br> at org.apache.xpath.operations.Variable.execute(Unknown Source) <br> at org.apache.xpath.operations.Operation.execute(Unknown Source) <br> at org.apache.xpath.XPath.execute(Unknown Source) <br> at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:213) <br> at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:275) <br> ... 1 more <br> <br> The evaluation result: null <br> ===========================================================<br> <br> I'm trying to use XPathVariableResolver instance in my own code, and I get 'Variable not resolvable' errors just like above.<br> <br> Aaron. <br> <br> </div> </body> </html>
|
|
 |