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
8 <refentrytitle>margin.note.properties</refentrytitle>
\r
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
\r
12 <refname>margin.note.properties</refname>
\r
13 <refpurpose>Attribute set for margin.note properties</refpurpose>
\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
25 <refsection><info><title>Description</title></info>
\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
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
38 <para>For example:</para>
\r
39 <programlisting><xsl:template match="para[@role='marginnote']">
\r
40 <xsl:call-template name="floater">
\r
41 <xsl:with-param name="position">
\r
42 <xsl:value-of select="$margin.note.float.type"/>
\r
43 </xsl:with-param>
\r
44 <xsl:with-param name="width">
\r
45 <xsl:value-of select="$margin.note.width"/>
\r
46 </xsl:with-param>
\r
47 <xsl:with-param name="content">
\r
48 <xsl:apply-imports/>
\r
49 </xsl:with-param>
\r
50 </xsl:call-template>
\r
51 </xsl:template></programlisting>
\r