You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by bu...@apache.org on 2009/11/13 23:47:52 UTC

DO NOT REPLY [Bug 48194] Xml Catalog Resovler fails with included schemas

https://issues.apache.org/bugzilla/show_bug.cgi?id=48194

--- Comment #1 from Robert Streich <ro...@objectfx.com> 2009-11-13 14:47:52 UTC ---
I don't know if this is viable, but this works:

        // The namespace is useful for resolving namespace aware
        // grammars such as XML schema. Let it take precedence over
        // the external identifier if one exists.
        String namespace = resourceIdentifier.getNamespace();
        if (namespace != null) {
           if (resourceIdentifier instanceof XSDDescription
                 && XSDDescription.CONTEXT_INCLUDE == ((XSDDescription)
resourceIdentifier).getContextType()) {
              resolvedId =
resolveSystem(resourceIdentifier.getLiteralSystemId());
           } else {
            resolvedId = resolveURI(namespace);
           }
        }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.