Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


disallowed substitutions

From: "Zafar Abbas" <Zafar.Abbas@---------.--->
To: <xmlschema-dev@--.--->
Date: 7/26/2006 3:31:00 AM
I was going through the recent submission in to the Schema test =
collection by SUN and found this issue worth posting on this forum:

Issue: 
There are two global elements, one in the substitution group of the =
other. The type of the Head element has block=restriction. The =
substitution group member has a type derived by restriction from the =
Head element's type. 

What is the value of {disallowed substitutions} in this case for the =
Head element? By reading the spec [1], it seems that it should be EMPTY =
(and Member1 should be allowed to substitute) since [disallowed =
substitutions} are only determined by -block- attributes on the element =
declaration and not its type.


  <xsd:element name="Head" type="Type"/>
  <xsd:element name="Member1" type="derivedFromType" =
substitutionGroup="Head"/>

  <xsd:complexType name="Type" block="restriction"/>

  <xsd:complexType name="derivedFromType">
      <xsd:complexContent>
          <xsd:restriction base="Type"/>
      </xsd:complexContent>
  </xsd:complexType>


=A0
[1] =
http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/structures-with-errata=
..html#Element_Declaration_details


Thanks,
Zafar Abbas

=A0



From dmaze@u... Thu Jul 27 12:24:55 2006
Received: from wiggum.w3.org ([128.30.5


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