Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Versioning of XML Schema and namespaces

From: "Biron,Paul V" <Paul.V.Biron@--.--->
To: "'Eliot Kimber'" <ekimber@---------------.--->, John.Hockaday@--.---.--, -------------@--.---
Date: 5/4/2005 8:15:00 AM
> -----Original Message-----
> From: Eliot Kimber [mailto:ekimber@i...] 
> Sent: Wednesday, May 04, 2005 8:10 AM
> To: John.Hockaday@g...; xmlschema-dev@w...
> Cc: :;
> Subject: Re: Versioning of XML Schema and namespaces
> 
> John.Hockaday@g... wrote:
> > I expect that document instances using W3C XML Schemas will use a 
> > "namespace" declaration to identify which XML Schema should be used to 
> > validate that document instance.  The problem that I see with the 
> > namespace it that a URI is the unique identifier.  There is no PUBLIC 
> > identifier.  As we have all probably experienced with old bookmarks, 
> > the content at URLs change a lot. If an XML Schema's version is not 
> > part of the URI and a new version of that XML Schema is made then it 
> > is likely that this will *not* be reflected in the URI and hence the 
> > namespace.
> 
> Thus, I think the appropriate approach in your case is to require the 
> use of schemaLocation= with absolute URIs that include version 
> information--that gives you the same control you had before.

Remember, however, the xsi:schemaLocation [1] is just a hint...schema processors are not required to honor it.  In a similar vein, the presence of <!DOCTYPE> in an instance does not mean that processors must perform DTD validation, although most processors do so by default.

For what it's worth, the reason the XML Schema WG made xsi:schemaLocation a hint was for security reasons.  Depending on circumstances, it can be very dangerous to trust the sender/author to tell you what DTD/schema to use to validate against.  After all, one of the main reasons to perform validation is because you don't trust the sender/author...so why would you trust them when they tell you what DTD/schema to use?

pvb

[1] http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation


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