[Bug 7352] New: Default value of "nillable" on (local) element declarations in SD4SD

http://www.w3.org/Bugs/Public/show_bug.cgi?id=7352

           Summary: Default value of "nillable" on (local) element
                    declarations in SD4SD
           Product: XML Schema
           Version: 1.0/1.1 both
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: David_E3@VERIFONE.com
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org
                CC: cmsmcq@blackmesatech.com


The default value for "nillable" in the schema for schemas can turn good schema
documents into bad ones.

Consider:

<xs:schema ...>
  <xs:element name="global" .../>
  <xs:complexType ...>
    <xs:sequence>
      <xs:element ref="tns:global"/>

After validating against the SD4SD, a default value for "nillable" is added to
the element reference:

      <xs:element maxOccurs="1" minOccurs="1" nillable="false"
ref="tns:global"/>

But "nillable" isn't allowed on element refs [1].

It seems that we do not depend on the default value of "nillable" in the
mapping rules. Section 3.3.2 has:

"{nillable}     The ·actual value· of the nillable [attribute], if present,
otherwise false."

Suggest to remove such default value from the SD4SD, in both 1.0 and 1.1.

[1] http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#src-element clause 2.2


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 17 August 2009 16:37:40 UTC