Document Type Contents

All document types must contain the DTD and/or XML Schema modules used to define their grammar. They must also contain a catalog file, and may contain a preview stylesheet and custom metadata rules.

The DTD and schema files should be laid out in a folder structure such that the relative paths between them will resolve, just as they would be on your local file system.

The catalog file must exist at the root level of your project and be named one of the following:

  • catalog.xml
  • catalog.txt
  • catalog

Titania Delivery supports both the XML Catalog format and TR 9401 text catalog format. This catalog will be used to resolve references to files in the document type from projects and other document types.

In addition, a document type can contain a preview stylesheet for generating the admin application previews. This stylesheet must be at the root level of the document type and be named preview.xsl. If no preview stylesheet is specified then the stylesheet from the document type's parent is used. If there is no parent, or the parent does not specify a preview stylesheet, then the raw XML of the file will be displayed.

Finally, a document type may specify an XSLT transform containing custom metadata rules. This file must be located within the document type at /HARP-META/metadata.xsl. If the document type has a parent, then these metadata rules will be used in addition to those from the parent; they do not replace the rules from the parent. For instructions on how to configure custom metadata rules, refer to the Developer's Guide.