Annotation appinfo troubles [message #586113] |
Wed, 28 April 2004 02:47 |
foo bar 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
|
|
|
Powered by
FUDForum. Page generated in 0.02581 seconds