I modified the schema to work (at least compile) with xmlbeans.

The fixes were simple, but I don't know if they maintain complete
compatibility with the 2000/10 version.

 

To update the schema, I:

1)       updated the 2000/10 namespace to 2001

2)       changed any references to the 2000/10 datatype 'timeInstant'
with the similar 2001 'dateTime' datatype

3)       I modified an xs:attribute declaration to use the 2001 syntax
of: default="value" instead of the 2001, use=default value="value"

Line 167: <attribute name = "type" default="Start-Stop">

 

I hope this helps as a workaround in your case, but I agree with Radu,
you should ask the author of this schema to make the updates.

-Jacobd

________________________________

From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 2:18 PM
To: user@xmlbeans.apache.org
Subject: RE: Please help: Cannot compile
http://www.w3.org/2001/XMLSchema

 

No, sorry, if the Schema uses XMLSchema 2000 - only features, then we
don't support it. Basically the 2000/10 is a draft that was never
published as a recomendation, what XmlBeans supports is the
recommendation. I think you should talk to the Schema author, I mean,
it's been more than 5 years now since XMLSchema was published as a
recommendation, so I think it is reasonable to ask Schema authors to
update their Schemas.

 

Radu

 

________________________________

From: Alex Zhang [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 7:14 AM
To: user@xmlbeans.apache.org
Subject: Re: Please help: Cannot compile
http://www.w3.org/2001/XMLSchema

Thank you Radu for replying.

I actually tried that before I posted this. Unfortunately the schema
file doesn't comply with  "http://www.w3.org/2001/XMLSchema";. 

Can I configure XMLBeans to work with
http://www.w3.org/2000/10/XMLSchema?

thanks again.

Alexxx



On 2/23/07, Radu Preotiuc-Pietro <[EMAIL PROTECTED]> wrote: 

Indeed, it's because the xmlns value is
"http://www.w3.org/2000/10/XMLSchema"; instead of
"http://www.w3.org/2001/XMLSchema ".

You can download the Schema and then change it, in most cases it will
work (or use the XmlOptions.setLoadSubstituteNamespaces() trick to
replace one with the other if you load the Schema via API)

Radu

On Fri, 2007-02-23 at 17:42 -0500, Alex Zhang wrote:
> Hi all,
>
> I am trying to compile the following schema file into jar, but got
> "Document ipdr2.0.xsd is not a schema file" error. 
>
> http://www.ipdr.org/public/ipdr2.0.xsd
>
> I guess it is somehow related to the xmlns value
> " http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>
".
>
> Please help. thank you.
>
>
> Alex
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual

or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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

 

Reply via email to