Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xsd-dev] Re: Using/Parsing w3.2001.XMLSchema

Hello,

I just tried the attached XMLSchema.xsd file in the Sample XML Schema
Editor on a couple of different builds and the errors do not occur on the
latest 2 builds.

Build 20030527_0913VL xsd and 20030527_0913VL emf
No errors occur

Build 20030519_0521VL xsd and 20030519_0521VL emf
No errors occur

Build 20030501_0612VL xsd and 20030501_0612VL emf
The following errors occur
Kind  Status      Priority    Description Resource    In Folder   Location
Error             XSD: The location 'http://www.w3.org/2001/xml.xsd' may
not resolve to something other than a schema    XMLSchema.xsd     a
line 200
Error             XSD: Attribute reference
'http://www.w3.org/XML/1998/namespace#lang' is unresolved   XMLSchema.xsd
a     line 325
Error             XSD: The value '1' of attribute 'default' must be one of
0, 1 as constrained by 'http://www.w3.org/2001/XMLSchema#minOccurs_._type'
XMLSchema.xsd     a     line 882
Error             XSD: The enumeration facet is not permitted in a type
based on 'http://www.w3.org/2001/XMLSchema#decimal'   XMLSchema.xsd     a
line 886
Error             XSD: The enumeration facet is not permitted in a type
based on 'http://www.w3.org/2001/XMLSchema#decimal'   XMLSchema.xsd     a
line 887
Error             XSD: The value '1' of attribute 'default' must be one of
0, 1 as constrained by 'http://www.w3.org/2001/XMLSchema#maxOccurs_._type'
XMLSchema.xsd     a     line 891
Error             XSD: The enumeration facet is not permitted in a type
based on 'http://www.w3.org/2001/XMLSchema#allNNI'    XMLSchema.xsd     a
line 895
Error             XSD: The enumeration facet is not permitted in a type
based on 'http://www.w3.org/2001/XMLSchema#allNNI'    XMLSchema.xsd     a
line 896
Error             XSD: Attribute reference
'http://www.w3.org/XML/1998/namespace#lang' is unresolved   XMLSchema.xsd
a     line 1274


Regards
Dave Spriet


WebSphere MQ Integration Tooling,
email: spriet@xxxxxxxxxx


|---------+---------------------------->
|         |           "Hank            |
|         |           Ratzesberger"    |
|         |           <hankr@xxxxxxxxxx|
|         |           sb.edu>          |
|         |           Sent by:         |
|         |           xsd-dev-admin@ecl|
|         |           ipse.org         |
|         |                            |
|         |                            |
|         |           05/29/2003 06:08 |
|         |           PM               |
|         |           Please respond to|
|         |           xsd-dev          |
|---------+---------------------------->
  >---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                             |
  |       To:       <xsd-dev@xxxxxxxxxxx>                                                                                                       |
  |       cc:                                                                                                                                   |
  |       Subject:  Re: [xsd-dev] Re: Using/Parsing w3.2001.XMLSchema                                                                           |
  |                                                                                                                                             |
  |                                                                                                                                             |
  >---------------------------------------------------------------------------------------------------------------------------------------------|




----- Original Message -----
From: "Bob Schloss"
Sent: Thursday, May 29, 2003 2:49 PM
Subject: [xsd-dev] Re: Using/Parsing w3.2001.XMLSchema

> Do you have an <import> element information item in your schema?  You
> should not need one if all you are doing is creating types which restrict
> the built-in simpleTypes or you are making elements or attributes that
use
> the built-in simpleTypes.

There is no <import> for XMLSchema.xsd, but EMF nevertheless assumes that
a class file exists for it (I will look into this separately).

> Please feel free to append one of your real schemas.

I downloaded the attached files from:

http://www.oasis-open.org/cover/schemas.html#W3CWorkingGroup

This is is the best match I have.  Eclipse only reports 6 errors:

Error   XSD: The enumeration facet is not permitted in a type based on
'http://www.w3.org/2001/XMLSchema#allNNI' XMLSchema.xsd
nees-sensor/xsd/w3/2001 line 840
Error   XSD: The enumeration facet is not permitted in a type based on
'http://www.w3.org/2001/XMLSchema#allNNI' XMLSchema.xsd
nees-sensor/xsd/w3/2001 line 841
Error   XSD: The enumeration facet is not permitted in a type based on
'http://www.w3.org/2001/XMLSchema#decimal' XMLSchema.xsd
nees-sensor/xsd/w3/2001 line 832
Error   XSD: The enumeration facet is not permitted in a type based on
'http://www.w3.org/2001/XMLSchema#decimal' XMLSchema.xsd
nees-sensor/xsd/w3/2001 line 833
Error   XSD: The value '1' of attribute 'default' must be one of 0, 1 as
constrained by 'http://www.w3.org/2001/XMLSchema#maxOccurs_._type'
XMLSchema.xsd nees-sensor/xsd/w3/2001 line 837
Error   XSD: The value '1' of attribute 'default' must be one of 0, 1 as
constrained by 'http://www.w3.org/2001/XMLSchema#minOccurs_._type'
XMLSchema.xsd nees-sensor/xsd/w3/2001 line 829


> Note that the lead committer for org.eclipse.xsd will not be back from
> vacation until June 9th, and others of us are busy at conferences during
> the same time... so please be somewhat patient.

Not a problem.  I am sure I will continue to be fascinated until then!

--Hank

> Bob
>
>
>
>
>
>
>
>
>
>                       "Hank
>                       Ratzesberger"            To:
<xsd-dev@xxxxxxxxxxx>
>                       <hankr@xxxxxxxxxx        cc:
>                       sb.edu>                  Subject:  [xsd-dev]
Using/Parsing w3.2001.XMLSchema
>                       Sent by:
>                       xsd-dev-admin@ecl
>                       ipse.org
>
>
>                       05/29/2003 02:17
>                       PM
>                       Please respond to
>                       xsd-dev
>
>
>
>
>
> XSD Developers:
>
> I am really amazed by the sample schema editor. It
> has found even subtle errors.
>
> I am trying to create classes from imported schemas,
> initially using EMF, but I may switch to Castor.
>
> The problem I am having is that the schemas I start
> with reference XMLSchema itself.  I have not been able
> to locate a compatible XMLSchema.xsd, XMLSchema.dtd and
> datatypes.dtd (the later two being included by the first)
> which are all compatible with one another.  The sample
> schema editor issues dozens of errors for XMLSchema.xsd,
> even when the DTD's are in the eclipse home directory
> (as expected by eclipse).
>
> EMF will expect an actual schema for any included namespace,
> but I don't know how to include the XMLSchema namespace
> itself.
>
> I am not certain how to proceed. Any thoughts would be
> helpful.
>
> Thanks,
> Hank
>
> ============================================
> Replying to a list?  I'll get my copy there!
>
> Hank Ratzesberger
> Institute for Crustal Studies
> University of California, Santa Barbara
> ============================================
> _______________________________________________
> xsd-dev mailing list
> xsd-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/xsd-dev
>
>
>




Back to the top