X hits on this document

466 views

0 shares

1 downloads

0 comments

29 / 142

Document type definitions

  • 4.

    Validate ncw.xml against the latest version of the EAD DTD supplied on the CD: xmllint --noout -

    • -

      dtdvalid dtds/ead/ead.dtd xml-data/ead/broken/ncw.xml . You should get output looking something like this:

xml-data/ead/broken/ncw.xml:5: element eadheader: validity error : Syntax of value for attribute langencoding of eadheader is not valid

xml-data/ead/broken/ncw.xml:21: element archdesc: validity error : Element archdesc content does not follow the DTD, expecting (runner* , did , (accessrestrict | accruals | acqinfo | altformavail | appraisal | arrangement | bibliography | bioghist | controlaccess | custodhist | descgrp | fileplan | index | odd | originalsloc | otherfindaid | phystech | prefercite | processinfo | relatedmaterial | scopecontent | separatedmaterial | userestrict | dsc | dao | daogrp | note)*), got (did admininfo scopecontent bioghist controlaccess dsc)

xml-data/ead/broken/ncw.xml:21: element archdesc: validity error : No declaration for attribute langmaterial of element archdesc

xml-data/ead/broken/ncw.xml:21: element archdesc: validity error : No declaration for attribute legalstatus of element archdesc

xml-data/ead/broken/ncw.xml:35: element admininfo: validity error : No declaration for element admininfo

Document xml-data/ead/broken/ncw.xml does not validate against dtds/ead/ead.dtd

Yuck!

  • 5.

    You can make the document validate by opening up ncw.xml in your text editor and then:

    • a.

      deleting the space in the langencoding attribute of the eadheader element

    • b.

      deleting the admininfo element and all of its children

    • c.

      deleting the langmaterial name/value from the archdesc element

    • d.

      deleting the legalstatus name/value from the archdesc element

  • 6.

    Save your changes, and validate the document again.

21

Document info
Document views466
Page views472
Page last viewedFri Dec 09 15:58:38 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments