| 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
|
|---|
| 20 | following discussion, we speak of width and contentwidth, but
|
|---|
| 21 | the same issues apply to depth and contentdepth.</para>
|
|---|
| 22 |
|
|---|
| 23 | <para>A width of 50% means "half of the available space for the image."
|
|---|
| 24 | That's fine. But note that in HTML, this is a dynamic property and
|
|---|
| 25 | the 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".
|
|---|
| 28 | But what does that mean if the stylesheets cannot assess the image's
|
|---|
| 29 | actual size? Treating this as a width of 50% is one possibility, but
|
|---|
| 30 | it produces behavior (dynamic scaling) that seems entirely out of
|
|---|
| 31 | character with the meaning.</para>
|
|---|
| 32 |
|
|---|
| 33 | <para>Instead, the stylesheets define a
|
|---|
| 34 | <parameter>nominal.image.width</parameter> and convert percentages to
|
|---|
| 35 | actual values based on that nominal size.</para>
|
|---|
| 36 |
|
|---|
| 37 | </refsect1>
|
|---|
| 38 | </refentry>
|
|---|