]> git.stg.codes - stg.git/blob - doc/xslt/manpages/pi.xsl
Merge remote-tracking branch 'origin/ticket42' into stg-2.409
[stg.git] / doc / xslt / manpages / pi.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4                 xmlns:xlink="http://www.w3.org/1999/xlink"
5                 exclude-result-prefixes="doc"
6                 version='1.0'>
7
8 <!-- ********************************************************************
9      $Id: pi.xsl 7644 2008-01-16 11:04:07Z xmldoc $
10      ********************************************************************
11
12      This file is part of the XSL DocBook Stylesheet distribution.
13      See ../README or http://docbook.sf.net/release/xsl/current/ for
14      copyright and other information.
15
16      ******************************************************************** -->
17
18 <doc:reference xmlns=""><info><title>manpages Processing Instruction Reference</title>
19     <releaseinfo role="meta">
20       $Id: pi.xsl 7644 2008-01-16 11:04:07Z xmldoc $
21     </releaseinfo>
22   </info>
23   <partintro xml:id="partintro">
24     <title>Introduction</title>
25     <para>This is generated reference documentation for all
26       user-specifiable processing instructions (PIs) in the DocBook
27       XSL stylesheets for manpages output.
28       <note>
29         <para>You add these PIs at particular points in a document to
30           cause specific “exceptions” to formatting/output behavior. To
31           make global changes in formatting/output behavior across an
32           entire document, it’s better to do it by setting an
33           appropriate stylesheet parameter (if there is one).</para>
34       </note>
35     </para>
36   </partintro>
37 </doc:reference>
38
39 <!-- ==================================================================== -->
40
41 <doc:pi name="dbman_funcsynopsis-style" xmlns="">
42   <refpurpose>Specifies presentation style for a funcsynopsis.</refpurpose>
43   <refdescription>
44     <para>Use the <tag class="xmlpi">dbman
45         funcsynopsis-style</tag> PI as a child of a
46       <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
47       to control the presentation style for output of all
48       <tag>funcprototype</tag> instances within that funcsynopsis.</para>
49   </refdescription>
50   <refsynopsisdiv>
51     <synopsis><tag class="xmlpi">dbman funcsynopsis-style="kr"|"ansi"</tag></synopsis>
52   </refsynopsisdiv>
53   <refparameter>
54     <variablelist>
55       <varlistentry><term>funcsynopsis-style="kr"</term>
56         <listitem>
57           <para>Displays the <tag>funcprototype</tag> in K&amp;R style</para>
58         </listitem>
59       </varlistentry>
60       <varlistentry><term>funcsynopsis-style="ansi"</term>
61         <listitem>
62           <para>Displays the <tag>funcprototype</tag> in ANSI style</para>
63         </listitem>
64       </varlistentry>
65     </variablelist>
66   </refparameter>
67   <refsee role="params">
68     <para><parameter>man.funcsynopsis.style</parameter></para>
69   </refsee>
70 </doc:pi>
71 <xsl:template name="pi.dbman_funcsynopsis-style">
72   <xsl:param name="node" select="."/>
73   <xsl:call-template name="pi-attribute">
74     <xsl:with-param name="pis" select="$node/processing-instruction('dbman')"/>
75     <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
76   </xsl:call-template>
77 </xsl:template>
78
79 </xsl:stylesheet>