diff options
Diffstat (limited to 'kdoctools/docbook/xsl/params/page.width.xml')
-rw-r--r-- | kdoctools/docbook/xsl/params/page.width.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kdoctools/docbook/xsl/params/page.width.xml b/kdoctools/docbook/xsl/params/page.width.xml new file mode 100644 index 000000000..8c3f7b856 --- /dev/null +++ b/kdoctools/docbook/xsl/params/page.width.xml @@ -0,0 +1,31 @@ +<refentry id="page.width"> +<refmeta> +<refentrytitle>page.width</refentrytitle> + +</refmeta> +<refnamediv> +<refname>page.width</refname> +<refpurpose>The width of the physical page</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<src:fragment id='page.width.frag'><xsl:param name="page.width"> + <xsl:choose> + <xsl:when test="$page.orientation = 'portrait'"> + <xsl:value-of select="$page.width.portrait"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$page.height.portrait"/> + </xsl:otherwise> + </xsl:choose> +</xsl:param></src:fragment> +</refsynopsisdiv> + +<refsect1><title>Description</title> + +<para>The page width is generally calculated from the +<literal>paper.type</literal> and <literal>page.orientation</literal>. +</para> + +</refsect1> +</refentry> |