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

Ambiguous error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 2.11.0
    • None
    • None

    Description

      When validating an 1.1 XML Schema:

      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
      <xs:element name="root">
      <xs:complexType>
      <xs:sequence>
      <xs:element name="e1" type="xs:integer"/>
      </xs:sequence>
      <xs:attribute name="kind" type="xs:string"/>
      </xs:complexType>
      <xs:alternative test="@kind='string'" type="xs:string"/>
      </xs:element>
      </xs:schema>

      The error message is:

      e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, 'null', of element 'root'.

      Maybe the "null" could be replace with something like "anonymous" in this case.

      Attachments

        Activity

          People

            mukul_gandhi Mukul Gandhi
            radu_coravu Radu Coravu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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