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

Value of ID-type attribute not properly validated with respect to XML Schema 1.1 specification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.0
    • None
    • None

    Description

      Let's say I have an XML Schema 1.1:

      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified"
      vc:minVersion="1.1">
      <xs:element name="root">
      <xs:complexType>
      <xs:attribute name="aaa" type="xs:ID"/>
      </xs:complexType>
      </xs:element>
      </xs:schema>

      and I validate with XML Schema 1.1 features enabled an XML which refers to it:

      <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="testxsd.xsd" aaa="ϛ"/>

      The validation reports that character "ϛ" is not valid according to the specs:

      cvc-attribute.3: The value 'ϛ' of attribute 'aaa' on element 'root' is not valid with respect to its type, 'ID'.

      But if you look at the definition in XML Schema 1.1 of the ID attribute type:

      http://www.w3.org/TR/xmlschema11-2/#ID

      it refers to:

      http://www.w3.org/TR/xml11/#NT-TokenizedType

      which eventually refers to a name start char production:

      http://www.w3.org/TR/xml11/#NT-NameStartChar

      which completely allows characters from this interval:

      x37F-#x1FFF

      Attachments

        Activity

          People

            Unassigned Unassigned
            radu_coravu Radu Coravu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified