]> granicus.if.org Git - docbook-dsssl/commitdiff
Added informal.object.properties
authorNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 17:48:45 +0000 (17:48 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 17:48:45 +0000 (17:48 +0000)
xsl/fo/formal.xsl
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/params/informal.object.properties.xml [new file with mode: 0644]

index 38a8385636f2d02f2f4e84399f4cafb4ffe2977d..bd23588248258a03474d73ca6fa013e40101e510 100644 (file)
 </xsl:template>
 
 <xsl:template match="informaltable">
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
   <xsl:variable name="prop-columns"
     select=".//colspec[contains(@colwidth, '*')]"/>
 
       <xsl:attribute name="reference-orientation">90</xsl:attribute>
     </xsl:if>
 
-    <fo:table>
+    <fo:table id="{$id}"
+              xsl:use-attribute-sets="informal.object.properties">
       <xsl:call-template name="table.frame"/>
       <xsl:if test="count($prop-columns) != 0">
         <xsl:attribute name="table-layout">fixed</xsl:attribute>
index e576da96b65a9d670e8edcefa8841b88d25ad881..f4afff3c0eda58a85e0f307d9562ab7f972627bd 100644 (file)
@@ -60,6 +60,7 @@
 <!ENTITY glossterm.auto.link SYSTEM "../params/glossterm.auto.link.xml">
 <!ENTITY graphic.default.extension SYSTEM "../params/graphic.default.extension.xml">
 <!ENTITY hyphenate SYSTEM "../params/hyphenate.xml">
+<!ENTITY informal.object.properties SYSTEM "../params/informal.object.properties.xml">
 <!ENTITY insert.xref.page.number SYSTEM "../params/insert.xref.page.number.xml">
 <!ENTITY label.from.part SYSTEM "../params/label.from.part.xml">
 <!ENTITY line-height SYSTEM "../params/line-height.xml">
index ada206ba328ceee116caaf959dfe4c910339452f..3489b8bdb944391c52dd019875239b0eaf6681af 100644 (file)
@@ -315,6 +315,7 @@ zero by default, so this is simply the page-master region-left.
 &component.title.properties;
 &formal.object.properties;
 &formal.title.properties;
+&informal.object.properties;
 &monospace.verbatim.properties;
 &verbatim.properties;
 </reference>
@@ -408,6 +409,7 @@ around all these parameters.</para>
 <src:fragref linkend="glossterm.auto.link.frag"/>
 <src:fragref linkend="graphic.default.extension.frag"/>
 <src:fragref linkend="hyphenate.frag"/>
+<src:fragref linkend="informal.object.properties.frag"/>
 <src:fragref linkend="insert.xref.page.number.frag"/>
 <src:fragref linkend="label.from.part.frag"/>
 <src:fragref linkend="line-height.frag"/>
diff --git a/xsl/params/informal.object.properties.xml b/xsl/params/informal.object.properties.xml
new file mode 100644 (file)
index 0000000..6092cc0
--- /dev/null
@@ -0,0 +1,20 @@
+<refentry id="informal.object.properties">
+<refnamediv>
+<refname>informal.object.properties</refname>
+<refpurpose>Properties associated with a formal object such as a figure, or other component that has a title</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='informal.object.properties.frag'><xsl:attribute-set name="informal.object.properties">
+  <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
+  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+  <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
+  <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
+  <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+  <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
+</xsl:attribute-set></src:fragment>
+</refsynopsisdiv>
+<refsect1><title>Description</title>
+<para>The styling for informal objects in docbook. Specify the spacing before and after the object.</para>
+</refsect1>
+</refentry>