f:pi — Returns DocBook processing-instruction property values.

Defined in:
modules/functions.xsl (2)
Used in:
modules/functions.xsl, modules/toc.xsl, modules/index.xsl, modules/lists.xsl, modules/blocks.xsl, modules/programming.xsl, modules/verbatim.xsl, modules/xlink.xsl, drivers.xsl, modules/info.xsl, modules/chunk.xsl
Used by:
f:pi(), f:verbatim-style(), f:verbatim-highlight(), f:xlink-style(), t:preprocess, f:date-format(), f:verbatim-numbered(), f:verbatim-trim-trailing(), f:chunk-filename()


f:pi($context as node()?,
$property as xs:string) as xs:string?
f:pi($context as node()?,
$property as xs:string,
$default as xs:string*) as xs:string*


Several DocBook elements have alternate presentations that can be specified with global parameters. Many of them can also be set on a per-element basis with a db processing instruction. The date format, for example, can be changed in this way as described in the f:date-format() function.

The f:pi() function takes a context and the name of a property. It returns the value specified for that property from all of the db processing instructions in the specified context. The three argument version allows you to specify a default value. It will be returned if there are no values specified for the property in that context.