Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Annotation appinfo troubles
Annotation appinfo troubles [message #586113] Wed, 28 April 2004 02:47
foo bar is currently offline foo barFriend
Messages: 55
Registered: July 2009
Member
Hi,

I am trying to add appinfo to an annotation for an xsd:enumeration (used on
an integer based restricted simple type - let's call it "foo").

If I use createApplicationInformation to create the appinfo on the
enumeration, an element declaration based on the type containing the
enumeration is printed without the type reference:
<xsd:complexType name="tComplex">

<xsd:sequence>

<xsd:element name="baz" type="xsd:string"/>

<xsd:element name="bar"/>

<xsd:element name="ttt"/>

The annotation, appinfo and my custom appinfo child elements are printed
fine together with the simple type containing the enumeration.

If I comment out the code that creates the appinfo, the element declaration
is printed with the proper type:


<xsd:complexType name="tComplex">

<xsd:sequence>

<xsd:element name="baz" type="xsd:string"/>

<xsd:element name="bar" type="tns:foo"/>

<xsd:element name="ttt" type="xsd:string"/>

I've tried commenting out the code that adds my own custom "any" content
under appinfo. The result is the same.

What is strange is that even elements based on xsd types (for example
xsd:string) are printed without their type as soon as one call to
createApplicationInformation is being made..

Unfortunately, I can't attach the entire code due to dependencies on other
libraries.

I am running version 1.1.0. Any suggestions are appreciated.

Regards,

Valentin
Previous Topic:Problems copying an XSDSchema
Next Topic:New Library for generating xml instance etc.. etc..
Goto Forum:
  


Current Time: Fri Apr 19 19:00:48 GMT 2024

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

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

Back to the top