Name

$glossary-collection — An external collection of glossary entries.

Parameter:
{}glossary-collection
Defined in:
param.xsl
Used in:
parameter-maps.xsl, drivers.xsl
Used by:
t:preprocess

Synopsis

$glossary-collection as xs:string := ''

Description

It’s often convenient to share a common glossary across many documents. If $glossary-collection points to a glossary, the stylesheets will automatically populate glossary entries in the document being transformed.

To achieve this:

  1. Create a shared glossary and store it somewhere. Make sure that each entry in your shared glossary has a unique xml:id value.

  2. Run your transformation with $glossary-collection set to the URI of that document.

  3. In the document you’re transforming, refer to the shared entries with completely empty glossentry elements that have the same xml:id as an entry in the shared glossary.

The stylesheets will copy those entries into your document before processing it.