Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6975265

Schema parser allows some Element Information Items contain other element information item

XMLWordPrintable

    • 1.4
    • generic
    • generic
    • Verified

        There is wrong result in an JCK negative testing: attached schematas are valid, although it's expected the opposite.

        For example the following shcematas are valid:
        1---------------------------------------------
        <?xml version="1.0"?>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:simpleType name="foo">
        <xsd:restriction base="xsd:integer">
        <xsd:minInclusive value="0">
                 <xsd:minInclusive value="10000000"/>
        </xsd:minInclusive>
        </xsd:restriction>
        </xsd:simpleType>
        </xsd:schema>
        2---------------------------------------------
        <enumeration
          id = ID
          value = anySimpleType
          {any attributes with non-schema namespace . . .}>
          Content: (annotation?)
        </enumeration>

        It contradicts to the specification (http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html) that states:
        1----------------------------------------------
        <minInclusive
          fixed = boolean : false
          id = ID
          value = anySimpleType
          {any attributes with non-schema namespace . . .}>
          Content: (annotation?)
        </minInclusive>
        and 2-------------------------------------------
        <enumeration
          id = ID
          value = anySimpleType
          {any attributes with non-schema namespace . . .}>
          Content: (annotation?)
        </enumeration>

              joehw Joe Wang
              lkuskov Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: