F
Fezboy
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="http://www.w3.org/TR/xlink"
xmlns:mets="http://www.loc.gov/METS/"
xmlns:mods="http://www.loc.gov/mods/v3"
targetNamespace="http://www.indiana.edu/~eviada"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<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:string"/>
<xsd:element name="fileUriPrefix" type="xsd:string"/>
<xsd:element name="collectionID" type="xsd:string"/>
<xsd:element name="collector" type="xsd:string"/>
<xsd:element name="relatedSegments" type="relatedSegmentsType"/>
<xsd:element name="segment" type="segmentType"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="uri" type="xsd:anyURI"/>
<xsd:complexType name="headType">
<xsd:sequence>
<xsd:element ref="fileGrpID"/>
<xsd:element ref="fileUriPrefix"/>
<xsd:element ref="collectionID"/>
<xsd:element ref="collector"/>
<xsd:element ref="mets:fileGrp" type="mets:fileGrpType"/>
<xsd:element ref="mets:structMap" type="mets:structMapType"/>
<xsd:element ref="relatedSegments"/>
</xsd:sequence>
</xsd:complexType>
<!-- ... -->
Full URLs can be found:
My xsd file:
http://bl-ldlp-boblee.ads.iu.edu/bullpen/20040927PlaybackSchema.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
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="http://www.w3.org/TR/xlink"
xmlns:mets="http://www.loc.gov/METS/"
xmlns:mods="http://www.loc.gov/mods/v3"
targetNamespace="http://www.indiana.edu/~eviada"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<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:string"/>
<xsd:element name="fileUriPrefix" type="xsd:string"/>
<xsd:element name="collectionID" type="xsd:string"/>
<xsd:element name="collector" type="xsd:string"/>
<xsd:element name="relatedSegments" type="relatedSegmentsType"/>
<xsd:element name="segment" type="segmentType"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="uri" type="xsd:anyURI"/>
<xsd:complexType name="headType">
<xsd:sequence>
<xsd:element ref="fileGrpID"/>
<xsd:element ref="fileUriPrefix"/>
<xsd:element ref="collectionID"/>
<xsd:element ref="collector"/>
<xsd:element ref="mets:fileGrp" type="mets:fileGrpType"/>
<xsd:element ref="mets:structMap" type="mets:structMapType"/>
<xsd:element ref="relatedSegments"/>
</xsd:sequence>
</xsd:complexType>
<!-- ... -->
Full URLs can be found:
My xsd file:
http://bl-ldlp-boblee.ads.iu.edu/bullpen/20040927PlaybackSchema.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