[ http://issues.apache.org/jira/browse/XMLBEANS-223?page=all ]

Wing Yew Poon updated XMLBEANS-223:
-----------------------------------

    Summary: Generated code for schema with list of repeated names does not 
compile  (was: Error compiling But no errors When generating code)

> Generated code for schema with list of repeated names does not compile
> ----------------------------------------------------------------------
>
>          Key: XMLBEANS-223
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-223
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>  Environment: Linux, and Windows
>     Reporter: Paolo Marcheschi

>
> Hi
> I'm trying to use the XMLbeans framework to generate code to parse HL7
> CDA (clinical document Architecture) documents. I can generate the code
> but I'm unable to compile it, I have several errors (repeated
> interface).
> You can download the schema from :
> http://www.ifc.cnr.it/hl7/Final.zip
> the schema is Final\Schemas\CDA.xsd
> I use   -ms 100m -mx 400m
> I got a reply from [EMAIL PROTECTED] :
> Appears that there is an issue with one of the schemas (voc.xsd) which
> we do not handle in the best possible way:
> The definition of certain union types (e.g. Inhalation, OralRoute) have
> an attribute memberTypes which often looks like this:
> memberTypes="OralInhalation OralInhalation OralInhalation"
> There are no errors generating the code as this is not illegal. It
> appears that the right thing for XmlBeans to do in such cases is to make
> sure that we treat this as a list of 1 QName instead of 3 but at the
> moment we don't do so, so in this case we will generate a bad java file
> (if you can edit the schema to get rid of the repetition all works
> well).
> Thank you

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to