mets / METS-board

Documents and wiki pages relevant to the business of the METS Editorial Board
14 stars 6 forks source link

mdfref example in overview is invalid? #47

Open kieranjol opened 3 years ago

kieranjol commented 3 years ago

Hi, not sure if this is the correct place to put this, but I noticed that the overview: https://www.loc.gov/standards/mets/METSOverview.v2.html#descMD possible contains an invalid example for <mdref> The XSD and METS Primer both say that<mdref> is an empty element, and the xlinkattribute should be used to store a value. The overview has this example:

<dmdSec ID="dmd001">
          <mdRef LOCTYPE="URN" MIMETYPE="application/xml" MDTYPE="EAD" 
          LABEL="Berol Collection Finding Aid">urn:x-nyu:fales1735</mdRef>
      </dmdSec>

: which has urn:x-nyu:fales1735 as a value

This is the output of the validation

xml val -e --xsd mets.xsd mets1.xml
mets1.xml:23.19: Element '{http://www.loc.gov/METS/}mdRef': Character content is not allowed, because the content type is empty.
mets1.xml - invalid