1
0

pi.xsl 3.1 KB

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