Name

$generated-id-sep — The string generated to separate parts of a unique identifier.

Parameter:
{}generated-id-sep
Defined in:
modules/shared.xsl
Used in:
modules/shared.xsl, modules/functions.xsl
Used by:
f:generate-id()

Synopsis

$generated-id-sep := '_'

Description

When f:generate-id() is constructing a unique identifier for an element, it walks up the ancestors of that element. To make the identifiers easier to read, and to disambiguate values, it places $generated-id-sep between each component that it uses.

🛈︎
Note

Historically, a “.” was used as the separator. However, if JavaScript is going to be used to process the HTML documents that the stylesheet produces, that may be inconvenient. (Because selectors use “.” to separate element names from class values.)