Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Retrieving xs:extension tag
Retrieving xs:extension tag [message #71744] Thu, 08 March 2007 13:14 Go to next message
Maxence VANBÉSIEN is currently offline Maxence VANBÉSIENFriend
Messages: 40
Registered: July 2009
Location: Lille, France
Member
Hello,

I'm quite new in XSD development, and I have troubles parsing an XSD Model.

Here is the piece of model I have trouble with :

<xs:element name="title">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>

During parsing, I found a those elements :

XSDElementDeclaration
XSDComplexTypeDefinition
XSDSimpleTypeDefinition
XSDBoundedFacet
XSDCardinalityFacet
XSDNumericFacet
XSDOrderedFacet
XSDAttributeUse
XSDAttributeDeclaration

I know that the XSDSimpleTypeDefinition stands for the
<xs:simpleContent> tag, but I can't find any information on the
<xs:extension> tag, and the DerivationAnnotation is always an empty list.

Where can I get information about this tag ?

Thanks a lot in advance,

Regards,

Maxence
Re: Retrieving xs:extension tag [message #71763 is a reply to message #71744] Thu, 08 March 2007 15:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Maxence,

On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.


Maxence Vanbesien wrote:
> Hello,
>
> I'm quite new in XSD development, and I have troubles parsing an XSD
> Model.
>
> Here is the piece of model I have trouble with :
>
> <xs:element name="title">
> <xs:complexType>
> <xs:simpleContent>
> <xs:extension base="xs:string">
> <xs:attribute ref="lang"/>
> </xs:extension>
> </xs:simpleContent>
> </xs:complexType>
> </xs:element>
>
> During parsing, I found a those elements :
>
> XSDElementDeclaration
> XSDComplexTypeDefinition
> XSDSimpleTypeDefinition
> XSDBoundedFacet
> XSDCardinalityFacet
> XSDNumericFacet
> XSDOrderedFacet
> XSDAttributeUse
> XSDAttributeDeclaration
>
> I know that the XSDSimpleTypeDefinition stands for the
> <xs:simpleContent> tag, but I can't find any information on the
> <xs:extension> tag, and the DerivationAnnotation is always an empty list.
>
> Where can I get information about this tag ?
>
> Thanks a lot in advance,
>
> Regards,
>
> Maxence
Re: Retrieving xs:extension tag [message #71782 is a reply to message #71763] Fri, 09 March 2007 14:56 Go to previous messageGo to next message
Maxence VANBÉSIEN is currently offline Maxence VANBÉSIENFriend
Messages: 40
Registered: July 2009
Location: Lille, France
Member
Hi Ed,

First of all, thanks for your help !

By doing what you told me, I managed to get the tag, and its name,
telling me I have to deal with a String... But I still can't retrieve if
I really have an Extension, or a Restriction or smtg else... Do I have
to get it from the eFlags ?

Regards,

Maxence

Ed Merks a écrit :
> Maxence,
>
> On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.
>
>
> Maxence Vanbesien wrote:
>> Hello,
>>
>> I'm quite new in XSD development, and I have troubles parsing an XSD
>> Model.
>>
>> Here is the piece of model I have trouble with :
>>
>> <xs:element name="title">
>> <xs:complexType>
>> <xs:simpleContent>
>> <xs:extension base="xs:string">
>> <xs:attribute ref="lang"/>
>> </xs:extension>
>> </xs:simpleContent>
>> </xs:complexType>
>> </xs:element>
>>
>> During parsing, I found a those elements :
>>
>> XSDElementDeclaration
>> XSDComplexTypeDefinition
>> XSDSimpleTypeDefinition
>> XSDBoundedFacet
>> XSDCardinalityFacet
>> XSDNumericFacet
>> XSDOrderedFacet
>> XSDAttributeUse
>> XSDAttributeDeclaration
>>
>> I know that the XSDSimpleTypeDefinition stands for the
>> <xs:simpleContent> tag, but I can't find any information on the
>> <xs:extension> tag, and the DerivationAnnotation is always an empty list.
>>
>> Where can I get information about this tag ?
>>
>> Thanks a lot in advance,
>>
>> Regards,
>>
>> Maxence
Re: Retrieving xs:extension tag [message #71801 is a reply to message #71782] Fri, 09 March 2007 15:34 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Maxence,

You'll want to check the value of
XSDComplexTypeDefinition.getDerivationMethod(). You might want to check
XSDComplexTypeDefinition.getContentTypeCategory to see if it's simple or
something else.


Maxence Vanbesien wrote:
> Hi Ed,
>
> First of all, thanks for your help !
>
> By doing what you told me, I managed to get the tag, and its name,
> telling me I have to deal with a String... But I still can't retrieve
> if I really have an Extension, or a Restriction or smtg else... Do I
> have to get it from the eFlags ?
>
> Regards,
>
> Maxence
>
> Ed Merks a écrit :
>> Maxence,
>>
>> On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.
>>
>>
>> Maxence Vanbesien wrote:
>>> Hello,
>>>
>>> I'm quite new in XSD development, and I have troubles parsing an XSD
>>> Model.
>>>
>>> Here is the piece of model I have trouble with :
>>>
>>> <xs:element name="title">
>>> <xs:complexType>
>>> <xs:simpleContent>
>>> <xs:extension base="xs:string">
>>> <xs:attribute ref="lang"/>
>>> </xs:extension>
>>> </xs:simpleContent>
>>> </xs:complexType>
>>> </xs:element>
>>>
>>> During parsing, I found a those elements :
>>>
>>> XSDElementDeclaration
>>> XSDComplexTypeDefinition
>>> XSDSimpleTypeDefinition
>>> XSDBoundedFacet
>>> XSDCardinalityFacet
>>> XSDNumericFacet
>>> XSDOrderedFacet
>>> XSDAttributeUse
>>> XSDAttributeDeclaration
>>>
>>> I know that the XSDSimpleTypeDefinition stands for the
>>> <xs:simpleContent> tag, but I can't find any information on the
>>> <xs:extension> tag, and the DerivationAnnotation is always an empty
>>> list.
>>>
>>> Where can I get information about this tag ?
>>>
>>> Thanks a lot in advance,
>>>
>>> Regards,
>>>
>>> Maxence
Re: Retrieving xs:extension tag [message #602201 is a reply to message #71744] Thu, 08 March 2007 15:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Maxence,

On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.


Maxence Vanbesien wrote:
> Hello,
>
> I'm quite new in XSD development, and I have troubles parsing an XSD
> Model.
>
> Here is the piece of model I have trouble with :
>
> <xs:element name="title">
> <xs:complexType>
> <xs:simpleContent>
> <xs:extension base="xs:string">
> <xs:attribute ref="lang"/>
> </xs:extension>
> </xs:simpleContent>
> </xs:complexType>
> </xs:element>
>
> During parsing, I found a those elements :
>
> XSDElementDeclaration
> XSDComplexTypeDefinition
> XSDSimpleTypeDefinition
> XSDBoundedFacet
> XSDCardinalityFacet
> XSDNumericFacet
> XSDOrderedFacet
> XSDAttributeUse
> XSDAttributeDeclaration
>
> I know that the XSDSimpleTypeDefinition stands for the
> <xs:simpleContent> tag, but I can't find any information on the
> <xs:extension> tag, and the DerivationAnnotation is always an empty list.
>
> Where can I get information about this tag ?
>
> Thanks a lot in advance,
>
> Regards,
>
> Maxence
Re: Retrieving xs:extension tag [message #602211 is a reply to message #71763] Fri, 09 March 2007 14:56 Go to previous message
Maxence VANBÉSIEN is currently offline Maxence VANBÉSIENFriend
Messages: 40
Registered: July 2009
Location: Lille, France
Member
Hi Ed,

First of all, thanks for your help !

By doing what you told me, I managed to get the tag, and its name,
telling me I have to deal with a String... But I still can't retrieve if
I really have an Extension, or a Restriction or smtg else... Do I have
to get it from the eFlags ?

Regards,

Maxence

Ed Merks a écrit :
> Maxence,
>
> On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.
>
>
> Maxence Vanbesien wrote:
>> Hello,
>>
>> I'm quite new in XSD development, and I have troubles parsing an XSD
>> Model.
>>
>> Here is the piece of model I have trouble with :
>>
>> <xs:element name="title">
>> <xs:complexType>
>> <xs:simpleContent>
>> <xs:extension base="xs:string">
>> <xs:attribute ref="lang"/>
>> </xs:extension>
>> </xs:simpleContent>
>> </xs:complexType>
>> </xs:element>
>>
>> During parsing, I found a those elements :
>>
>> XSDElementDeclaration
>> XSDComplexTypeDefinition
>> XSDSimpleTypeDefinition
>> XSDBoundedFacet
>> XSDCardinalityFacet
>> XSDNumericFacet
>> XSDOrderedFacet
>> XSDAttributeUse
>> XSDAttributeDeclaration
>>
>> I know that the XSDSimpleTypeDefinition stands for the
>> <xs:simpleContent> tag, but I can't find any information on the
>> <xs:extension> tag, and the DerivationAnnotation is always an empty list.
>>
>> Where can I get information about this tag ?
>>
>> Thanks a lot in advance,
>>
>> Regards,
>>
>> Maxence
Re: Retrieving xs:extension tag [message #602219 is a reply to message #71782] Fri, 09 March 2007 15:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Maxence,

You'll want to check the value of
XSDComplexTypeDefinition.getDerivationMethod(). You might want to check
XSDComplexTypeDefinition.getContentTypeCategory to see if it's simple or
something else.


Maxence Vanbesien wrote:
> Hi Ed,
>
> First of all, thanks for your help !
>
> By doing what you told me, I managed to get the tag, and its name,
> telling me I have to deal with a String... But I still can't retrieve
> if I really have an Extension, or a Restriction or smtg else... Do I
> have to get it from the eFlags ?
>
> Regards,
>
> Maxence
>
> Ed Merks a écrit :
>> Maxence,
>>
>> On the XSDSimpleTypeDefinition you'll want fetch getBaseTypeDefinition.
>>
>>
>> Maxence Vanbesien wrote:
>>> Hello,
>>>
>>> I'm quite new in XSD development, and I have troubles parsing an XSD
>>> Model.
>>>
>>> Here is the piece of model I have trouble with :
>>>
>>> <xs:element name="title">
>>> <xs:complexType>
>>> <xs:simpleContent>
>>> <xs:extension base="xs:string">
>>> <xs:attribute ref="lang"/>
>>> </xs:extension>
>>> </xs:simpleContent>
>>> </xs:complexType>
>>> </xs:element>
>>>
>>> During parsing, I found a those elements :
>>>
>>> XSDElementDeclaration
>>> XSDComplexTypeDefinition
>>> XSDSimpleTypeDefinition
>>> XSDBoundedFacet
>>> XSDCardinalityFacet
>>> XSDNumericFacet
>>> XSDOrderedFacet
>>> XSDAttributeUse
>>> XSDAttributeDeclaration
>>>
>>> I know that the XSDSimpleTypeDefinition stands for the
>>> <xs:simpleContent> tag, but I can't find any information on the
>>> <xs:extension> tag, and the DerivationAnnotation is always an empty
>>> list.
>>>
>>> Where can I get information about this tag ?
>>>
>>> Thanks a lot in advance,
>>>
>>> Regards,
>>>
>>> Maxence
Previous Topic:Retrieving xs:extension tag
Next Topic:Identifier and package names in XSD-based EMF
Goto Forum:
  


Current Time: Sat Nov 22 16:58:34 GMT 2014

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

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