f:translate-attribute

f:translate-attribute — Controls the translate attribute.

Function:
{http://docbook.org/ns/docbook/functions}translate-attribute#1
Defined in:
modules/functions.xsl
Used in:
modules/functions.xsl
Used by:
Since:
2.1.3

Synopsis

f:translate-attribute($node as element()) as xs:boolean?

Description

When computing what attributes to put on elements in the output, this function is called to check whether a translate attribute should be output:

  • If it returns true, a translate attribute with the value “yes” will be output.

  • If it returns false, a translate attribute with the value “no” will be output.

  • If it returns the empty sequence, no translate attribute will be output.

The default implementation of this function checks the (local) name of the element with the $translate-suppress-elements list.