f:pi

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

Function:
{http://docbook.org/ns/docbook/functions}pi#2
{http://docbook.org/ns/docbook/functions}pi#3
Defined in:
../standalone-functions.xsl (2)
Used in:
main.xsl, modules/chunk.xsl
Used by:

Synopsis

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*

Description

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.