Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Impact of XML on Data Modeling

From: "Michael Kay" <mike@--------.--->
To: <abcoatesecure-w3c@-----.--.-->, <xmlschema-dev@--.--->
Date: 2/3/2008 12:57:00 PM
> Another issue is that, if the same file is included multiple 
> times via multiple paths (e.g. A includes B which includes C, 
> and A also includes D which includes C), depending on the 
> relative paths, the Schema validator won't always realise 
> that "C" is the same file in both cases, and will issue 
> errors based on the same definitions (apparently) being 
> defined twice.  You don't see this problem if all Schema 
> files in the same directory, but I have had it when the 
> Schema files have been distributed among a hierarchy of 
> directories (for organisational purposes).  I think this 
> issue only occurs for include paths containing "..", i.e. 
> include paths which explicitly or implicitly referenc a 
> parent or ancestor directory.

The way in which schema processors establish component identity is entirely
implementation-defined, so this is a description of how it works in some
product, not how it works in the spec. I think that component identity ought
to be based on the document URI of the containing schema document (and
that's the way it works, or is intended to work, in Saxon), which should be
a bit more predictable than the behaviour you describe.

Michael Kay
http://www.saxonica.com/




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent