source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/margin.note.properties.xml@ 64a2cd5

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 64a2cd5 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.9 KB
Line 
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="margin.note.properties">
7<refmeta>
8<refentrytitle>margin.note.properties</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>margin.note.properties</refname>
13<refpurpose>Attribute set for margin.note properties</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="margin.note.properties.frag">
18<xsl:attribute-set name="margin.note.properties">
19 <xsl:attribute name="font-size">90%</xsl:attribute>
20 <xsl:attribute name="text-align">start</xsl:attribute>
21</xsl:attribute-set>
22</src:fragment>
23</refsynopsisdiv>
24
25<refsection><info><title>Description</title></info>
26
27<para>The styling for margin notes.
28By default, margin notes are not implemented for any
29element. A stylesheet customization is needed to make
30use of this attribute-set.</para>
31
32<para>You can use a template named <quote>floater</quote>
33to create the customization.
34That template can create side floats by specifying the
35content and characteristics as template parameters.
36</para>
37
38<para>For example:</para>
39<programlisting>&lt;xsl:template match="para[@role='marginnote']"&gt;
40 &lt;xsl:call-template name="floater"&gt;
41 &lt;xsl:with-param name="position"&gt;
42 &lt;xsl:value-of select="$margin.note.float.type"/&gt;
43 &lt;/xsl:with-param&gt;
44 &lt;xsl:with-param name="width"&gt;
45 &lt;xsl:value-of select="$margin.note.width"/&gt;
46 &lt;/xsl:with-param&gt;
47 &lt;xsl:with-param name="content"&gt;
48 &lt;xsl:apply-imports/&gt;
49 &lt;/xsl:with-param&gt;
50 &lt;/xsl:call-template&gt;
51&lt;/xsl:template&gt;</programlisting>
52
53</refsection>
54</refentry>
Note: See TracBrowser for help on using the repository browser.