Greetings!
I'm trying to import elements declared in the METS and MODS XML Schema
into my own. I've gotten to the point where the xsd validates, but when
I try to validate a document against it, it expects element '' in place
of mets:fileGrp. The same error obtains for mets:structMap if I comment
out the mets:fileGrp code.
Can an insightful person tell me why it will wants '' instead of the
actual Qname I use to identify it?
TIA!
Nick
Relevant markup:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns="http://www.indiana.edu/~eviada"
xmlns:xlink="ht tp://www.w3.org/TR/xlink"
xmlns:mets="htt p://www.loc.gov/METS/"
xmlns:mods="htt p://www.loc.gov/mods/v3"
targetNamespace ="http://www.indiana.edu/~eviada"
elementFormDefa ult="qualified"
attributeFormDe fault="unqualif ied">
<xsd:import namespace="http ://www.loc.gov/METS/"
schemaLocation= "http://www.loc.gov/standards/mets/mets.xsd"/>
<xsd:import namespace="http ://www.loc.gov/mods/v3"
schemaLocation= "http://www.loc.gov/standards/mods/v3/mods-3-0.xsd"/>
<xsd:element name="head" type="headType"/>
<xsd:element name="fileGrpID " type="xsd:strin g"/>
<xsd:element name="fileUriPr efix" type="xsd:strin g"/>
<xsd:element name="collectio nID" type="xsd:strin g"/>
<xsd:element name="collector " type="xsd:strin g"/>
<xsd:element name="relatedSe gments" type="relatedSe gmentsType"/>
<xsd:element name="segment" type="segmentTy pe"/>
<xsd:element name="title" type="xsd:strin g"/>
<xsd:element name="uri" type="xsd:anyUR I"/>
<xsd:complexTyp e name="headType" >
<xsd:sequence >
<xsd:element ref="fileGrpID"/>
<xsd:element ref="fileUriPre fix"/>
<xsd:element ref="collection ID"/>
<xsd:element ref="collector"/>
<xsd:element ref="mets:fileG rp" type="mets:file GrpType"/>
<xsd:element ref="mets:struc tMap" type="mets:stru ctMapType"/>
<xsd:element ref="relatedSeg ments"/>
</xsd:sequence>
</xsd:complexType >
<!-- ... -->
Full URLs can be found:
My xsd file:
http://bl-ldlp-boblee.ads.iu.edu/bul...backSchema.xsd
METS xsd file:
http://www.loc.gov/standards/mets/mets.xsd
XMLSpy generated sample XML file:
http://bl-ldlp-boblee.ads.iu.edu/bullpen/sample4NG.xml