Knowning nothing about OAI, little about XML Schema, and out of practice
with validation in general, I still attempted to at least validate your
docs. (It was interesting question in the back of my head of exactly how
to validate some of the XML schema docs, so it was worth it.)
I downloaded oai.xml, oai_dc.xsd, ran xmllint --schema oai_dc.xsd oai.xml
and got a couple of errors. They all look like parser errors and not
anything wrong with the schema. I'm assuming that's because I don't know
what the heck I'm doing in that respect.
oai.xml:4: namespace error : Namespace prefix oai on repositoryName is not
defined
<oai:repositoryName>Lunar and Planetary Institute</oai:repositoryName>
^
oai.xml:5: namespace error : Namespace prefix oai on baseURL is not
defined
<oai:baseURL>http://www.lpi.usra.edu/library/oai.xml</oai:baseURL>
^
oai.xml:6: namespace error : Namespace prefix oai on protocolVersion is
not defined
<oai:protocolVersion>2.0</oai:protocolVersion>
^
oai.xml:7: namespace error : Namespace prefix oai on adminEmail is not
defined
<oai:adminEmail>[EMAIL PROTECTED]</oai:adminEmail>
^
oai.xml:8: namespace error : Namespace prefix oai on earliestDatestamp is
not defined
<oai:earliestDatestamp>2006-05-20</oai:earliestDatestamp>
^
oai.xml:9: namespace error : Namespace prefix oai on deletedRecord is not
defined
<oai:deletedRecord>no</oai:deletedRecord>
^
oai.xml:10: namespace error : Namespace prefix oai on granularity is not
defined
<oai:granularity>YYY-MM-DD</oai:granularity>
^
oai.xml:13: namespace error : Namespace prefix oai on matadataFormat is
not defined
<oai:matadataFormat>
^
oai.xml:14: namespace error : Namespace prefix oai on metadataPrefix is
not defined
<oai:metadataPrefix>oai:dc</oai:metadataPrefix>
^
oai.xml:15: namespace error : Namespace prefix oai on schema is not
defined
<oai:schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</oai:schema>
^
oai.xml:16: namespace error : Namespace prefix oai on metadataNamespace is
not defined
<oai:metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/<oai:metadataN
^
oai.xml:16: namespace error : Namespace prefix oai on metadataNamespace is
not defined
adataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/<oai:metadataNamespace
^
oai.xml:17: parser error : Opening and ending tag mismatch:
metadataNamespace line 16 and matadataFormat
</oai:matadataFormat>
^
oai.xml:100: parser error : Premature end of data in tag dc line 92
^
oai.xml:100: parser error : Premature end of data in tag metadataNamespace
line 16
^
oai.xml:100: parser error : Premature end of data in tag matadataFormat
line 13
^
oai.xml:100: parser error : Premature end of data in tag
ListMetadataFormats line 12
^
oai.xml:100: parser error : Premature end of data in tag Repository line 2
^
Jonathan T. Gorman
Visiting Research Information Specialist
University of Illinois at Champaign-Urbana
216 Main Library - MC522
1408 West Gregory Drive
Urbana, IL 61801
Phone: (217) 244-4688
On Tue, 6 Jun 2006, Bigwood, David wrote:
I'm hoping someone can spare the time to take a look at the OAI Static
Repository file I've created and let me know where I've gone wrong.
I've created an OAI Static Repository for my institution's publications.
http://www.lpi.usra.edu/library/oai.xml
However, it is not quite correct. I've looked at it and can't seem to
find the error. Anyone willing to take a look and see where I've left
off the " or > or whatever? Getting this up is a big deal, I've been
fighting for a year now to get this OKed. Now that it is up, the LANL
static repository gateway rejects it. I used MarcEdit to create the file
BTW.
Thanks,
David Bigwood
[EMAIL PROTECTED]
Lunar & Planetary Institute
http://www.lpi.usra.edu/library