Name

f:select-mediaobject-data — Selects an appropriate data element for a media object.

Function:
{http://docbook.org/ns/docbook/functions}select-mediaobject-data#1
{http://docbook.org/ns/docbook/functions}select-mediaobject-data#2
Defined in:
modules/objects.xsl (2)
Used in:
modules/objects.xsl
Used by:
f:select-mediaobject-data()

Synopsis

f:select-mediaobject-data($data as element()*) as element()?
f:select-mediaobject-data($data as element()*,
$force as xs:boolean) as element()?

Description

Once a media object has been selected, one of its data elements has to be selected. This function is responsible for making that selection. It processes each of the data elements in m:acceptable-mediaobject-data mode and returns the first acceptable item.

If no acceptable items are found, the function will return the empty sequence if $force is false. If $force is true, the first data element will be returned, even though it was not deemed “acceptable”.