]> granicus.if.org Git - docbook-dsssl/commitdiff
Added "dbman funcsynopsis-style" PI and incorporated it into the
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 18 Feb 2008 01:51:37 +0000 (01:51 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 18 Feb 2008 01:51:37 +0000 (01:51 +0000)
doc build.

xsl/docsrc/Makefile
xsl/docsrc/reference.xml
xsl/manpages/.cvsignore
xsl/manpages/pi.xsl [new file with mode: 0644]

index 70acc58d7d95f5550da9f27aecb01eff5d86b91c..37284b905a38787c87a2476b6718800dbf780c81 100644 (file)
@@ -3,7 +3,7 @@ include ../../releasetools/Variables.mk
 XJPARSEFLAGS= -E 0 -w
 
 PARAM_DIRS=html fo manpages roundtrip slides/fo slides/html website
-PI_DIRS=html fo common
+PI_DIRS=html fo manpages common
 
 PARAM_XML_FILES=$(foreach format,$(PARAM_DIRS),../$(format)/param.xml)
 PI_XML_FILES=$(foreach format,$(PI_DIRS),../$(format)/pi.xml)
index da97ba94294f81e67ec121619fc35f10b7e62236..7439e0864fd4485c20b7f0a51b897a4ae4938f8b 100644 (file)
     <part xml:id="pi-fo">
       <xi:include href="../fo/pi.xml" xpointer="xpointer(/reference/node())" />
     </part>
+    <part xml:id="pi-man">
+      <xi:include href="../manpages/pi.xml" xpointer="xpointer(/reference/node())" />
+    </part>
     <part xml:id="pi-common">
       <xi:include href="../common/pi.xml" xpointer="xpointer(/reference/node())" />
     </part>
index a0b548f8f87c4df5b9b4cd10ce995e346091a4a4..7ba7b6e51b8037424d70518d9d7b9029869b8363 100644 (file)
@@ -7,3 +7,4 @@ param.xsl
 profile-docbook.xsl
 xref.xsl
 html-synop.xsl
+pi.xml
diff --git a/xsl/manpages/pi.xsl b/xsl/manpages/pi.xsl
new file mode 100644 (file)
index 0000000..c3e1763
--- /dev/null
@@ -0,0 +1,79 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+                xmlns:xlink="http://www.w3.org/1999/xlink"
+                exclude-result-prefixes="doc"
+                version='1.0'>
+
+<!-- ********************************************************************
+     $Id: pi.xsl 7644 2008-01-16 11:04:07Z xmldoc $
+     ********************************************************************
+
+     This file is part of the XSL DocBook Stylesheet distribution.
+     See ../README or http://docbook.sf.net/release/xsl/current/ for
+     copyright and other information.
+
+     ******************************************************************** -->
+
+<doc:reference xmlns=""><info><title>manpages Processing Instruction Reference</title>
+    <releaseinfo role="meta">
+      $Id: pi.xsl 7644 2008-01-16 11:04:07Z xmldoc $
+    </releaseinfo>
+  </info>
+  <partintro xml:id="partintro">
+    <title>Introduction</title>
+    <para>This is generated reference documentation for all
+      user-specifiable processing instructions (PIs) in the DocBook
+      XSL stylesheets for manpages output.
+      <note>
+        <para>You add these PIs at particular points in a document to
+          cause specific “exceptions” to formatting/output behavior. To
+          make global changes in formatting/output behavior across an
+          entire document, it’s better to do it by setting an
+          appropriate stylesheet parameter (if there is one).</para>
+      </note>
+    </para>
+  </partintro>
+</doc:reference>
+
+<!-- ==================================================================== -->
+
+<doc:pi name="dbman_funcsynopsis-style" xmlns="">
+  <refpurpose>Specifies presentation style for a funcsynopsis.</refpurpose>
+  <refdescription>
+    <para>Use the <tag class="xmlpi">dbman
+        funcsynopsis-style</tag> PI as a child of a
+      <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
+      to control the presentation style for output of all
+      <tag>funcprototype</tag> instances within that funcsynopsis.</para>
+  </refdescription>
+  <refsynopsisdiv>
+    <synopsis><tag class="xmlpi">dbman funcsynopsis-style="kr"|"ansi"</tag></synopsis>
+  </refsynopsisdiv>
+  <refparameter>
+    <variablelist>
+      <varlistentry><term>funcsynopsis-style="kr"</term>
+        <listitem>
+          <para>Displays the <tag>funcprototype</tag> in K&amp;R style</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry><term>funcsynopsis-style="ansi"</term>
+        <listitem>
+          <para>Displays the <tag>funcprototype</tag> in ANSI style</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refparameter>
+  <refsee role="params">
+    <para><parameter>funcsynopsis.style</parameter></para>
+  </refsee>
+</doc:pi>
+<xsl:template name="pi.dbman_funcsynopsis-style">
+  <xsl:param name="node" select="."/>
+  <xsl:call-template name="pi-attribute">
+    <xsl:with-param name="pis" select="$node/processing-instruction('dbman')"/>
+    <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
+  </xsl:call-template>
+</xsl:template>
+
+</xsl:stylesheet>