users@jaxb.java.net

problem with SMIL2.0 schema

From: Petra Köster <p-koester_at_gmx.de>
Date: Mon, 29 Sep 2003 18:56:39 +0200

Hi,

I have a question on using JAXB: I want to generate Java classes to the
SMIL2.0 Schema. I call JAXB with the command
“xjc -d /output -p smilElementsBasedClasses -extension -nv -xmlschema
C:\Programme\jwsdp1.2\jaxb\bin\Schema\smil20-HostLanguage.xsd”.

The result are many error messages, all like the following pattern:

[ERROR] A property with the same name "MetaGroup" is generated from more
than on
e schema component.
  line 73 of smil20-language.xsd

[ERROR] (Relevant to above error) another one is generated from this
schema comp
onent.
  line 78 of smil20-language.xsd

The code above belongs to the file smil20-language.xsd.


What is wrong?


 I hope someone of you have an answer to my.

Thank you
Petra
------------------------------------The code of the schema module is:
----------------------------------


    <complexType name="headType">
        <complexContent>
            <extension base="smil20:headPrototype">
                <sequence>
                    <group ref="smil20lang:metaGroup" minOccurs="0"
maxOccurs="unbounded"/>

                    <sequence minOccurs="0" maxOccurs="1">
                        <group ref="smil20lang:customAttributesGroup"
minOccurs="1" maxOccurs="1"/>
                        <group ref="smil20lang:metaGroup" minOccurs="0"
maxOccurs="unbounded"/> (line 73)
                    </sequence>

                    <sequence minOccurs="0" maxOccurs="1">
                        <group ref="smil20lang:metadataGroup"
minOccurs="1" maxOccurs="1"/>
                        <group ref="smil20lang:metaGroup" minOccurs="0"
maxOccurs="unbounded"/> (line 78)
                    </sequence>

                    <sequence minOccurs="0" maxOccurs="1">
                        <choice minOccurs="1" maxOccurs="1">
                            <group ref="smil20lang:layoutGroup"/>

                            <group ref="smil20lang:switchGroup"/>
                        </choice>
                        <group ref="smil20lang:metaGroup" minOccurs="0"
maxOccurs="unbounded"/>
                    </sequence>

                    <sequence minOccurs="0" maxOccurs="1">
                        <group ref="smil20lang:transitionGroup"
minOccurs="1" maxOccurs="unbounded"/>
                        <group ref="smil20lang:metaGroup" minOccurs="0"
maxOccurs="unbounded"/>
                    </sequence>

                </sequence>
                <attributeGroup ref="smil20lang:CoreAttrs"/>
                <anyAttribute namespace="##any"
processContents="strict"/>
            </extension>
        </complexContent>
    </complexType>