Hi Celano

I've just downloaded the xmlbeans-2.0.0-beta1 version and run it against
the schema you attached and I still can't reproduce the problem - both
the source files and the output jar are generated with no errors.

Is it possible that you have more than one scomp available on your
classpath and that you're mistakenly using the old one (use scomp
-version to tell you which one you're using)? Or is it possible that the
schema you attached is not the one against which scomp is running? One
reason that makes me suspect the latter is that when I took a copy of
your schema from the mail it only had 57 lines - yet one of the errors
refers to line 60.

The error messages you are seeing are definitely produced by XmlBeans -
but as far as I can see the schema you attached is valid and should not
produce those errors. And like I say - I don't see them or any other
errors when I run it.

Very weird.

Cheers,

Lawrence

> -----Original Message-----
> From: Celano, Luigi [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 10, 2005 1:20 AM
> To: [email protected]
> Cc: Lawrence Jones
> Subject: RE: Validation Problem with schema
> 
> 
> xmlbeans-2.0.0-beta1. Which one should I use? Is it a xmlbeans problem
> then?
> -----Original Message-----
> From: Lawrence Jones [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 09, 2005 9:26 PM
> To: [email protected]
> Subject: RE: Validation Problem with schema
> 
> 
> Hi Celano
> 
> I just ran your schema through scomp on the most up-to-date version
from
> the tree and it works fine. Can you tell me what version you were
using?
> 
> Thanks,
> 
> Lawrence
> 
> > -----Original Message-----
> > From: Celano, Luigi [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 09, 2005 10:24 AM
> > To: [email protected]
> > Subject: Validation Problem with schema
> >
> > I have the following schema which I am using to generate the
> > corresponding classes.
> >
> >
> > <schema xmlns="http://www.w3.org/2001/XMLSchema";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:api="http://esmmw.lehman.com/api";
> > targetNamespace="http://esmmw.lehman.com/api";>
> >     <annotation>
> >             <documentation xml:lang="en">Product</documentation>
> >     </annotation>
> >     <element name="products" type="api:products"/>
> >     <complexType name="products">
> >             <sequence>
> >                     <element name="product" type="api:product"
> > minOccurs="0" maxOccurs="unbounded"/>
> >             </sequence>
> >     </complexType>
> >     <complexType name="product">
> >             <sequence>
> >                     <element name="concepts" type="api:concepts"/>
> >             </sequence>
> >             <attribute name="id" type="xsd:string"/>
> >             <attribute name="code" type="xsd:string"/>
> >             <attribute name="type" type="xsd:string"/>
> >             <attribute name="version" type="xsd:string"/>
> >     </complexType>
> >     <complexType name="concepts">
> >             <sequence>
> >                     <element name="concept" type="api:concept"
> > minOccurs="0" maxOccurs="unbounded"/>
> >             </sequence>
> >     </complexType>
> >     <complexType name="concept">
> >             <sequence>
> >                     <element name="recs" type="api:recs"/>
> >             </sequence>
> >             <attribute name="cname" type="xsd:string"/>
> >     </complexType>
> >     <complexType name="recs">
> >             <sequence>
> >                     <element name="rec" type="api:rec" minOccurs="0"
> 
> > maxOccurs="unbounded"/>
> >             </sequence>
> >     </complexType>
> >     <complexType name="rec">
> >             <sequence>
> >                     <element name="attributes"
> > type="api:attributes"/>
> >             </sequence>
> >     </complexType>
> >     <complexType name="attributes">
> >             <sequence>
> >                     <element name="attribute" type="api:attribute"
> minOccurs="0"
> > maxOccurs="unbounded"/>
> >             </sequence>
> >     </complexType>
> >     <complexType name="attribute">
> >             <simpleContent>
> >                     <extension base="xsd:string">
> >                             <attribute name="name"
> > type="xsd:string"/>
> >                     </extension>
> >             </simpleContent>
> >     </complexType>
> > </schema>
> >
> >
> > When I run the schema compiler I get the following erroprs:
> >
> > C:\cvsdevel\esm\esmw_cache>scomp -src src -out lib\xmlproduct.jar
> > xml\products.xsd
> > products.xsd:22: error: cvc-complex-type.2.4a: Expected elements
> > '[EMAIL PROTECTED]://www.w3.org/2001/X
> > MLSchema [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema
> > [EMAIL PROTECTED]://www.w3.org/2001/XMLSche
> > ma' instead of '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' here in
> > element [EMAIL PROTECTED]://www.w3 .org/2001/XMLSchema
> > products.xsd:35: error: cvc-complex-type.2.4a: Expected elements
> > '[EMAIL PROTECTED]://www.w3.org/2001/X
> > MLSchema [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema
> > [EMAIL PROTECTED]://www.w3.org/2001/XMLSche
> > ma' instead of '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' here in
> > element [EMAIL PROTECTED]://www.w3
> > .org/2001/XMLSchema
> > products.xsd:60: error: cvc-complex-type.2.4a: Expected elements
> > '[EMAIL PROTECTED]://www.w3.org/2001/X
> > MLSchema [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema
> > [EMAIL PROTECTED]://www.w3.org/2001/XMLSche
> > ma' instead of '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' here
> in
> > element [EMAIL PROTECTED]://w
> > ww.w3.org/2001/XMLSchema
> > Time to build schema type system: 2.094 seconds
> > BUILD FAILED
> >
> > Any ideas?
> >
> >
> > Thanks a lot
> >
> >
> >
>
------------------------------------------------------------------------
> --
> > ----
> > This message is intended only for the personal and confidential use
of
> the
> > designated recipient(s) named above.  If you are not the intended
> > recipient of this message you are hereby notified that any review,
> > dissemination, distribution or copying of this message is strictly
> > prohibited.  This communication is for information purposes only and
> > should not be regarded as an offer to sell or as a solicitation of
an
> > offer to buy any financial product, an official confirmation of any
> > transaction, or as an official statement of Lehman Brothers.  Email
> > transmission cannot be guaranteed to be secure or error-free.
> Therefore,
> > we do not represent that this information is complete or accurate
and
> it
> > should not be relied upon as such.  All information is subject to
> change
> > without notice.
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>
------------------------------------------------------------------------
> --------
> 
> Join CEO Alfred Chuang and CTO Mark Carges on June 15 for a unique
> online
> event, giving you the first look at a new category of enterprise
> software
> built specifically for Service-Oriented Architecture (SOA).
> 
> Register Now.  It's Free!
> 
> http://www.bea.com/events/june15
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
>
------------------------------------------------------------------------
--
> ----
> This message is intended only for the personal and confidential use of
the
> designated recipient(s) named above.  If you are not the intended
> recipient of this message you are hereby notified that any review,
> dissemination, distribution or copying of this message is strictly
> prohibited.  This communication is for information purposes only and
> should not be regarded as an offer to sell or as a solicitation of an
> offer to buy any financial product, an official confirmation of any
> transaction, or as an official statement of Lehman Brothers.  Email
> transmission cannot be guaranteed to be secure or error-free.
Therefore,
> we do not represent that this information is complete or accurate and
it
> should not be relied upon as such.  All information is subject to
change
> without notice.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Join CEO Alfred Chuang and CTO Mark Carges on June 15 for a unique online 
event, giving you the first look at a new category of enterprise software 
built specifically for Service-Oriented Architecture (SOA).

Register Now.  It's Free!

http://www.bea.com/events/june15

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

Reply via email to