Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 0577d24a2237617ff09bd0e03e449a74 > files > 259

docbook-style-xsl-doc-1.60.1-2mdk.noarch.rpm

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   
      <title>Formatting Object Table Reference</title>
      <link rel="stylesheet" href="../reference.css" type="text/css">
      <meta name="generator" content="DocBook XSL Stylesheets V1.57.0">
   </head>
   <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
      <div class="reference" lang="en"><a name="d0e1"></a><div class="titlepage">
            <div>
               <h1 class="title"><a name="d0e1"></a>Formatting Object Table Reference
               </h1>
            </div>
            <div>
               <div class="author">
                  <h3 class="author">Norman Walsh</h3>
               </div>
            </div>
            <div>
               <p class="releaseinfo">
                  $Id: table.xsl,v 1.28 2002/11/15 15:44:30 nwalsh Exp $
                  
               </p>
            </div>
            <div>
               <p class="copyright"><a href="../copyright.html">Copyright</a> &copy; 19992000 by Norman Walsh. <a href="../warranty.html">No Warranty</a>.
               </p>
            </div>
            <hr>
         </div>
         <div class="partintro" lang="en">
            <div></div>
            <div class="section" lang="en">
               <div class="titlepage">
                  <div>
                     <h2 class="title" style="clear: both"><a name="d0e24"></a>Introduction
                     </h2>
                  </div>
               </div>
               <p>This is technical reference documentation for the DocBook XSL
                  Stylesheets; it documents (some of) the parameters, templates, and
                  other elements of the stylesheets.
               </p>
               <p>This is not intended to be &#8220;user&#8221; documentation.
                  It is provided for developers writing customization layers for the
                  stylesheets, and for anyone who's interested in &#8220;how it
                  works&#8221;.
               </p>
               <p>Although I am trying to be thorough, this documentation is known
                  to be incomplete. Don't forget to read the source, too :-)
               </p>
            </div>
            <div class="toc">
               <p><b>Table of Contents</b></p>
               <dl>
                  <dt><a href="#template.calc.column.width">calc.column.width</a> - Calculate an XSL FO table column width specification from a
                     CALS table column width specification.
                  </dt>
               </dl>
            </div>
         </div>
         <div class="refentry" lang="en"><a name="template.calc.column.width"></a><div class="titlepage"></div>
            <div class="refnamediv">
               <h2>Name</h2>
               <p>calc.column.width &#8212; Calculate an XSL FO table column width specification from a
                  CALS table column width specification.
               </p>
            </div>
            <div class="refsynopsisdiv">
               <h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="calc.column.width"&gt;
&lt;xsl:param name="colwidth"&gt;1*&lt;/xsl:param&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
            <div class="refdescription"><a name="d0e48"></a>
               
               
               <p>CALS expresses table column widths in the following basic
                  forms:
               </p>
               
               
               
               
               <div class="itemizedlist">
                  <ul type="disc">
                     <li>
                        <p><span class="emphasis"><em>99.99units</em></span>, a fixed length specifier.
                        </p>
                     </li>
                     <li>
                        <p><span class="emphasis"><em>99.99</em></span>, a fixed length specifier without any units.
                        </p>
                     </li>
                     <li>
                        <p><span class="emphasis"><em>99.99*</em></span>, a relative length specifier.
                        </p>
                     </li>
                     <li>
                        <p><span class="emphasis"><em>99.99*+99.99units</em></span>, a combination of both.
                        </p>
                     </li>
                  </ul>
               </div>
               
               
               
               
               <p>The CALS units are points (pt), picas (pi), centimeters (cm),
                  millimeters (mm), and inches (in). These are the same units as XSL,
                  except that XSL abbreviates picas "pc" instead of "pi". If a length
                  specifier has no units, the CALS default unit (pt) is assumed.
               </p>
               
               
               
               
               <p>Relative length specifiers are represented in XSL with the
                  proportional-column-width() function.
               </p>
               
               
               
               
               <p>Here are some examples:</p>
               
               
               
               
               <div class="itemizedlist">
                  <ul type="disc">
                     <li>
                        <p>"36pt" becomes "36pt"</p>
                     </li>
                     <li>
                        <p>"3pi" becomes "3pc"</p>
                     </li>
                     <li>
                        <p>"36" becomes "36pt"</p>
                     </li>
                     <li>
                        <p>"3*" becomes "proportional-column-width(3)"</p>
                     </li>
                     <li>
                        <p>"3*+2pi" becomes "proportional-column-width(3)+2pc"</p>
                     </li>
                     <li>
                        <p>"1*+2" becomes "proportional-column-width(1)+2pt"</p>
                     </li>
                  </ul>
               </div>
               
               
            </div>
            <div class="refparameter"><b><a name="d0e104"></a>Parameters</b>
               
               
               <div class="variablelist">
                  <dl>
                     <dt><span class="term">colwidth</span></dt>
                     <dd>
                        <p>The CALS column width specification.</p>
                     </dd>
                  </dl>
               </div>
               
               
            </div>
            <div class="refreturn"><b><a name="d0e114"></a>Returns</b>
               
               
               <p>The XSL column width specification.</p>
               
               
            </div>
         </div>
      </div>
   </body>
</html>