AnyURI problems in 9.0.9.3
Added by Anonymous over 16 years ago
Legacy ID: #4976318 Legacy Poster: Ignacio Hernandez-Ros (ignacioh)
Hi, I’ve noticed that the following XPath expression raises an unexpected error: List<String> lst = (List<String>)xp.evaluate("for $i in testcases/testcase return resolve-uri($i/@uri,base-uri($i))",xbrl,XPathConstants.NODESET); 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 content of the input file is: <!-- XBRL 2.1 Tests --> <!-- Copyright 2003 XBRL International. All Rights Reserved. --> <?xml-stylesheet type="text/xsl" href="testcases.xsl"?> <testcases name="XBRL 2.1 Tests" date="10/23/2003"> <testcase uri="Common/instance/301-idScope.xml"/> <testcase uri="Common/instance/302-context.xml"/> ... </testcases> and there is no schema for that file and the uri attribute is text. It looks to me that resolve-uri works OK because the URI that "cannot be converted" is the one that should be returned after conversion from a relative uri to an absolute uri.
Replies (1)
RE: AnyURI problems in 9.0.9.3 - Added by Anonymous over 16 years ago
Legacy ID: #4976369 Legacy Poster: Michael Kay (mhkay)
Thanks, this problem has already been reported (and fixed). http://markmail.org/message/ozkir37exgl6lrzw Michael Kay Saxonica
Please register to reply