xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Campbell <noahcampb...@gmail.com>
Subject Re: Converting ReverseDb repository.dtd to repository.xsd for XMLBeans
Date Wed, 07 Jul 2004 23:10:25 GMT
use the -noupa flag

Noah

On Wed, 7 Jul 2004 08:33:44 -0700 (PDT), Dutta Satadip
<s-dutta@sbcglobal.net> wrote:
> Just another point ..you might want to try the -noupa
> arugment with scomp to skip these checks
> Dutta:)
> --- Brian McCallister
> <mccallister@forthillcompany.com> wrote:
> > My xsd-fu is quite weak, but I agree that having a
> > schema would be good
> > =/
> >
> > -Brian
> >
> > On Jul 7, 2004, at 4:43 AM, Philip DONAGHY wrote:
> >
> > > Hello,
> > >
> > > I am pleased with the xml file and Java beans that
> > ReverseDB has
> > > generated for me. I am trying to avoid writing a
> > xml parser for this
> > > file and I like the way that XMLBeans does this.
> > So I am looking for a
> > > repository.xsd file.
> > >
> > > I have tried using some tools to convert a dtd to
> > an xml schema
> > > (XMLSpy,
> > > dtd2xs, dtd2xs-2.0) but XMLBeans always comes up
> > with the same error
> > > while generating the XMLBeans.
> > >
> > > "Content model violates the unique particle
> > attribution rule"
> > >
> > > A repository.xsd or any ideas and experience would
> > be appreciated,
> > > thanks,
> > >
> > > Phil
> > >
> > > The erroneous xml schema follows,
> > >
> > > <xs:schema
> > xmlns:xs="http://www.w3.org/2001/XMLSchema">
> > >  <xs:element name="attribute">
> > >   <xs:complexType>
> > >    <xs:sequence>
> > >     <xs:element ref="documentation"
> > minOccurs="0"/>
> > >    </xs:sequence>
> > >    <xs:attribute name="attribute-name"
> > use="required"/>
> > >    <xs:attribute name="attribute-value"
> > use="required"/>
> > >   </xs:complexType>
> > >  </xs:element>
> > >  <xs:element name="class-descriptor">
> > >   <xs:complexType>
> > >    <xs:choice>
> > >     <xs:sequence>
> > >      <xs:element ref="documentation"
> > minOccurs="0"/>
> > >      <xs:element ref="extent-class"
> > maxOccurs="unbounded"/>
> > >      <xs:element ref="attribute" minOccurs="0"
> > maxOccurs="unbounded"/>
> > >     </xs:sequence>
> > >     <xs:sequence>
> > >      <xs:element ref="documentation"
> > minOccurs="0"/>
> > >      <xs:element ref="object-cache"
> > minOccurs="0"/>
> > >      <xs:element ref="extent-class" minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >      <xs:element ref="field-descriptor"
> > maxOccurs="unbounded"/>
> > >      <xs:element ref="reference-descriptor"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >      <xs:element ref="collection-descriptor"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >      <xs:element ref="index-descriptor"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >      <xs:element ref="attribute" minOccurs="0"
> > maxOccurs="unbounded"/>
> > >      <xs:element ref="insert-procedure"
> > minOccurs="0"/>
> > >      <xs:element ref="update-procedure"
> > minOccurs="0"/>
> > >      <xs:element ref="delete-procedure"
> > minOccurs="0"/>
> > >     </xs:sequence>
> > >    </xs:choice>
> > >    <xs:attribute name="class" type="xs:ID"
> > use="required"/>
> > >    <xs:attribute name="isolation-level"
> > default="read-uncommitted">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="read-uncommitted"/>
> > >       <xs:enumeration value="read-committed"/>
> > >       <xs:enumeration value="repeatable-read"/>
> > >       <xs:enumeration value="serializable"/>
> > >       <xs:enumeration value="optimistic"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="proxy"/>
> > >    <xs:attribute name="proxy-prefetching-limit"/>
> > >    <xs:attribute name="schema"/>
> > >    <xs:attribute name="table"/>
> > >    <xs:attribute name="row-reader"/>
> > >    <xs:attribute name="extends" type="xs:IDREF"/>
> > >    <xs:attribute name="accept-locks"
> > default="true">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="true"/>
> > >       <xs:enumeration value="false"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="initialization-method"/>
> > >    <xs:attribute name="factory-class"/>
> > >    <xs:attribute name="factory-method"/>
> > >    <xs:attribute name="refresh" default="false">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="true"/>
> > >       <xs:enumeration value="false"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >   </xs:complexType>
> > >  </xs:element>
> > >  <xs:element name="collection-descriptor">
> > >   <xs:complexType>
> > >    <xs:sequence>
> > >     <xs:element ref="documentation"
> > minOccurs="0"/>
> > >     <xs:element ref="orderby" minOccurs="0"
> > maxOccurs="unbounded"/>
> > >     <xs:element ref="inverse-foreignkey"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >     <xs:element ref="fk-pointing-to-this-class"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >     <xs:element ref="fk-pointing-to-element-class"
> > minOccurs="0"
> > > maxOccurs="unbounded"/>
> > >     <xs:element ref="query-customizer"
> > minOccurs="0"/>
> > >     <xs:element ref="attribute" minOccurs="0"
> > maxOccurs="unbounded"/>
> > >    </xs:sequence>
> > >    <xs:attribute name="name"/>
> > >    <xs:attribute name="collection-class"/>
> > >    <xs:attribute name="element-class-ref"
> > type="xs:IDREF"
> > > use="required"/>
> > >    <xs:attribute name="orderby"/>
> > >    <xs:attribute name="sort" default="ASC">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="ASC"/>
> > >       <xs:enumeration value="DESC"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="indirection-table"/>
> > >    <xs:attribute name="proxy" default="false">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="true"/>
> > >       <xs:enumeration value="false"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="proxy-prefetching-limit"/>
> > >    <xs:attribute name="refresh" default="false">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="true"/>
> > >       <xs:enumeration value="false"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="auto-retrieve"
> > default="true">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="true"/>
> > >       <xs:enumeration value="false"/>
> > >      </xs:restriction>
> > >     </xs:simpleType>
> > >    </xs:attribute>
> > >    <xs:attribute name="auto-update"
> > default="false">
> > >     <xs:simpleType>
> > >      <xs:restriction base="xs:string">
> > >       <xs:enumeration value="none"/>
> > >       <xs:enumeration value="link"/>
> > >       <xs:enumeration value="object"/>
> > >       <xs:enumeration value="true"/>
> > 
> === message truncated ===
> 
> 
> 
> 
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> 
>

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message