]> granicus.if.org Git - docbook-dsssl/commitdiff
Moved hard coded properties into attribute-sets to make customization easier.
authorBob Stayton <bobs@sagehill.net>
Mon, 10 Jan 2005 09:02:09 +0000 (09:02 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 10 Jan 2005 09:02:09 +0000 (09:02 +0000)
xsl/params/graphical.admonition.properties.xml [new file with mode: 0644]
xsl/params/nongraphical.admonition.properties.xml [new file with mode: 0644]

diff --git a/xsl/params/graphical.admonition.properties.xml b/xsl/params/graphical.admonition.properties.xml
new file mode 100644 (file)
index 0000000..6e5276b
--- /dev/null
@@ -0,0 +1,27 @@
+<refentry id="graphical.admonition.properties">
+<refnamediv>
+<refname>graphical.admonition.properties</refname>
+<refpurpose>To add properties to the outer block of a graphical admonition.</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='graphical.admonition.properties.frag'><xsl:attribute-set name="graphical.admonition.properties">
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+<refsect1><title>Description</title>
+<para>These properties are added to the outer block containing the
+entire graphical admonition, including its title.
+It is used when the parameter
+<parameter>admon.graphics</parameter> is set to nonzero.
+Use this attribute-set to set the space above and below,
+and any indent for the whole admonition.</para>
+
+<para>In addition to these properties, a graphical admonition
+also applies the <parameter>admonition.title.properties</parameter>
+attribute-set to the title, and applies the
+<parameter>admonition.properties</parameter> attribute-set
+to the rest of the content.</para>
+
+</refsect1>
+</refentry>
diff --git a/xsl/params/nongraphical.admonition.properties.xml b/xsl/params/nongraphical.admonition.properties.xml
new file mode 100644 (file)
index 0000000..9d59abd
--- /dev/null
@@ -0,0 +1,32 @@
+<refentry id="nongraphical.admonition.properties">
+<refnamediv>
+<refname>nongraphical.admonition.properties</refname>
+<refpurpose>To add properties to the outer block of a nongraphical admonition.</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='nongraphical.admonition.properties.frag'><xsl:attribute-set name="nongraphical.admonition.properties">
+  <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+  <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+  <xsl:attribute name="margin-left">0.25in</xsl:attribute>
+  <xsl:attribute name="margin-right">0.25in</xsl:attribute>
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+<refsect1><title>Description</title>
+<para>These properties are added to the outer block containing the
+entire nongraphical admonition, including its title.
+It is used when the parameter
+<parameter>admon.graphics</parameter> is set to zero.
+Use this attribute-set to set the space above and below,
+and any indent for the whole admonition.</para>
+
+<para>In addition to these properties, a nongraphical admonition
+also applies the <parameter>admonition.title.properties</parameter>
+attribute-set to the title, and the
+<parameter>admonition.properties</parameter> attribute-set
+to the rest of the content.</para>
+
+</refsect1>
+</refentry>