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

Defined in:
../standalone-functions.xsl (2)
Used in:
modules/functions.xsl, modules/bibliography.xsl, modules/glossary.xsl, modules/index.xsl, modules/lists.xsl, modules/blocks.xsl, modules/programming.xsl, modules/objects.xsl, modules/verbatim.xsl, modules/xlink.xsl, modules/info.xsl, modules/tablecals.xsl, modules/chunk.xsl
Used by:


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.