You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Aron Olsen (JIRA)" <ji...@apache.org> on 2017/04/28 04:07:04 UTC
[jira] [Commented] (XMLSCHEMA-47) Unable to retrieve baseType of
enumeration.restricted simple type
[ https://issues.apache.org/jira/browse/XMLSCHEMA-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15988157#comment-15988157 ]
Aron Olsen commented on XMLSCHEMA-47:
-------------------------------------
To be fair, my entire schema is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns="http://schemas.kms.dk/fot/FOT5.1_SpecInfo1.0_database_SF1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://schemas.kms.dk/fot/FOT5.1_SpecInfo1.0_database_SF1"
elementFormDefault="qualified" version="1.0.0"
>
<xsd:element name="VEJMIDTE" type="VEJMIDTEType"/>
<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>
</xsd:schema>
> Unable to retrieve baseType of enumeration.restricted simple type
> -----------------------------------------------------------------
>
> Key: XMLSCHEMA-47
> URL: https://issues.apache.org/jira/browse/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 "{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>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org