Move style properties for footnotes to attribute-sets.
authorBob Stayton <bobs@sagehill.net>
Thu, 3 Feb 2005 07:50:15 +0000 (07:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 3 Feb 2005 07:50:15 +0000 (07:50 +0000)
xsl/params/footnote.mark.properties.xml [new file with mode: 0644]
xsl/params/footnote.properties.xml [new file with mode: 0644]

diff --git a/xsl/params/footnote.mark.properties.xml b/xsl/params/footnote.mark.properties.xml
new file mode 100644 (file)
index 0000000..8a99388
--- /dev/null
@@ -0,0 +1,31 @@
+<refentry id="footnote.mark.properties">
+<refnamediv>
+<refname>footnote.mark.properties</refname>
+<refpurpose>Properties applied to each footnote mark
+</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='footnote.mark.properties.frag'>
+<xsl:attribute-set name="footnote.mark.properties">
+  <xsl:attribute name="font-size">75%</xsl:attribute>
+  <xsl:attribute name="font-weight">normal</xsl:attribute>
+  <xsl:attribute name="font-style">normal</xsl:attribute>
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This attribute set is applied to the footnote mark used
+for each footnote.
+It should contain only inline properties.
+</para>
+
+<para>The property to make the mark a superscript is contained in the
+footnote template itself, because the current version of FOP reports
+an error if baseline-shift is used.
+</para>
+
+</refsect1>
+</refentry>
diff --git a/xsl/params/footnote.properties.xml b/xsl/params/footnote.properties.xml
new file mode 100644 (file)
index 0000000..f55795d
--- /dev/null
@@ -0,0 +1,33 @@
+<refentry id="footnote.properties">
+<refnamediv>
+<refname>footnote.properties</refname>
+<refpurpose>Properties applied to each footnote body
+</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='footnote.properties.frag'>
+<xsl:attribute-set name="footnote.properties">
+  <xsl:attribute name="font-family"><xsl:value-of 
+                             select="$body.fontset"/></xsl:attribute>
+  <xsl:attribute name="font-size"><xsl:value-of 
+                             select="$footnote.font.size"/></xsl:attribute>
+  <xsl:attribute name="font-weight">normal</xsl:attribute>
+  <xsl:attribute name="font-style">normal</xsl:attribute>
+  <xsl:attribute name="text-align"><xsl:value-of
+                             select="$alignment"/></xsl:attribute>
+  <xsl:attribute name="start-indent">0pt</xsl:attribute>
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This attribute set is applied to the footnote-block 
+for each footnote.
+It can be used to set the
+font-size, font-family, and other inheritable properties that will be
+applied to all footnotes.</para>
+
+</refsect1>
+</refentry>