]> git.stg.codes - stg.git/blob - doc/xslt/params/page.width.xml
[NY] Code deduplication.
[stg.git] / doc / xslt / params / page.width.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"
2           xmlns:xlink="http://www.w3.org/1999/xlink"
3           xmlns:xi="http://www.w3.org/2001/XInclude"
4           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6           version="5.0" xml:id="page.width">
7 <refmeta>
8 <refentrytitle>page.width</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
10 </refmeta>
11 <refnamediv>
12 <refname>page.width</refname>
13 <refpurpose>The width of the physical page</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17 <src:fragment xml:id="page.width.frag"><xsl:param name="page.width">
18   <xsl:choose>
19     <xsl:when test="$page.orientation = 'portrait'">
20       <xsl:value-of select="$page.width.portrait"/>
21     </xsl:when>
22     <xsl:otherwise>
23       <xsl:value-of select="$page.height.portrait"/>
24     </xsl:otherwise>
25   </xsl:choose>
26 </xsl:param></src:fragment>
27 </refsynopsisdiv>
28
29 <refsection><info><title>Description</title></info>
30
31 <para>The page width is generally calculated from the
32 <parameter>paper.type</parameter> and 
33 <parameter>page.orientation</parameter> parameters.</para>
34
35 </refsection>
36 </refentry>