f:glossentries

f:glossentries — Returns a list of all glossentries for a term.

Function:
{http://docbook.org/ns/docbook/functions}glossentries#1
{http://docbook.org/ns/docbook/functions}glossentries#2
Defined in:
../standalone-functions.xsl (2)
Used in:
modules/functions.xsl
Since:
2.2.0

Synopsis

f:glossentries($term as element()) as element(db:glossentry)*
f:glossentries($term as element(),
$collections as xs:string*) as element(db:glossentry)*

Description

Returns all glossentry elements that are targeted by $term, which must either by a glossterm or a firstterm element. The internal glossary of the input document is always taken into account.

In the form with only one argument, external glossaries are also taken into account if they are designated in the input document with a <?db glossary-collection='URIs'?> processing instruction. In the form with two arguments, you can specify a list of URIs of the external glossaries.

When there is more than one glossentry found, the result sequence will start with entries from the internal glossary, if any.

The functions design allows its use independent from the xslTNG stylesheets. You can, for example, integrate it in a Schematron rule that checks whether every glossterm has exactly one corresponding glossentry while authoring your document. That’s why the function can't use the $glossary-collection transformation parameter.