Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Referencing attributes from the XMLSchema-instance namespace

From: Boris Kolpackov <boris@-------------.--->
To: xmlschema-dev@--.---
Date: 3/1/2007 8:28:00 PM
Hi,

Microsof's Print Schema[1] has a fragment that looks like so:


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <xs:complexType name="Type" mixed="true">
    <xs:attribute ref="xsi:type" use="required"/>
  </xs:complexType>

<xs:schema>


There is no import declaration for the xsi namespace. I am
wondering whether this is legal or not. I can see three
possible answers actually: (1) this schema is valid, (2) this
schema is invalid but can be made valid by importing a schema
that declares xsi:type:


<schema targetNamespace="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<attribute name="type" type="xs:QName"/>
<attribute name="nil" type="xs:boolean"/>

</schema>


And, finally, (3) referencing attributes from the xsi namespace
in the definition is illegal.


[1] http://www.microsoft.com/whdc/xps/printschema.mspx


thanks,
-boris


--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding


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