Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1680

incorrect flagging of violation of cos-all-limited

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.0
    • None
    • None
    • Windows 10 Pro

    Description

      In the following schema document:

      <?xml version="1.0" encoding="UTF-8"?>
      <xs:schema
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          elementFormDefault="unqualified">
        <xs:complexType name="base_open_content">
          <xs:openContent>
            <xs:any notNamespace='##local' processContents='lax'/>
          </xs:openContent>
          <xs:all/>
        </xs:complexType>
        
        <xs:element name="root">
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="base_open_content">
                <xs:all>
                  <xs:element name='child' type='xs:string'/>
                </xs:all>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
      </xs:schema>
      

      Xerces incorrectly reports the all group in the extension of 'base_open_content' violates cos-all-limited.

      SaxonEE 9.7.0.15 correctly accepts this schema document.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pvbiron Paul
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: