Home » Archived » XML Schema Definition (XSD) » Retrieving xs:extension tag
Retrieving xs:extension tag [message #71744] |
Thu, 08 March 2007 13:14  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Tue Feb 11 06:32:30 GMT 2025
Powered by FUDForum. Page generated in 0.03925 seconds
|