]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/evergreen_docbook_files/docbook-xsl-1.75.2/params/margin.note.properties.xml
Evergreen Version Fix to reflect the new EG releases 2.0.10 and 1.6.1.9
[working/Evergreen.git] / stylesheets / evergreen_docbook_files / docbook-xsl-1.75.2 / params / margin.note.properties.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"\r
2           xmlns:xlink="http://www.w3.org/1999/xlink"\r
3           xmlns:xi="http://www.w3.org/2001/XInclude"\r
4           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"\r
5           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
6           version="5.0" xml:id="margin.note.properties">\r
7 <refmeta>\r
8 <refentrytitle>margin.note.properties</refentrytitle>\r
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>\r
10 </refmeta>\r
11 <refnamediv>\r
12 <refname>margin.note.properties</refname>\r
13 <refpurpose>Attribute set for margin.note properties</refpurpose>\r
14 </refnamediv>\r
15 \r
16 <refsynopsisdiv>\r
17 <src:fragment xml:id="margin.note.properties.frag">\r
18 <xsl:attribute-set name="margin.note.properties">\r
19   <xsl:attribute name="font-size">90%</xsl:attribute>\r
20   <xsl:attribute name="text-align">start</xsl:attribute>\r
21 </xsl:attribute-set>\r
22 </src:fragment>\r
23 </refsynopsisdiv>\r
24 \r
25 <refsection><info><title>Description</title></info>\r
26 \r
27 <para>The styling for margin notes.\r
28 By default, margin notes are not implemented for any\r
29 element. A stylesheet customization is needed to make\r
30 use of this attribute-set.</para>\r
31 \r
32 <para>You can use a template named <quote>floater</quote>\r
33 to create the customization.\r
34 That template can create side floats by specifying the\r
35 content and characteristics as template parameters.\r
36 </para>\r
37 \r
38 <para>For example:</para>\r
39 <programlisting>&lt;xsl:template match="para[@role='marginnote']"&gt;\r
40   &lt;xsl:call-template name="floater"&gt;\r
41     &lt;xsl:with-param name="position"&gt;\r
42       &lt;xsl:value-of select="$margin.note.float.type"/&gt;\r
43     &lt;/xsl:with-param&gt;\r
44     &lt;xsl:with-param name="width"&gt;\r
45       &lt;xsl:value-of select="$margin.note.width"/&gt;\r
46     &lt;/xsl:with-param&gt;\r
47     &lt;xsl:with-param name="content"&gt;\r
48       &lt;xsl:apply-imports/&gt;\r
49     &lt;/xsl:with-param&gt;\r
50   &lt;/xsl:call-template&gt;\r
51 &lt;/xsl:template&gt;</programlisting>\r
52 \r
53 </refsection>\r
54 </refentry>\r