[OAI-implementers] doubts about xmlschema in OAI

Xiaoming Liu liu_x@cs.odu.edu
Sat, 17 Nov 2001 02:11:39 -0500 (EST)


hi,

In OAI_GetRecord.xsd, it specifies 

<complexType name="metadataType">
 <sequence>
  <any namespace="##other" processContents="lax"/>
 </sequence>
</complexType>

and in dc.xsd, it specifies like

<element name="dc" type="dc:dublincoreType"/>
<complexType name="dublincoreType">
....

The question is: If we use "processContents="lax" in OAI_GetRecord.xsd,
xmlschema validator will treat 
<GetRecord>....<xxx_dc><title>...</title></xxx_dc>..</GetRecord>  as
valid,
 
but <xxx_dc>...</xxx_dc> may not be the right format in our intention, it
passes schema validator only because processContents="lax" is used in
Get_Record.xsd. We probably want to always use <dc>....<dc>.

I have this doubt when I try to process OAI response with XSLT, the arXiv
uses <oai_dc>...</oai_dc>, it passed oaiexplorer test and other schema
validator (oracle and XMLSpy). But this really brings some troubles to
XSLT processing. 

If I change Get_record.xsd to processContents="strict", this problem will
be reported by schema validator.

Do we have special reason of using processContents="lax"?

regards,
Xiaoming Liu