]> granicus.if.org Git - docbook-dsssl/commitdiff
Added three new attribute sets (revhistory.title.properties, revhistory.table.propert...
authorJirka Kosek <jirka@kosek.cz>
Sun, 21 May 2006 13:05:19 +0000 (13:05 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sun, 21 May 2006 13:05:19 +0000 (13:05 +0000)
xsl/fo/block.xsl
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/fo/titlepage.xsl
xsl/params/revhistory.table.cell.properties.xml [new file with mode: 0644]
xsl/params/revhistory.table.properties.xml [new file with mode: 0644]
xsl/params/revhistory.title.properties.xml [new file with mode: 0644]

index 860a803e50d93f774da525f28651682137a2cca9..3c7ed56c398948c6a98b4e3081e75d9422e2194c 100644 (file)
 <!-- For better or worse, revhistory is allowed in content... -->
 
 <xsl:template match="revhistory">
-  <fo:table table-layout="fixed">
+  <fo:table table-layout="fixed" xsl:use-attribute-sets="revhistory.table.properties">
     <xsl:if test="@id">
       <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
     </xsl:if>
     <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
     <fo:table-body start-indent="0pt" end-indent="0pt">
       <fo:table-row>
-        <fo:table-cell number-columns-spanned="3">
-          <fo:block>
+        <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
+          <fo:block xsl:use-attribute-sets="revhistory.title.properties">
             <xsl:call-template name="gentext">
               <xsl:with-param name="key" select="'RevHistory'"/>
             </xsl:call-template>
   <xsl:variable name="revauthor" select="authorinitials|author"/>
   <xsl:variable name="revremark" select="revremark|revdescription"/>
   <fo:table-row>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:if test="@id">
           <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
         </xsl:if>
       </fo:block>
     </fo:table-cell>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:apply-templates select="$revdate[1]"/>
       </fo:block>
     </fo:table-cell>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:for-each select="$revauthor">
           <xsl:apply-templates select="."/>
   </fo:table-row>
   <xsl:if test="$revremark">
     <fo:table-row>
-      <fo:table-cell number-columns-spanned="3">
+      <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
         <fo:block>
           <xsl:apply-templates select="$revremark[1]"/>
         </fo:block>
index 88a53e8d42c4bdb9ba83071f3ce80eb1155afed1..c003ea464d43186698114cde60093ffc17d7e574 100644 (file)
 <!ENTITY refclass.suppress SYSTEM "../params/refclass.suppress.xml">
 <!ENTITY region.after.extent SYSTEM "../params/region.after.extent.xml">
 <!ENTITY region.before.extent SYSTEM "../params/region.before.extent.xml">
+<!ENTITY revhistory.table.properties SYSTEM "../params/revhistory.table.properties.xml">
+<!ENTITY revhistory.table.cell.properties SYSTEM "../params/revhistory.table.cell.properties.xml">
+<!ENTITY revhistory.title.properties SYSTEM "../params/revhistory.title.properties.xml">
 <!ENTITY rootid SYSTEM "../params/rootid.xml">
 <!ENTITY runinhead.default.title.end.punct SYSTEM "../params/runinhead.default.title.end.punct.xml">
 <!ENTITY runinhead.title.end.punct SYSTEM "../params/runinhead.title.end.punct.xml">
index 1c0f0e77eb793261dea51a1a7c5316ab28dfed8c..8248509b1ed7914d4cfaeb7007288a08274391c7 100644 (file)
@@ -475,6 +475,9 @@ zero by default, so this is simply the page-master region-left.
 &article.appendix.title.properties;
 &abstract.properties;
 &abstract.title.properties;
+&revhistory.table.properties;
+&revhistory.table.cell.properties;
+&revhistory.title.properties;
 </reference>
 
 <reference id="profiling"><title>Profiling</title>
@@ -773,6 +776,9 @@ around all these parameters.</para>
 <src:fragref linkend="refclass.suppress.frag"/>
 <src:fragref linkend="region.after.extent.frag"/>
 <src:fragref linkend="region.before.extent.frag"/>
+<src:fragref linkend="revhistory.table.properties.frag"/>
+<src:fragref linkend="revhistory.table.cell.properties.frag"/>
+<src:fragref linkend="revhistory.title.properties.frag"/>
 <src:fragref linkend="root.properties.frag"/>
 <src:fragref linkend="rootid.frag"/>
 <src:fragref linkend="runinhead.default.title.end.punct.frag"/>
index e124783f61d801b91f4bb5f04a1bd3e303595b12..d33b34f972df87f2cfc86586fa5dc2b7f5168b4b 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
-  <fo:table table-layout="fixed" width="{$table.width}">
+  <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
     <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
     <fo:table-body start-indent="0pt" end-indent="0pt">
       <fo:table-row>
-        <fo:table-cell number-columns-spanned="3">
-          <fo:block>
+        <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
+          <fo:block xsl:use-attribute-sets="revhistory.title.properties">
             <xsl:call-template name="gentext">
               <xsl:with-param name="key" select="'RevHistory'"/>
             </xsl:call-template>
   <xsl:variable name="revauthor" select="authorinitials|author"/>
   <xsl:variable name="revremark" select="revremark|revdescription"/>
   <fo:table-row>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:if test="$revnumber">
           <xsl:call-template name="gentext">
         </xsl:if>
       </fo:block>
     </fo:table-cell>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
       </fo:block>
     </fo:table-cell>
-    <fo:table-cell>
+    <fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
       <fo:block>
         <xsl:for-each select="$revauthor">
           <xsl:apply-templates select="." mode="titlepage.mode"/>
   </fo:table-row>
   <xsl:if test="$revremark">
     <fo:table-row>
-      <fo:table-cell number-columns-spanned="3">
+      <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
         <fo:block>
           <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
         </fo:block>
diff --git a/xsl/params/revhistory.table.cell.properties.xml b/xsl/params/revhistory.table.cell.properties.xml
new file mode 100644 (file)
index 0000000..c82b20e
--- /dev/null
@@ -0,0 +1,23 @@
+<refentry id="revhistory.table.cell.properties">
+<refmeta>
+<refentrytitle>revhistory.table.cell.properties</refentrytitle>
+<refmiscinfo role="type">attribute set</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>revhistory.table.cell.properties</refname>
+<refpurpose>The properties of table cells used for formatting revhistory</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='revhistory.table.cell.properties.frag'>
+<xsl:attribute-set name="revhistory.table.cell.properties">
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This property set defines appearance of individual cells in revhistory table.</para>
+
+</refsect1>
+</refentry>
diff --git a/xsl/params/revhistory.table.properties.xml b/xsl/params/revhistory.table.properties.xml
new file mode 100644 (file)
index 0000000..7efd6f2
--- /dev/null
@@ -0,0 +1,23 @@
+<refentry id="revhistory.table.properties">
+<refmeta>
+<refentrytitle>revhistory.table.properties</refentrytitle>
+<refmiscinfo role="type">attribute set</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>revhistory.table.properties</refname>
+<refpurpose>The properties of table used for formatting revhistory</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='revhistory.table.properties.frag'>
+<xsl:attribute-set name="revhistory.table.properties">
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This property set defines appearance of revhistory table.</para>
+
+</refsect1>
+</refentry>
diff --git a/xsl/params/revhistory.title.properties.xml b/xsl/params/revhistory.title.properties.xml
new file mode 100644 (file)
index 0000000..3f915ec
--- /dev/null
@@ -0,0 +1,23 @@
+<refentry id="revhistory.title.properties">
+<refmeta>
+<refentrytitle>revhistory.title.properties</refentrytitle>
+<refmiscinfo role="type">attribute set</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>revhistory.title.properties</refname>
+<refpurpose>The properties of revhistory title</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='revhistory.title.properties.frag'>
+<xsl:attribute-set name="revhistory.title.properties">
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This property set defines appearance of revhistory title.</para>
+
+</refsect1>
+</refentry>