]> granicus.if.org Git - docbook-dsssl/commitdiff
Add sidebar.properties to control presentation of Sidebar elements
authorNorman Walsh <ndw@nwalsh.com>
Mon, 8 Jul 2002 12:07:58 +0000 (12:07 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 8 Jul 2002 12:07:58 +0000 (12:07 +0000)
xsl/fo/block.xsl
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/params/sidebar.properties.xml [new file with mode: 0644]

index 9aee590dc0d36d8f4febfdc6a276016a1811d978..736015907b449a27f2af0dc10c29e53f9074530c 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="sidebar">
-  <fo:block>
+  <fo:block xsl:use-attribute-sets="sidebar.properties">
     <xsl:if test="./title">
       <fo:block font-weight="bold"
                 keep-with-next.within-column="always"
index fbf0eccca7708c6a9cdad5d8173b16017eff84b1..cc45283a4fe9f8beaa6bc2dd821c44a351ed4180 100644 (file)
 <!ENTITY verbatim.properties SYSTEM "../params/verbatim.properties.xml">
 <!ENTITY xep.extensions SYSTEM "../params/xep.extensions.xml">
 <!ENTITY xref.properties SYSTEM "../params/xref.properties.xml">
+<!ENTITY sidebar.properties SYSTEM "../params/sidebar.properties.xml">
index dee8ef12334d038e29b57ed12993239bf6cf7a12..88c567b446a7ec2d254d40aa7f849150a3551fb5 100644 (file)
@@ -341,6 +341,7 @@ zero by default, so this is simply the page-master region-left.
 &monospace.verbatim.properties;
 &verbatim.properties;
 &section.title.properties;
+&sidebar.properties;
 </reference>
 
 <reference><title>Profiling</title>
@@ -527,6 +528,7 @@ around all these parameters.</para>
 <src:fragref linkend="shade.verbatim.frag"/>
 <src:fragref linkend="shade.verbatim.style.frag"/>
 <src:fragref linkend="show.comments.frag"/>
+<src:fragref linkend="sidebar.properties.frag"/>
 <src:fragref linkend="table.border.color.frag"/>
 <src:fragref linkend="table.border.style.frag"/>
 <src:fragref linkend="table.border.thickness.frag"/>
diff --git a/xsl/params/sidebar.properties.xml b/xsl/params/sidebar.properties.xml
new file mode 100644 (file)
index 0000000..8c54a36
--- /dev/null
@@ -0,0 +1,38 @@
+<refentry id="sidebar.properties">
+<refmeta>
+<refentrytitle>sidebar.properties</refentrytitle>
+<refmiscinfo role="type">attribute set</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>sidebar.properties</refname>
+<refpurpose>Attribute set for sidebar properties</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='sidebar.properties.frag'>
+<xsl:attribute-set name="sidebar.properties"
+                   use-attribute-sets="formal.object.properties">
+  <xsl:attribute name="border-style">solid</xsl:attribute>
+  <xsl:attribute name="border-width">1pt</xsl:attribute>
+  <xsl:attribute name="border-color">black</xsl:attribute>
+  <xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
+  <xsl:attribute name="padding-left">12pt</xsl:attribute>
+  <xsl:attribute name="padding-right">12pt</xsl:attribute>
+  <xsl:attribute name="padding-top">6pt</xsl:attribute>
+  <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
+<!--
+  <xsl:attribute name="margin-left">12pt</xsl:attribute>
+  <xsl:attribute name="margin-right">12pt</xsl:attribute>
+  <xsl:attribute name="margin-top">6pt</xsl:attribute>
+  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
+-->
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>The styling for sidebars.</para>
+
+</refsect1>
+</refentry>