ModsBook
Just as an experiment, I’ve put together a Relax NG schema that uses MODS for its metadata, and DocBook for its content. The schema – which is just a test – is defined like so:
include "docbook.rnc" {
start = document
}
include "mods.rnc"
document = element document { meta, content }
meta = element meta { ModsSchema }
content = element content {
article
| book
| chapter
}
Here is a minimal example instance:
<document>
<meta>
<mods xmlns="http://www.loc.gov/mods/v3">
<name type="personal">
<namePart type="given">Bruce</namePart>
<namePart type="family">D'Arcus</namePart>
</name>
<titleInfo>
<title>A Journal Article</title>
</titleInfo>
<genre>article-journal</genre>
</mods>
</meta>
<content>
<article>
<section>
<title>Introduction</title>
<para>Article text.</para>
</section>
</article>
</content>
</document>
There are a few things missing from MODS compared to the DiVA Schema. One is a way to code the publication status of a document. Is it published, or unpublished? If the latter, is it in review, in press, etc.?
Also, I hope to see the Library of Congress release a Relax NG version of the MODS. The center of gravity in the XML world is shifting to Relax NG, it seems to me, at least in the free software world.
Creative Commons License