Name

f:object-contentwidth — Returns the content width of an object.

Function:
{http://docbook.org/ns/docbook/functions}object-contentwidth#2
Defined in:
modules/objects.xsl
Used in:
modules/objects.xsl

Synopsis

f:object-contentwidth($object as element(),
$intrinsicwidth as map(*)) as map(*)

Description

Returns the content width. This function returns the width of an object as a length (see Section 4.2, Lengths and units), if it has one. If the width is specified as a percentage, and the intrinsic size of the object is known, the an absolute length equal to that percentage of the intrinsic size is returned.

If $image-ignore-scaling is true, or no contentwidth is specified for the object, the empty sequence is returned.