Re: XSV failed to catch error?

                                                                                                               
                                                                                                               
                                                                                                               


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 UTC