Project

Profile

Help

Revision d59bf9fd

Added by Norman Tovey-Walsh 5 months ago

Fix #4814 by calling fetch to resolve sub-resources

View differences:

latest10/hej/net/sf/saxon/lib/StandardEntityResolver.java
30 30
 */
31 31
public class StandardEntityResolver implements EntityResolver {
32 32

  
33
    private static HashMap<String, String> publicIds = new HashMap<>(150);
34
    private static HashMap<String, String> systemIds = new HashMap<>(250);
33
    private static final HashMap<String, String> publicIds = new HashMap<>(30);
34
    private static final HashMap<String, String> systemIds = new HashMap<>(30);
35 35

  
36 36
    public Configuration config;
37 37

  
......
653 653

  
654 654
        // If this is a W3C URI, Saxon ought really to have a copy...
655 655
        if (systemId.startsWith("http://www.w3.org/") && config.isTiming()) {
656
            config.getLogger().warning("Saxon does not have a local copy of PUBLIC " + publicId + " SYSTEM " + systemId);
656
            config.getLogger().info("Saxon does not have a local copy of PUBLIC " + publicId + " SYSTEM " + systemId);
657 657
        }
658 658

  
659 659
        try {
......
667 667

  
668 668
        // If it's a classpath URI, handle it here
669 669
        if (systemId.startsWith("classpath:") && systemId.length() > 10) {
670
            return getResource(systemId.substring(10), config);
670
            return fetch(systemId.substring(10), config);
671 671
        }
672 672

  
673 673
        // Otherwise, leave the parser to resolve the URI in the normal way

Also available in: Unified diff