Uploaded image for project: 'XmlSchema'
  1. XmlSchema
  2. XMLSCHEMA-47

Unable to retrieve baseType of enumeration.restricted simple type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.2.1
    • 2.2.1
    • None
    • Jave 1.7 update 45 on Windows

    • Important

    Description

      Dear team,
      I am developing an XSD-traverser primarily targeted for deriving the structure of top-level elements and there types of WFS-feature-description XSDs.

      I have come across a problem where I cannot obtain the schema-type for the base-type of an XmlSchemaSimpleTypeRestriction when it appears as depicted below.

      All is well when traversersing the type-hierarchy of "IntegerValue", but it breaks when doing it for "IntegerEnum". The XmlSchema fails to return an XmlSchemaType for "

      {http://www.w3.org/2001/XMLSchema}

      integer" despite it has delivered a such for the "IntegerValue" element.

      I am not yet using any URI-resolver, so its somewhat an "out-of-the-box" problem.

      Please help. Thank you!
      /Aron

      <xsd:complexType name="VEJMIDTEType">
      <xsd:sequence>
      <xsd:element name="IntegerValue" type="xsd:integer" />
      <xsd:element name="IntegerEnum" type="IntegerEnumType" />
      </xsd:sequence>
      </xsd:complexType>

      <xsd:simpleType name="IntegerEnumType">
      <xsd:restriction base="xsd:integer">
      <xsd:enumeration value="1" />
      <xsd:enumeration value="2" />
      </xsd:restriction>
      </xsd:simpleType>

      Attachments

        Activity

          People

            Unassigned Unassigned
            aronxsd Aron Olsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: