$mediaobject-percentage-of-intrinsic-size — Compute media object percentage sizes based on intrinsic size.

Parameter:
{}mediaobject-percentage-of-intrinsic-size
Defined in:
param.xsl
Used in:
main.xsl, param.xsl
Since:
2.7.0

Synopsis

$mediaobject-percentage-of-intrinsic-size as xs:string := 'false'

Description

When the width or depth of a media object is specified as a percentage, it is supposed to be a percentage of the available space. All versions of the DocBook xslTNG Stylesheets before version 2.7.0 incorrectly calculate percentages against the intrinsic size of the image.

This has been corrected in 2.7.0, but the previous, incorrect behavior can be preserved by setting $mediaobject-percentage-of-intrinsic-size to true.

Note

Percentages are problematic in any event as the stylesheets don’t usually know the actual width that will be available when the document is formatted. Most often, this results in a calculation against the $image-nominal-height and $image-nominal-width.