Dave Kuhlman wrote:
> Hmmm. My test shows that it *does* export the element name rather than the
> type
> name. Perhaps there is something special about my test so that it does not
> expose the behavior you describe.
>
> If you want to try my test, I've included an XML Schema and an XML instance
> document that you can feed through the code generated from the Schema. Then
> take a look at the promoter/booster element.
>
In the example you included, the types are defined within the element.
The situation I'm describing occurs when the type is defined separately.
So here is a portion of your example changed to reproduce the effect.
<xs:element name="person" type="pl:personDataType">
<xs:complexType name="personDataType">
<xs:sequence>
<xs:element name="name" type="xs:string"
minOccurs="0"/>
<xs:element name="ratio" type="percent" />
<xs:element name="imagesize" type="scale" />
<xs:element name="imageproperty" type="descriptor" />
<xs:element name="interest" type="xs:string"
maxOccurs="unbounded"/>
<xs:element name="category" type="xs:integer"
default="-2"/>
<xs:element name="hot.agent" type="hot.agent" />
<xs:element name="promoter" type="booster"
maxOccurs="unbounded" />
<xs:element name="hot" type="BasicEmptyType" />
<xs:element name="size" type="xs:int" />
<xs:element name="registered" type="xs:boolean" />
</xs:sequence>
<xs:attribute name="value" default="nobody 'here'" />
<xs:attribute name="id" type="xs:integer" />
<xs:attribute name="ratio" type="xs:float" />
<xs:attribute name="activated" type="xs:boolean" />
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
Randall
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users