fn:doc-available() and fatal error premature end of file
Posted: Wed Jan 01, 2020 4:52 pm
When I run doc-available('http://badurl.com/bad.xml'), either as part of a stylesheet or in the XPath/XQuery Builder, on one of the Saxon products (9.8.0.8 or .12) I get a fatal error: Premature end of file.
However, the error is not thrown by the following url alternatives: 'http://badurl.com/bad.html' or 'http://google.com/bad.xml'.
It seems, as best I can tell, that the error happens only when the parameter ends '.xml' and the base domain does not exist. I've tried this on two different internet connections with the same results. I can't replicate this error when doing it directly on the command line, with Saxon 9.7, 9.8, or 9.9.
Any thoughts?
However, the error is not thrown by the following url alternatives: 'http://badurl.com/bad.html' or 'http://google.com/bad.xml'.
It seems, as best I can tell, that the error happens only when the parameter ends '.xml' and the base domain does not exist. I've tried this on two different internet connections with the same results. I can't replicate this error when doing it directly on the command line, with Saxon 9.7, 9.8, or 9.9.
Any thoughts?