dcmi/usage

Adding root element to dcterms.xsd

Opened this issue · 1 comments

Hi

I'm trying to use DCTERMS in a project where I need a root element, since I am using XML. Whatever element I try to use, however, the dcterms.xsd fails with 'No matching global declaration available for the validation root.'. You can find my XML example below.

Could you provide some guidance as to what I'm missing here?

Thanks in advance

XML example

<?xml version='1.0' encoding='UTF-8'?>
<metadata xmlns:dcterms="http://purl.org/dc/terms/" xmlns:edtf="http://id.loc.gov/datatypes/edtf/" xmlns:xs="http://www.w3.org/2001/XMLSchema/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/">

  <dcterms:title>Le Chat Blanc: 02/08/2022</dcterms:title>

  <dcterms:description>Journal Indépendant: Le Chat Blanc: 02/08/2022</dcterms:description>

  <!-- linking id between dc and premis -->
  <!-- matches the identifier of the premis:object defined in the preservation/premis.xml -->
  <dcterms:identifier>uuid-e6a138e5-a0fc-41d3-a912-9491a3502f57</dcterms:identifier>

  <dcterms:created xsi:type="edtf:EDTF-level2">XXXX</dcterms:created>
  <dcterms:issued xsi:type="edtf:EDTF-level0">2022-08-02</dcterms:issued> 

  <dcterms:license>VIAA-PUBLIEK-METADATA-LTD</dcterms:license>

  <dcterms:subject>chat blanc</dcterms:subject>
  <dcterms:subject>cats</dcterms:subject>

</metadata> 

Hello @milvala . I'm sorry you haven't gotten a reply yet. If you have solved the problem please let us know. I ran the dc XSD through a validator and it came back as valid. That's about all I know how to do so if there is still a problem we can look for someone with actual XML/XSD skills.