$glossary-collection
$glossary-collection — An external collection of glossary entries.
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:
Create a shared glossary and store it somewhere. Make sure that each entry in your shared glossary has a unique
xml:id
value.Run your transformation with
$glossary-collection
set to the URI of that document.In the document you’re transforming, refer to the shared entries with completely empty
glossentry
elements that have the samexml:id
as an entry in the shared glossary.
The stylesheets will copy those entries into your document before processing it.