next up previous
Next: <page-image> Up: The Arboreal Docspecs System Previous: <langspec>

<metadata>

The <metadata> element has an info attribute, which defines the name of an element that contains metadata for the target document. Text within the specified element is not considered to be in the default language of the target document, but rather in the default language specified in the Arboreal properties.xml file. If a doctype lacks a metadata section, the value of the name attribute should be the null string.

The <metadata> element contains four required children, which must appear in the specified order:

The contents of these elements are XPath queries that return the specified document metadata properties. If a metadata item is not defined for the target doctype, the corresponding element may be left empty. If queries are not defined for the metadata properties, they assume the following default values:
author null
title the filename of the document
locator the filename of the document
language the default language specified in properties.xml

Example 1: Here is the <metadata> specification for the Archimedes doctype:

<metadata name="info">
<author>/archimedes/info/author/text()</author>
<title>/archimedes/info/title/text()</title>
<locator>/archimedes/info/locator/text()</locator>
<language>/archimedes/info/lang/text()</language>
</metadata>


next up previous
Next: <page-image> Up: The Arboreal Docspecs System Previous: <langspec>
Malcolm D. Hyman 2003-10-09