jaxme doesn't recognise complex type where jaxb does
----------------------------------------------------

         Key: JAXME-73
         URL: http://issues.apache.org/jira/browse/JAXME-73
     Project: JaxMe
        Type: Bug
    Versions: 0.5    
 Environment: Linux Debian Unstable
J2SDK 1.4
    Reporter: Eric Lavarde


Hi,

trying to go around issue http://issues.apache.org/jira/browse/JAXME-61, and 
helped by upstream, I replaced:

        <xs:group name="base">
       <xs:choice>
                  <xs:element ref="menu_category"/>
                  <xs:element ref="menu_submenu"/>
                  <xs:element ref="menu_action"/>
                  <xs:element ref="menu_checked_action"/>
                  <xs:element ref="menu_separator"/>
       </xs:choice>
        </xs:group>

       [...]

    <xs:complexType name="menu_category_base">
              <xs:sequence>
                <xs:choice minOccurs="0" maxOccurs="unbounded">
                  <xs:group ref="base"/>
                </xs:choice>
              </xs:sequence>
              <xs:attribute name="name" use="required" type="xs:string"/>
    </xs:complexType>

through

    <xs:complexType name="menu_category_base">
              <xs:sequence>
                <xs:choice minOccurs="0" maxOccurs="unbounded">
                  <xs:element ref="menu_category"/> 
                  <xs:element ref="menu_submenu"/> 
                  <xs:element ref="menu_action"/> 
                  <xs:element ref="menu_checked_action"/> 
                  <xs:element ref="menu_separator"/> 
                </xs:choice>
              </xs:sequence>
              <xs:attribute name="name" use="required" type="xs:string"/>
    </xs:complexType>

This works with the original jaxb, but I get the following error from jaxme:
BUILD FAILED
/home/ericl/freemind-0.8.0+01/freemind/build.xml:72: The following error 
occurred while executing this line:
/home/ericl/freemind-0.8.0+01/freemind/build.xml:48: At 
file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, line 842, 
column 1: At file:/home/ericl/freemind-0.8.0+01/freemind/freemind_actions.xsd, 
line 842, column 1: java.lang.IllegalStateException: The type 
menu_category_base is simple.

Any help, workaround, patch, whatever would be very welcome!

Thanks, Eric

-- 
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