f:conditional-orientation-class

f:conditional-orientation-class — Returns an element’s orientation if it differs from its parent.

Function:
{http://docbook.org/ns/docbook/functions}conditional-orientation-class#1
Defined in:
modules/functions.xsl
Used in:
main.xsl
Since:
2.2.2

Synopsis

f:conditional-orientation-class($node as element()) as xs:string?

Description

Determines if the element specified should be printed in portrait or landscape orientation. If that value is the same as the parent element’s value, an empty sequence is returned instead.

This avoids “double rotation” of, for example, a landscape table within a landscape chapter.