Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Annotation appinfo troubles
Annotation appinfo troubles [message #586113] Tue, 27 April 2004 22:47
Eclipse UserFriend
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: Mon Jul 07 04:52:16 EDT 2025

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

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

Back to the top