[Bug 15618] New: maxOccous not allowed on openContent/any

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 15618] New: maxOccous not allowed on openContent/any

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15618

           Summary: maxOccous not allowed on openContent/any
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Saxon tests
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]


Saxon test open042x.xsd has:

<xs:openContent>
     <xs:any namespace="##other" processContents="lax" maxOccurs="unbounded"/>
</xs:openContent>

But according to the Appendix A [1], <xs:any> under <xs:openContent> can't
specify min/maxOccurs attributes.

(With irrelevant items omitted)

  <xs:element name="openContent" id="openContent">
          <xs:sequence>
            <xs:element name="any" minOccurs="0" type="xs:wildcard"/>
          </xs:sequence>
  </xs:element>

  <xs:complexType name="wildcard">
      <xs:extension base="xs:annotated">
         <xs:attributeGroup ref="xs:anyAttrGroup"/>
      </xs:extension>
  </xs:complexType>

where "xs:anyAttrGroup" doesn't allow min/maxOccurs attributes. These
attributes are included in the "xs:occurs" group, which is referenced by the
normal <any> element:

  <xs:element name="any" id="any">
        <xs:extension base="xs:wildcard">
          <xs:attributeGroup ref="xs:occurs"/>
        </xs:extension>
  </xs:element>

[1] http://www.w3.org/TR/xmlschema11-1/#normative-schemaSchema

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

Reply | Threaded
Open this post in threaded view
|

[Bug 15618] maxOccous not allowed on openContent/any

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15618

David Ezell <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |decided
                 CC|                            |[hidden email]

--- Comment #1 from David Ezell <[hidden email]> 2012-01-20 17:01:19 UTC ---
Resolution: update the test to remove the maxOccurs attribute, and add a second
"negative" test to check for this error.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 15618] maxOccous not allowed on openContent/any

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15618

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[hidden email]
         Resolution|                            |FIXED

--- Comment #2 from Michael Kay <[hidden email]> 2012-01-20 17:48:23 UTC ---
Fixed as decided. open042 has been corrected; the error case is retained in
test open048.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 15618] maxOccurs not allowed on openContent/any

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15618

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|maxOccous not allowed on    |maxOccurs not allowed on
                   |openContent/any             |openContent/any

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