25. template

<template
  name = non empty token
  location = anyURI
/>

Add document template named name, contained in file location, to the dialog box displayed by FileNew.

Specifying a template element without a location may be used to remove template element with the same name from the configuration.

Example:

  <template name="Div (part of a master document)" 
            location="template/div.html" />

Specifying composite document templates

Composite document templates, that is, modular document templates and/or document templates referencing graphics files, must be packaged in a .zip archive. Example: modular_book.zip:

$ unzip -v modular_book.zip
modular_book.xml
chapter1.xml
chapter2.xml
chapter3.xml
appendix.xml
images/
images/xmlmind.gif

The master document, modular_book.xml in the above example:

  1. Must be directly contained in the archive (that is, not in a subdirectory like images/),

  2. Must have the same basename, extension not included, as the archive. The basename, less the extension, is "modular_book" in the above example.