source: trunk/Distribution/XSL/params/nominal.image.width.xml@ 2

Last change on this file since 2 was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 1.3 KB
Line 
1<refentry id="nominal.image.width">
2<refmeta>
3<refentrytitle>nominal.image.width</refentrytitle>
4<refmiscinfo role="type">length</refmiscinfo>
5</refmeta>
6<refnamediv>
7<refname>nominal.image.width</refname>
8<refpurpose>The nominal image width</refpurpose>
9</refnamediv>
10
11<refsynopsisdiv>
12<src:fragment id='nominal.image.width.frag'>
13<xsl:param name="nominal.image.width" select="6 * $pixels.per.inch"/>
14</src:fragment>
15</refsynopsisdiv>
16
17<refsect1><title>Description</title>
18
19<para>Graphic widths expressed as a percentage are problematic. In the
20following discussion, we speak of width and contentwidth, but
21the same issues apply to depth and contentdepth.</para>
22
23<para>A width of 50% means "half of the available space for the image."
24That's fine. But note that in HTML, this is a dynamic property and
25the image size will vary if the browser window is resized.</para>
26
27<para>A contentwidth of 50% means "half of the actual image width".
28But what does that mean if the stylesheets cannot assess the image's
29actual size? Treating this as a width of 50% is one possibility, but
30it produces behavior (dynamic scaling) that seems entirely out of
31character with the meaning.</para>
32
33<para>Instead, the stylesheets define a
34<parameter>nominal.image.width</parameter> and convert percentages to
35actual values based on that nominal size.</para>
36
37</refsect1>
38</refentry>
Note: See TracBrowser for help on using the repository browser.