You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by ne...@ca.ibm.com on 2001/06/27 16:47:29 UTC

Re: [Bug 2326] New: - with NO schemaLocation="..." reports error

Hi Ian,

As of late yesterday what we do should be what you want.  I've set things
up such that if either property is specified, a schemaLocation attribute in
an import may be overridden; that is, if the import's namespace matches one
of the elements in the external-schemalocation property, or if there's no
namespace then if the external-nonamespaceschemalocation property is set.
In either case, if the property resolves to a schema the schemaLocation of
the import is overridden; in all other cases we try and dereference the
schemaLocation attribute on the <import> (if it exists); if nothing
resolves, or the property or import's schemaLocation aren't set, then we
emit a warning and continue.

Hope that helps,
Neil

Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  416-448-3519, T/L 778-3519
E-mail:  neilg@ca.ibm.com



Ian Roberts <ir...@decisionsoft.com> on 06/26/2001 10:19:52 AM

Please respond to xerces-j-dev@xml.apache.org

To:   xerces-j-dev@xml.apache.org
cc:
Subject:  Re: [Bug 2326] New: - <import> with NO schemaLocation="..."
      reports error


On 26 Jun 2001 bugzilla@apache.org wrote:

> The namespace="..." and schemaLocation="..." attributes on an
> <import> item are both OPTIONAL. However, the parser throws an
> error:
>
> "Schema error: Could not get the doc root for imported Schema file:
> ,."
>
> when an <import> item is missing schemaLocation="...". Here's an
> example:

Just a thought, how does this interact with the new external schema
location property?  It would be good if an import with no schemaLocation
could consult this and see if there is a mapping given for the namespace.

Ian

--
Ian Roberts, Software Engineer        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org