Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD Enumeration issue
XSD Enumeration issue [message #590711] Mon, 23 August 2004 12:21
Eclipse UserFriend
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
Previous Topic:Traversing a schema
Next Topic:XSD Enumeration issue
Goto Forum:
  


Current Time: Fri Apr 19 20:07:27 GMT 2024

Powered by FUDForum. Page generated in 0.03057 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top