ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aron Olsen (JIRA)" <>
Subject [jira] [Created] (XMLSCHEMA-47) Unable to retrieve baseType of enumeration.restricted simple type
Date Fri, 28 Apr 2017 04:02:04 GMT
Aron Olsen created XMLSCHEMA-47:

             Summary: Unable to retrieve baseType of enumeration.restricted simple type
                 Key: XMLSCHEMA-47
             Project: XmlSchema
          Issue Type: Bug
    Affects Versions: 2.2.1
         Environment: Jave 1.7 update 45 on Windows
            Reporter: Aron Olsen
             Fix For: 2.2.2

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 "{}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!

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

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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message