Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Including Chameleon Schemas

From: "Paul Spencer" <paul.spencer@--------.--.-->
To: <xmlschema-dev@--.--->
Date: 10/27/2004 11:10:00 AM
XML Schema part 1 says that:

The ·XML Schema· corresponding to <schema> contains not only the components
corresponding to its definition and declaration [children], but also all the
components of all the ·XML Schemas· corresponding to any <include>d schema
documents. Such included schema documents must either (a) have the same
targetNamespace as the <include>ing schema document, or (b) no
targetNamespace at all, in which case the <include>d schema document is
converted to the <include>ing schema document's targetNamespace.

My question relates to the meaning of "converted" in the last line. Does
this mean just that the definitions and declarations in the <include>d
schema document belong in the targetNamespace of the <include>ing schema
document, or that references to these definitions and declarations in the
<include>d schema document also change to reference the new namespace? In
other words, the <include>d schema document behaves as though there were a
targetNamespace declaration *and a defaultNamespace declaration with the
same URI*. I suspect just the former, in which case the <include>d schema
document cannot reference it's own definitions and declarations.

I have noticed that the MS .NET parser seems to interpret this by the
stricter definition, but that others do not. I have been arguing on and off
with others about this for years, but have never had a definitive answer and
cannot find anything in the archives.

Regards

Paul Spencer



From sandro@m... Wed Oct 27 19:38:26 2004
Received: from lisa.w3.or


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