Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » EMF XSD Parser Bug for SimpleType Definition in case of List and Union
EMF XSD Parser Bug for SimpleType Definition in case of List and Union [message #210155] Tue, 11 March 2008 03:34 Go to previous message
Eclipse User
Originally posted by: Keshavrao.veerapaeni.sap.com

The Bug is with EMF XSD parser for XSDSimpleTypeDefinition in union and
the list case.

For example i have a simple type type deinfition 'B' which is of union
type and it has two memberTypes defined as string and iteger, and also
one anonymous type definition.
in this case the parser should return the anonymous type definition in
the 'contents', and string, integer and anonymous type definition as
'memeberTypeDefinitions'.This is working fine but if now i have another
simple type definition 'A' which extends 'B', in this case for 'A' the
memberTypeDefinitions and the contents should not exist because they
are defined as a part of the super type which is 'B'. But now i am
also getting the memberTypeDefinitions and the contents of the super
type in 'A' also.
Same thing is also happening with the list type definition where i am
getting the 'itemTypeDefinition' of the super type in the child type.

I have pasted the above mentioned example here-

<?xml version='1.0' encoding='UTF-8'?>
<xs:schema targetNamespace="SimpleTypeDefinitionExtendingUnion.xsd"
blockDefault="#all" elementFormDefault="qualified"
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xml:lang="EN"
xmlns="SimpleTypeDefinitionExtendingUnion.xsd">

<xs:simpleType name="B">
<xs:union memberTypes="xs:string xs:integer">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="undefined"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>

<xs:simpleType name="A">
<xs:restriction base="B">

</xs:restriction>
</xs:simpleType>
</xs:schema>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:content assist, folding , hiding
Next Topic:JSDT: types scoping differs from browsers
Goto Forum:
  


Current Time: Sun May 26 05:01:33 EDT 2013

Powered by FUDForum. Page generated in 0.01708 seconds