Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: FW: Best Practices for Establishing Namespace Name

From: Andrew Welch <andrew.j.welch@-----.--->
To: Simon Cox <simon.cox@---.--.------.-->
Date: 9/3/2009 9:03:00 AM
> Simon Cox writes:
>> A processors will maintain a cache of schema component definitions and
>> declarations and associate it with a namespace.

Ah I can see where the confusion would come from : ) and why it then
seemed to make sense (or be a requirement in fact) to change the
namespace between versions so that you could process multiple versions
with the same schema processor.

In 1.1 I think you can switch types based on a version attribute, so
you could in fact validate multiple versions of the xml with a single
schema.

something like:

<xs:element name="root" type="root">
  <xs:alternative type="root-version-1" test="@version = '1.0'"/>
  <xs:alternative type="root-version-1-1" test="@version = '1.1'"/>
</xs:element>




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/



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