Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The XML that the repository provides will be validated automatically during the DRIVER repository registration process and the DRIVER harvesting process. A DRIVER repository must provide a valid XML according to all XML schemas used (OAI-PMH, DIDL, oai-dc etc)

Validation can be tested using an XML validator (for example, from altova. www.altova.com ) by saving the repository output as an xml document and opening it in the validator.

For a validator to validate an XML document, inside the document the xsi:schemaLocation(s) must be used.

Code Block
xml
xml

For the <OAI-PMH> schema use:

...

 
<OAI-PMH

...

 
          xmlns="http://www.openarchives.org/OAI/2.0/"

...

 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

...

 

          xsi:schemaLocation="

...

 
[http://www.openarchives.org/OAI/2.0/

...

] 
[http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

...

]"

...

 
>

For the <oai_dc:dc> schema use:

Code Block
xml
xml

<oai_dc:dc

...

 
          xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"

...

 
          xmlns:dc="http://purl.org/dc/elements/1.1/"

...

 
          xsi:schemaLocation="

...

 
[http://www.openarchives.org/OAI/2.0/oai_dc/

...

] 
   [http://www.openarchives.org/OAI/2.0/oai_dc.xsd

...

] 
[http://purl.org/dc/elements/1.1/

...

] 
   [http://dublincore.org/schemas/xmls/simpledc20021212.xsd

...

]"

...

 
>

For the <didl:DIDL> schema use:

Code Block
xml
xml

<didl:DIDL

...

 
     xmlns:didl="urn:mpeg:mpeg21:2002:02-DIDL-NS"

...

 
     xmlns:dcterms="http://purl.org/dc/terms/"

...

 
     xmlns:dii="urn:mpeg:mpeg21:2002:01-DII-NS"

...

 
     xmlns:dip="urn:mpeg:mpeg21:2005:01-DIP-NS"

...

 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

...

 
     xsi:schemaLocation="

...

 
   urn:mpeg:mpeg21:2002:02-DIDL-NS

...

 
[http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-21_schema_files/did/didl.xsd

...

] 

   urn:mpeg:mpeg21:2002:01-DII-NS

...

 
[http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG\-|http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-

...

] 
21_schema_files/dii/dii.xsd

...

 

   urn:mpeg:mpeg21:2005:01-DIP-NS

...

 
[http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG\-|http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-

...

] 
21_schema_files/dip/dip.xsd"> 

For other schemas use the same logic; keep the metadata independent of the OAI-PMH protocol.