W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

Re: XSV failed to catch error?

From: Bob Schloss <rschloss@us.ibm.com>
Date: Wed, 12 Jun 2002 12:16:42 -0400
To: bergmark@CS.Cornell.EDU
Cc: xmlschema-dev@w3.org
Message-ID: <OF154CDD98.4360A08C-ON85256BD6.0058A1FA@us.ibm.com>
                                                                                                               
                                                                                                               
                                                                                                               


Donna,

      You need to show us your instance document before we can determine if
XSV failed to catch an error.

      The sequence construct in your complexType does not mean
"concatenation of content models", it means sequence of elements (actually,
particles).

      Therefore, something of type
oai-identifier-type
will look, in an instance document, like:
 <scheme>oai</scheme>
 <repositoryIdentifier>AA</repositoryIdentifier>
 <delimeter>:</delimiter>
 <sampleIdentifier>BB</sampleIdentifier>

      If what you want it to look like is oai:AA:BB  (and note that your
schema above didn't even include the first colon), you want oai-identifier-
type to be a simpleType with a pattern facet whose value is something like
oai:[a-zA-Z0-9]+:[a-zA-Z0-9] .

      Please re-read the W3C XML Schema Primer at http://www.w3.
org/TR/xmlschema-0 or any one of the commercial XML Schema books or online
tutorials.

                  Regards,
                  Bob

Extensible Technologies
IBM Watson Research Center
Yorktown Heights, NY



Donna Bergmark <bergmark@CS.Cornell.EDU>@w3.org on 06/12/2002 11:14:57 AM

Please respond to bergmark@CS.Cornell.EDU

Sent by:    xmlschema-dev-request@w3.org


To:    xmlschema-dev@w3.org
cc:    bergmark@CS.Cornell.EDU
Subject:    XSV failed to catch error?




Folk,

I may be misunderstanding something, but it seems that this
URL should be found to be in error:

http://pastel.paristech.org/perl/oai?verb=Identify

Specifically, the repositoryIdentifier element does not obey
the syntax specified by the schema being used, which is:

http://www.openarchives.org/OAI/1.1/oai-identifier.xsd

XSV (2001 version) passes the URL query on all counts.

Donna Bergmark
Received on Wednesday, 12 June 2002 12:18:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT