]> granicus.if.org Git - docbook-dsssl/commitdiff
Add new variablelist.term.properties to format terms, per
authorBob Stayton <bobs@sagehill.net>
Sun, 22 Mar 2009 06:22:50 +0000 (06:22 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 22 Mar 2009 06:22:50 +0000 (06:22 +0000)
request # 1968513.

xsl/fo/lists.xsl
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/params/variablelist.term.properties.xml [new file with mode: 0644]

index f9cbe545fc8bbd0d5734376d9b7f16e54463ed0e..ba099b86d9a21469f193bf07b5c3576dc9249dd7 100644 (file)
   </xsl:variable>
   <xsl:variable name="item.contents">
     <fo:list-item-label end-indent="label-end()" text-align="start">
-      <fo:block>
+      <fo:block xsl:-use-attribute-sets="variablelist.term.properties">
         <xsl:apply-templates select="term"/>
       </fo:block>
     </fo:list-item-label>
 <xsl:template match="varlistentry" mode="vl.as.blocks">
   <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
 
-  <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"  
+  <fo:block id="{$id}" xsl:use-attribute-sets="variablelist.term.properties
+                                               list.item.spacing"  
       keep-together.within-column="always" 
       keep-with-next.within-column="always">
     <xsl:apply-templates select="term"/>
index 3cf717e4eedff004ec7d410af9e374872e925d59..efb72905111c641ce8373f0e692297aec89f1c3f 100644 (file)
 <!ENTITY use.svg SYSTEM "../params/use.svg.xml">
 <!ENTITY variablelist.as.blocks SYSTEM "../params/variablelist.as.blocks.xml">
 <!ENTITY variablelist.max.termlength SYSTEM "../params/variablelist.max.termlength.xml">
+<!ENTITY variablelist.term.properties SYSTEM "../params/variablelist.term.properties.xml">
 <!ENTITY variablelist.term.separator SYSTEM "../params/variablelist.term.separator.xml">
 <!ENTITY variablelist.term.break.after SYSTEM "../params/variablelist.term.break.after.xml">
 <!ENTITY verbatim.properties SYSTEM "../params/verbatim.properties.xml">
index 8e31de5f68ec149254a9e5d1b44e89620228ce78..79a448e1a4192f1428331a10fc35f7d0211e4f8a 100644 (file)
@@ -193,6 +193,7 @@ generate.section.toc.level;
 &orderedlist.label.width;
 &variablelist.max.termlength;
 &variablelist.term.separator;
+&variablelist.term.properties;
 &variablelist.term.break.after;
 </reference>
 <reference xml:id="qa"><title>QAndASet</title>
@@ -866,6 +867,7 @@ around all these parameters.</para>
 <src:fragref linkend="variablelist.as.blocks.frag"/>
 <src:fragref linkend="variablelist.max.termlength.frag"/>
 <src:fragref linkend="variablelist.term.separator.frag"/>
+<src:fragref linkend="variablelist.term.properties.frag"/>
 <src:fragref linkend="variablelist.term.break.after.frag"/>
 <src:fragref linkend="verbatim.properties.frag"/>
 <src:fragref linkend="writing.mode.frag"/>
diff --git a/xsl/params/variablelist.term.properties.xml b/xsl/params/variablelist.term.properties.xml
new file mode 100644 (file)
index 0000000..4a4835d
--- /dev/null
@@ -0,0 +1,29 @@
+<refentry xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xi="http://www.w3.org/2001/XInclude"
+          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          version="5.0" xml:id="variablelist.term.properties">
+<refmeta>
+<refentrytitle>variablelist.term.properties</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>variablelist.term.properties</refname>
+<refpurpose>To add properties to the term elements in a variablelist.</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="variablelist.term.properties.frag">
+<xsl:attribute-set name="variablelist.term.properties">
+</xsl:attribute-set>
+</src:fragment>
+</refsynopsisdiv>
+<refsection><info><title>Description</title></info>
+<para>These properties are added to the block containing a
+term in a variablelist.
+Use this attribute-set to set
+font properties or alignment, for example.</para>
+
+</refsection>
+</refentry>