page.height.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.height">
  7. <refmeta>
  8. <refentrytitle>page.height</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>page.height</refname>
  13. <refpurpose>The height of the physical page</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="page.height.frag"><xsl:param name="page.height">
  17. <xsl:choose>
  18. <xsl:when test="$page.orientation = 'portrait'">
  19. <xsl:value-of select="$page.height.portrait"/>
  20. </xsl:when>
  21. <xsl:otherwise>
  22. <xsl:value-of select="$page.width.portrait"/>
  23. </xsl:otherwise>
  24. </xsl:choose>
  25. </xsl:param></src:fragment>
  26. </refsynopsisdiv>
  27. <refsection><info><title>Description</title></info>
  28. <para>The page height is generally calculated from the
  29. <parameter>paper.type</parameter> and
  30. <parameter>page.orientation</parameter> parameters.
  31. </para>
  32. </refsection>
  33. </refentry>