Bug#567210: doc-available always returns false without network

Michael Kay mike at saxonica.com
Wed Jan 29 13:01:28 UTC 2014


OK, so the problem seems to be here:

Cannot read xhtml11/xhtml-inlpres-1.mod file

and the reason would appear to be the absence of the w3c/ prefix on the file name.

This takes us to here:

https://saxonica.plan.io/boards/3/topics/5625

and that in turn leads me to

https://saxonica.plan.io/issues/1813

which I think is fixed in the 9.5 branch but not in 9.4.

The underlying cause is inconsistent use of system IDs and public IDs in the W3C-published DTDs.

Michael Kay
Saxonica


On 29 Jan 2014, at 12:41, Eugene Zhukov <jevgeni.zh at gmail.com> wrote:

> On Wed, Jan 29, 2014 at 11:00 AM, Michael Kay <mike at saxonica.com> wrote:
>> If you use the -t option on the command line, then attempts to use local copies of W3C DTDs will be traced on System.err. Hopefully this will shed more light on why the mechanism isn't working for you.
>> 
>> The EntityResolver that Saxon uses in 9.4 can be found here:
>> 
>> https://dev.saxonica.com/repos/archive/opensource/tags/9.4.0.7/hej/net/sf/saxon/lib/StandardEntityResolver.java
>> 
>> I'm not sure why the data files aren't included under the 9.4.0.7 Subversion tag, but the files are here:
>> 
>> https://dev.saxonica.com/repos/archive/opensource/latest9.4/data/w3c/
>> 
>> I note that your JAR file has been renamed, so it's possible it has also been rebuilt. Look inside it with a ZIP utility and check for the directory named "w3c".
>> 
>> A list of the W3C documents bundled with Saxon for 9.5 can also be found here:
>> 
>> http://www.saxonica.com/documentation/index.html#!sourcedocs/w3c-dtds
>> 
>> and the corresponding list for 9.4 is at:
>> 
>> http://www.saxonica.com/documentation9.4-demo/index.html#!sourcedocs/w3c-dtds
>> 
> Thanks for the links!
> I downloaded the official release from [0] and tried the test with it.
> Here is the result with network: http://paste.debian.net/78983/
> And here is the result without network: http://paste.debian.net/78984/
> As you can see the test without network still fails. With this -t
> option, when the test succeeds, you can see Saxon fetching a local
> copy, but that doesn't seem to be the case without network.
> 
> [0] http://sourceforge.net/projects/saxon/files/Saxon-HE/9.4/SaxonHE9-4-0-7J.zip/download
> 
> Eugene



More information about the pkg-java-maintainers mailing list