]> git.stg.codes - stg.git/blob - doc/xslt/params/default.units.xml
Simplified admins API
[stg.git] / doc / xslt / params / default.units.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="default.units">
7 <refmeta>
8 <refentrytitle>default.units</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
10 <refmiscinfo class="other" otherclass="value">cm</refmiscinfo>
11 <refmiscinfo class="other" otherclass="value">mm</refmiscinfo>
12 <refmiscinfo class="other" otherclass="value">in</refmiscinfo>
13 <refmiscinfo class="other" otherclass="value">pt</refmiscinfo>
14 <refmiscinfo class="other" otherclass="value">pc</refmiscinfo>
15 <refmiscinfo class="other" otherclass="value">px</refmiscinfo>
16 <refmiscinfo class="other" otherclass="value">em</refmiscinfo>
17 </refmeta>
18 <refnamediv>
19 <refname>default.units</refname>
20 <refpurpose>Default units for an unqualified dimension</refpurpose>
21 </refnamediv>
22
23 <refsynopsisdiv>
24 <src:fragment xml:id="default.units.frag">
25 <xsl:param name="default.units">pt</xsl:param>
26 </src:fragment>
27 </refsynopsisdiv>
28
29 <refsection><info><title>Description</title></info>
30
31 <para>If an unqualified dimension is encountered (for example, in a
32 graphic width), the <parameter>default.units</parameter> will be used for the
33 units. Unqualified dimensions are not allowed in XSL Formatting Objects.
34 </para>
35
36 </refsection>
37 </refentry>