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

Michael Kay mike at saxonica.com
Wed Jan 29 09:00:29 UTC 2014


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

Michael Kay
Saxonica


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

> On Tue, Jan 28, 2014 at 4:25 PM, Michael Kay <mike at saxonica.com> wrote:
>> Saxon-B 9.1 does not include copies of these resources.
>> 
>> You can always write a URIResolver and direct the request to copies held at application level, but it can't be done "behind the scenes".
>> 
>> My recommendation would be to move forward to a later Saxon release that fixes the problem. The current release is 9.5. We have no plans to issue further maintenance releases for 9.1, although we do appreciate that some users have been sticking with that release because of the discontinuities introduced between 9.1 and 9.2.
>> 
> 
> We have Saxon-HE 9.4.0.7 in Debian archive. So I tried the above
> test-case with it:
> $ java -cp /etc/xml/resolver:/usr/share/java/xml-resolver.jar:/usr/share/java/Saxon-HE.jar
> -Dxml.catalog.files=/etc/xml/catalog -Dxml.catalog.verbosity=1
> net.sf.saxon.Transform -s:foo.xml -xsl:foo.xsl
> 
> The result is it still fails without network. With network it works.
> Also, when I look into the source code of Saxon-HE 9.4.0.7 at [0], I
> cannot find the local copies of those resources. So I don't understand
> how it would work without the network. What did I miss?
> 
> [0] https://dev.saxonica.com/repos/archive/opensource/tags/9.4.0.7/
> 
> Eugene



More information about the pkg-java-maintainers mailing list