]> granicus.if.org Git - docbook-dsssl/commitdiff
Added the man.funcsynopsis.style parameter. Has the same effect in
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 20 Feb 2008 11:42:45 +0000 (11:42 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 20 Feb 2008 11:42:45 +0000 (11:42 +0000)
manpages output as the funcsynopsis.style parameter has in HTML
output -- except that its default value is 'ansi' instead of 'kr'.

xsl/manpages/param.ent
xsl/manpages/param.xweb
xsl/manpages/pi.xsl
xsl/manpages/synop.xsl
xsl/params/man.funcsynopsis.style.xml [new file with mode: 0644]

index 7441d53ed72a5fffaf16580bb29e03f290ac3135..7d66719181bb3e9ade46955dfb1b606f4af8889a 100644 (file)
@@ -12,6 +12,7 @@
 <!ENTITY man.font.funcsynopsisinfo SYSTEM "../params/man.font.funcsynopsisinfo.xml">
 <!ENTITY man.font.table.headings SYSTEM "../params/man.font.table.headings.xml">
 <!ENTITY man.font.table.title SYSTEM "../params/man.font.table.title.xml">
+<!ENTITY man.funcsynopsis.style SYSTEM "../params/man.funcsynopsis.style.xml">
 <!ENTITY man.hyphenate.computer.inlines SYSTEM "../params/man.hyphenate.computer.inlines.xml">
 <!ENTITY man.hyphenate.filenames SYSTEM "../params/man.hyphenate.filenames.xml">
 <!ENTITY man.hyphenate SYSTEM "../params/man.hyphenate.xml">
index 46b683ff79b148857d789a509a172d05f3cbbee3..184cda5f310c72c7e0c79bd469b67add104ad8cc 100644 (file)
 &man.font.funcsynopsisinfo;
 &man.font.table.headings;
 &man.font.table.title;
+  </reference>
+  <reference xml:id="synopsis">
+  <title>SYNOPSIS section</title>
+&man.funcsynopsis.style;
   </reference>
   <reference xml:id="authors">
   <title>AUTHORS and COPYRIGHT sections</title>
 <src:fragref linkend="man.font.funcsynopsisinfo.frag"/>
 <src:fragref linkend="man.font.table.headings.frag"/>
 <src:fragref linkend="man.font.table.title.frag"/>
+<src:fragref linkend="man.funcsynopsis.style.frag"/>
 <src:fragref linkend="man.hyphenate.computer.inlines.frag"/>
 <src:fragref linkend="man.hyphenate.filenames.frag"/>
 <src:fragref linkend="man.hyphenate.frag"/>
index c3e17632dae36f050d72618adea83f981ea7d044..7b0975b83b626f6fc0d419368c941ed8b21531ee 100644 (file)
@@ -65,7 +65,7 @@
     </variablelist>
   </refparameter>
   <refsee role="params">
-    <para><parameter>funcsynopsis.style</parameter></para>
+    <para><parameter>man.funcsynopsis.style</parameter></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbman_funcsynopsis-style">
index 0d4ebf64211b15ff71d63fca02c54b2ea310f69d..6a8719683ffdc849e6424363b81d5cee3b290c6c 100644 (file)
         <xsl:value-of select="$man-funcprototype-style"/>
       </xsl:when>
       <xsl:otherwise>
-        <xsl:value-of select="$funcsynopsis.style"/>
+        <xsl:value-of select="$man.funcsynopsis.style"/>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:variable>
diff --git a/xsl/params/man.funcsynopsis.style.xml b/xsl/params/man.funcsynopsis.style.xml
new file mode 100644 (file)
index 0000000..0597087
--- /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="man.funcsynopsis.style">
+<refmeta>
+<refentrytitle>man.funcsynopsis.style</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
+<refmiscinfo class="other" otherclass="value">ansi</refmiscinfo>
+<refmiscinfo class="other" otherclass="value">kr</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>man.funcsynopsis.style</refname>
+<refpurpose>What style of <tag>funcsynopsis</tag> should be generated?</refpurpose>
+</refnamediv>
+<refsynopsisdiv>
+<src:fragment xml:id="man.funcsynopsis.style.frag"><xsl:param name="man.funcsynopsis.style">ansi</xsl:param></src:fragment>
+</refsynopsisdiv>
+<refsection><info><title>Description</title></info>
+<para>If <parameter>man.funcsynopsis.style</parameter> is
+<literal>ansi</literal>, ANSI-style function synopses are
+generated for a <tag>funcsynopsis</tag>, otherwise K&amp;R-style
+function synopses are generated.</para>
+</refsection>
+</refentry>