I’ve noticed that the following XPath expression raises an unexpected error in 9.0.9.3 (not in previous versions)
List<string> lst = (List<string>)xp.evaluate("for $i in testcases/testcase return resolve-uri($i/@uri,base-uri($i))",xbrl,XPathConstants.NODESET);</string></string>
net.sf.saxon.trans.XPathException: The anyURI value '"file:/C:/Documents%20and%20Settings/Ignacio/workspace/conformance/Common/instance/301-idScope.xml"' is not an acceptable Java URI
at net.sf.saxon.expr.PJConverter$AnyURIValueToURI.convert(PJConverter.java:746)
at net.sf.saxon.expr.PJConverter$ToCollection.convert(PJConverter.java:472)
at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:371)
at net.sf.saxon.xpath.XPathEvaluator.evaluate(XPathEvaluator.java:414)
at com.ihr.xbrl.LaunchConformanceSuiteXHTML.main(LaunchConformanceSuiteXHTML.java:125)
--------------- linked to ------------------
javax.xml.xpath.XPathExpressionException
at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:377)
at net.sf.saxon.xpath.XPathEvaluator.evaluate(XPathEvaluator.java:414)
at com.ihr.xbrl.LaunchConformanceSuiteXHTML.main(LaunchConformanceSuiteXHTML.java:125)
Caused by: net.sf.saxon.trans.XPathException: The anyURI value '"file:/C:/Documents%20and%20Settings/Ignacio/workspace/conformance/Common/instance/301-idScope.xml"' is not an acceptable Java URI
at net.sf.saxon.expr.PJConverter$AnyURIValueToURI.convert(PJConverter.java:746)
at net.sf.saxon.expr.PJConverter$ToCollection.convert(PJConverter.java:472)
at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:371)
... 2 more
The URI file:/C:/Documents%20and%20Settings/Ignacio/workspace/conformance/Common/instance/301-idScope.xml Is the result of the evaluation of the expression so this error looks like it is related to changes in the conversion from the output of the expression to the creation of the returned List of values.
Logged In: YES
user_id=251681
Originator: NO
This problem has previously been reported at
http://markmail.org/message/ozkir37exgl6lrzw
and is fixed in the source.
I'm marking this entry as closed, on the basis that I'm not actually using this tracker to track bugs in 9.0.9.3. As always, the preferred place to register suspected bugs is via the saxon-help mailing list or forum; I prefer to use this tracker as a register of confirmed bugs.