]> granicus.if.org Git - docbook-dsssl/commitdiff
Added new param abstract.notitle.enabled.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 1 Jul 2007 08:35:54 +0000 (08:35 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 1 Jul 2007 08:35:54 +0000 (08:35 +0000)
If non-zero, in output of the abstract element on titlepages,
display of the abstract title is suppressed.
Because sometimes you really don't want or need that title
there...

xsl/html/param.ent
xsl/html/param.xweb
xsl/html/titlepage.xsl
xsl/params/abstract.notitle.enabled.xml [new file with mode: 0644]

index cb3e36a0a0ec535fe10ee8698a50b4fad1c38428..0ffff06bcd1f1d5049eb1766484e1d48e2c4e58f 100644 (file)
 <!ENTITY olink.pubid SYSTEM "../params/olink.pubid.xml">
 <!ENTITY olink.resolver SYSTEM "../params/olink.resolver.xml">
 <!ENTITY olink.sysid SYSTEM "../params/olink.sysid.xml">
+<!ENTITY abstract.notitle.enabled SYSTEM "../params/abstract.notitle.enabled.xml">
 <!ENTITY othercredit.like.author.enabled SYSTEM "../params/othercredit.like.author.enabled.xml">
 <!ENTITY part.autolabel SYSTEM "../params/part.autolabel.xml">
 <!ENTITY phrase.propagates.style SYSTEM "../params/phrase.propagates.style.xml">
index fc8100b32dbd55a071bd3e58d65f80aad0dac0aa..2301f6422b9f5161b206d45142dd6b197e2099f4 100644 (file)
@@ -155,6 +155,7 @@ $Id$
 &blurb.on.titlepage.enabled;
 &contrib.inline.enabled;
 &editedby.enabled;
+&abstract.notitle.enabled;
 &othercredit.like.author.enabled;
 &generate.legalnotice.link;
 &generate.revhistory.link;
@@ -656,6 +657,7 @@ around all these parameters.</para>
 <src:fragref linkend="olink.pubid.frag"/>
 <src:fragref linkend="olink.resolver.frag"/>
 <src:fragref linkend="olink.sysid.frag"/>
+<src:fragref linkend="abstract.notitle.enabled.frag"/>
 <src:fragref linkend="othercredit.like.author.enabled.frag"/>
 <src:fragref linkend="para.propagates.style.frag"/>
 <src:fragref linkend="part.autolabel.frag"/>
index 585a48e9a10c99d0b268744e7248c1136902e83f..cc54b756f57428fc442e7afca592ba8cd5adc5d7 100644 (file)
   <div>
     <xsl:apply-templates select="." mode="class.attribute"/>
     <xsl:call-template name="anchor"/>
-    <xsl:call-template name="formal.object.heading">
-      <xsl:with-param name="title">
-        <xsl:apply-templates select="." mode="title.markup"/>
-      </xsl:with-param>
-    </xsl:call-template>
+    <xsl:if test="not ($abstract.notitle.enabled = 0)">
+      <xsl:call-template name="formal.object.heading">
+        <xsl:with-param name="title">
+          <xsl:apply-templates select="." mode="title.markup"/>
+        </xsl:with-param>
+      </xsl:call-template>
+    </xsl:if>
     <xsl:apply-templates mode="titlepage.mode"/>
   </div>
 </xsl:template>
diff --git a/xsl/params/abstract.notitle.enabled.xml b/xsl/params/abstract.notitle.enabled.xml
new file mode 100644 (file)
index 0000000..a0d7af5
--- /dev/null
@@ -0,0 +1,26 @@
+<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="abstract.notitle.enabled">
+<refmeta>
+<refentrytitle>abstract.notitle.enabled</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>abstract.notitle.enabled</refname>
+<refpurpose>Suppress display of abstract titles?</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="abstract.notitle.enabled.frag"><xsl:param name="abstract.notitle.enabled">0</xsl:param></src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>If non-zero, in output of the <tag>abstract</tag> element on
+  titlepages, display of the abstract title is suppressed.</para>
+
+</refsection>
+</refentry>