XSD Enumeration issue [message #590711] |
Mon, 23 August 2004 12:21 |
Eclipse User |
|
|
|
Originally posted by: alastair.dunsmore.mottmac.com
I have a small problem with some EEnum Literals not appearing for an
annotation. This is highlighted in the following sample:
<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema">
<xsd:attribute name = "Direction">
<xsd:annotation>
<xsd:documentation>Direction</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base = "xsd:string">
<xsd:enumeration value = "Circular"/>
<xsd:enumeration value = "Clockwise"/>
<xsd:enumeration value = "Anti-Clockwise"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:schema>
If I import this via XSD into eclipse, then the generated Ecore does not
have EEnum Literals - instead i get a Key-Value pair with the
Key="enumeration" and Value has a space delimited string of the
Enumerations. If the 3rd enumeration, "Anti-Clockwise" is commented out
it works as expected. Is the "-" character causing this? Is this
character illegal in this usage context or is this a problem with XSD?
I am currenly using XSD v200408120834.
Thanks for you help,
Regards,
Alastair Dunsmore
|
|
|
Powered by
FUDForum. Page generated in 0.03064 seconds