[
https://issues.apache.org/jira/browse/XMLBEANS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615823#action_12615823
]
Radu Preotiuc-Pietro commented on XMLBEANS-377:
-----------------------------------------------
Matt,
You are leaving out one important piece of information: is the base type of the
extension, DecimalType, a complex type with simple content or a simple type?
1. If complex type with simple content and you are getting the same exception,
then isn't this a duplicate of XMLBEANS-356? Have you tried running your Schema
with XMLBeans 2.4.0? It should work.
2. If simple type, you should get something like the following when trying to
compile the Schema:
error: src-ct.1: Type '[EMAIL PROTECTED]/namespace2' is being used as the base
type for a complexContent definition. To do this the base type must be a
complex type.
which is correct according to http://www.w3.org/TR/xmlschema-1/#src-ct, point 1.
> exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException:
> Simple type does not have a recognized variety
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-377
> URL: https://issues.apache.org/jira/browse/XMLBEANS-377
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: TBD
> Environment: Ubuntu 8.0.4, jdk1.5.14, XMLBeans 2.4.0
> Reporter: Matt Bucknam
>
> I'm having the same issue as with XMLBEANS-356. I can provide more
> information if necessary but hope that something similar to what fixed that
> issue will fix this too. The schema fragment that does not work is:
> <xs:complexType name="AngleMeasureType">
> <xs:annotation>
> <xs:documentation>An angle measurement, with an
> associated error bound. The units on the error bound are assumed to be the
> same as those on the measurement.</xs:documentation>
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="xxxxx:DecimalType">
> <xs:attribute name="angleUOM"
> type="xxxxx:AngleUOMType">
> <xs:annotation>
> <xs:documentation>A unit of
> measurement assigned to this angle.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> Similar to the suggested workaround given in XMLBEANS-356, if I change the
> xs:complexContent to xs:simpleContent and recompile the schema, I can use it
> just fine. But, also similar to XMLBEANS-356, I am a consumer of the schema
> and am not able to easily change it. If a sample xsd and java program to
> duplicate the problem are necessary or more information please let me know
> and I'll try to provide. The fragment is part of a very large complex set of
> schemas and is proprietary so I am trying to be diligent in what I post.
> Thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]