users@jaxb.java.net

Problem with BPMI Schema

From: Gunaranjan C <gunaranjan_c_at_SATYAM.COM>
Date: Fri, 17 Jan 2003 12:25:33 -0700

I tried using JAXB on the Business Process Modelling Lang schema (www.bpmi.org)

The instance definition gives an error that

An interface with the same name "bpml.instance.Service" is generated from more than one schema component.
  line 35 of BPML-2002-instance.xsd

(Relevant to above error) another one is generated from this schema component. line 37 of BPML-2002-instance.xsd

Failed to parse a schema.

The instance definition is below.

-------------------------------------------------------------------
<xsd:schema targetNamespace="http://www.bpmi.org/2002/BPML/instance"
            xmlns:inst="http://www.bpmi.org/2002/BPML/instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified" blockDefault="#all">

  <xsd:simpleType name="instance">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="state">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="active"/>
      <xsd:enumeration value="completing"/>
      <xsd:enumeration value="completed"/>
      <xsd:enumeration value="aborting"/>
      <xsd:enumeration value="aborted"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:element name="service" type="inst:service"/>

  <xsd:complexType name="service">
    <xsd:attribute name="name" type="xsd:QName"
                   use="required"/>
    <xsd:attribute name="location" type="xsd:anyURI"
                   use="optional"/>
  </xsd:complexType>


</xsd:schema>

-------------------------------------------------------------------

The process definition (too big to include here) also fails saying ....

s4s-att-not-allowed: Attribute 'minOccurs' cannot appear in element 'choice'.
  line 296 of BPML-2002-process.xsd

s4s-att-not-allowed: Attribute 'maxOccurs' cannot appear in element 'choice'.
  line 296 of BPML-2002-process.xsd

cos-nonambig: "http://www.bpmi.org/2002/BPML/process":output and "http://www.bpmi.org/2002/BPML/process":output (or elements from their substitution group) violate "Unique Particle Attribution".
  line 395 of BPML-2002-process.xsd

Failed to parse a schema.

--Any idea?