Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev]Changing Namespaces Between Specification Versions

From: "G. Ken Holman" <gkholman@----------------.--->
To: xml-dev@-----.---.---
Date: 4/23/2009 2:08:00 AM
At 2009-04-22 21:54 -0400, Webb Roberts wrote:
>On Wed, Apr 22, 2009 at 3:17 PM, Chuck Bearden <cbearden@r...> wrote:
> > [...]
> > The decision was made (a) to add a version attribute to the root element,
> > and (b) not to change the namespace URI (which was already unversioned).
> >  Did the maintainers of EgXML make the right choice?
>
>What happens when a message needs to be constructed, exchanged, and
>validated, which contains content defined by both v1 and v2? A
>majority of schema-validating XML parsers support only a single schema
>for a given namespace on a particular validation pass.

If the content is defined by both v1 and v2 then it doesn't matter 
which schema is used, either one will work.

OASIS Universal Business Language (UBL) keeps the same namespace for 
minor versions and requires new constraints in later versions not to 
render any instance of an earlier minor version as invalid.  For 
example, new minor versions only introduce optional constructs so as 
not to make an existing instance invalid because of their absence.

A system only supporting older instances strips unexpected constructs 
from newer instances before validation, such that validation will 
allow content to be processed by APIs that require validation to the 
older schema.

An element in instances contains the version number the instance 
creator is using for the selection of the constructs.  But it is just 
informational and is not a schema value constraint, because then a 
newer system wouldn't be able to accept an older document even though 
the older document doesn't violate any constraints (because the newer 
constraints are all optional).

>What happens when a message is constructed that only uses content from
>v1 or v2, without using the designated root element?

Then how can it validate with either version if the document element 
isn't in either schema?

>How does the
>receiver determine the appropriate schema when the version is not
>explicitly referenced?

Why not "try one and if it fails try the other"?

Or make the version mandatory and fail if it isn't present.

The business rules around working with an instance form part of the 
processing rules for the instances.  Those should be documented for systems.

I hope this helps.

. . . . . . . . . . Ken

--
XQuery/XSLT/XSL-FO hands-on training - Los Angeles, USA 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



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