Showing:

Documentation
Parameters
Used by
References
Included from
Source
Stylesheet synop.xsl
Documentation

Description

This file was created automatically by html2xhtml
from the HTML stylesheets.
Included from
Template d:cmdsynopsis
Documentation

Description

 ********************************************************************
     $Id$
     ********************************************************************

     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.

     ******************************************************************** 
 ==================================================================== 
 synopsis is in verbatim 
 ==================================================================== 
Namespace No namespace
Match d:cmdsynopsis
Mode #default
References
Template anchor
Import precedence 0
Source
<xsl:template match="d:cmdsynopsis">
  <div>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <p>
      <xsl:if test="..//processing-instruction('dbcmdlist')">
        <!-- * Placing a dbcmdlist PI as a child of a particular element -->
        <!-- * creates a hyperlinked list of all cmdsynopsis instances -->
        <!-- * that are descendants of that element; so for any -->
        <!-- * cmdsynopsis that is a descendant of an element containing -->
        <!-- * a dbcmdlist PI, we need to output an a@id instance so that -->
        <!-- * we will have something to link to -->
        <xsl:call-template name="anchor">
          <xsl:with-param name="conditional" select="0"/>
        </xsl:call-template>
      </xsl:if>
      <xsl:apply-templates/>
    </p>
  </div>
</xsl:template>
Template d:cmdsynopsis/d:command
Namespace No namespace
Match d:cmdsynopsis/d:command
Mode #default
References
Template inline.monoseq
Import precedence 0
Source
<xsl:template match="d:cmdsynopsis/d:command">
  <br/>
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>
Template d:cmdsynopsis/d:command[1]
Namespace No namespace
Match d:cmdsynopsis/d:command[1]
Mode #default
References
Template inline.monoseq
Import precedence 0
Priority 2
Source
<xsl:template match="d:cmdsynopsis/d:command[1]" priority="2">
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>
Template d:group|d:arggroup-or-arg
Namespace No namespace
Match d:group|d:arg
Mode #default
Used by
Template d:group/d:arg
References
Import precedence 0
Source
<xsl:template match="d:group|d:arg" name="group-or-arg">
  <xsl:variable name="choice" select="@choice"/>
  <xsl:variable name="rep" select="@rep"/>
  <xsl:variable name="sepchar">
    <xsl:choose>
      <xsl:when test="ancestor-or-self::*/@sepchar">
        <xsl:value-of select="ancestor-or-self::*/@sepchar"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text> </xsl:text>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:if test="preceding-sibling::*">
    <xsl:value-of select="$sepchar"/>
  </xsl:if>
  <xsl:choose>
    <xsl:when test="$choice='plain'">
      <xsl:value-of select="$arg.choice.plain.open.str"/>
    </xsl:when>
    <xsl:when test="$choice='req'">
      <xsl:value-of select="$arg.choice.req.open.str"/>
    </xsl:when>
    <xsl:when test="$choice='opt'">
      <xsl:value-of select="$arg.choice.opt.open.str"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$arg.choice.def.open.str"/>
    </xsl:otherwise>
  </xsl:choose>
  <xsl:apply-templates/>
  <xsl:choose>
    <xsl:when test="$rep='repeat'">
      <xsl:value-of select="$arg.rep.repeat.str"/>
    </xsl:when>
    <xsl:when test="$rep='norepeat'">
      <xsl:value-of select="$arg.rep.norepeat.str"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$arg.rep.def.str"/>
    </xsl:otherwise>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test="$choice='plain'">
      <xsl:value-of select="$arg.choice.plain.close.str"/>
    </xsl:when>
    <xsl:when test="$choice='req'">
      <xsl:value-of select="$arg.choice.req.close.str"/>
    </xsl:when>
    <xsl:when test="$choice='opt'">
      <xsl:value-of select="$arg.choice.opt.close.str"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$arg.choice.def.close.str"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:group/d:arg
Namespace No namespace
Match d:group/d:arg
Mode #default
References
Variable arg.or.sep
Template group-or-arg
Import precedence 0
Source
<xsl:template match="d:group/d:arg">
  <xsl:variable name="choice" select="@choice"/>
  <xsl:variable name="rep" select="@rep"/>
  <xsl:if test="preceding-sibling::*">
    <xsl:value-of select="$arg.or.sep"/>
  </xsl:if>
  <xsl:call-template name="group-or-arg"/>
</xsl:template>
Template d:sbr
Namespace No namespace
Match d:sbr
Mode #default
Import precedence 0
Source
<xsl:template match="d:sbr">
  <br/>
</xsl:template>
Template d:synopfragmentref
Documentation

Description

 ==================================================================== 
Namespace No namespace
Match d:synopfragmentref
Mode #default
References
Key id
Import precedence 0
Source
<xsl:template match="d:synopfragmentref">
  <xsl:variable name="target" select="key('id',@linkend)"/>
  <xsl:variable name="snum">
    <xsl:apply-templates select="$target" mode="synopfragment.number"/>
  </xsl:variable>
  <i>
    <a href="#{@linkend}">
      <xsl:text>(</xsl:text>
      <xsl:value-of select="$snum"/>
      <xsl:text>)</xsl:text>
    </a>
    <xsl:text> </xsl:text>
    <xsl:apply-templates/>
  </i>
</xsl:template>
Template d:synopfragmentsynopfragment.number
Namespace No namespace
Match d:synopfragment
Mode synopfragment.number
Import precedence 0
Source
<xsl:template match="d:synopfragment" mode="synopfragment.number">
  <xsl:number format="1"/>
</xsl:template>
Template d:synopfragment
Namespace No namespace
Match d:synopfragment
Mode #default
References
Template object.id
Import precedence 0
Source
<xsl:template match="d:synopfragment">
  <xsl:variable name="snum">
    <xsl:apply-templates select="." mode="synopfragment.number"/>
  </xsl:variable>
  <!-- You can't introduce another <p> here, because you're 
       already in a <p> from cmdsynopsis-->
  <span>
    <xsl:variable name="id">
      <xsl:call-template name="object.id"/>
    </xsl:variable>
    <a id="{$id}">
      <xsl:text>(</xsl:text>
      <xsl:value-of select="$snum"/>
      <xsl:text>)</xsl:text>
    </a>
    <xsl:text> </xsl:text>
    <xsl:apply-templates/>
  </span>
</xsl:template>
Template d:funcsynopsis
Namespace No namespace
Match d:funcsynopsis
Mode #default
References
Templates anchor; informal.object
Import precedence 0
Source
<xsl:template match="d:funcsynopsis">
  <xsl:if test="..//processing-instruction('dbfunclist')">
    <!-- * Placing a dbfunclist PI as a child of a particular element -->
    <!-- * creates a hyperlinked list of all funcsynopsis instances that -->
    <!-- * are descendants of that element; so for any funcsynopsis that is -->
    <!-- * a descendant of an element containing a dbfunclist PI, we need -->
    <!-- * to output an a@id instance so that we will have something to -->
    <!-- * link to -->
    <xsl:call-template name="anchor">
      <xsl:with-param name="conditional" select="0"/>
    </xsl:call-template>
  </xsl:if>
  <xsl:call-template name="informal.object"/>
</xsl:template>
Template d:funcsynopsisinfo
Namespace No namespace
Match d:funcsynopsisinfo
Mode #default
Import precedence 0
Source
<xsl:template match="d:funcsynopsisinfo">
  <pre>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates/>
  </pre>
</xsl:template>
Template d:funcprototype
Documentation

Description

 ====================================================================== 
 funcprototype 

funcprototype ::= (funcdef,
                   (void|varargs|paramdef+))

funcdef       ::= (#PCDATA|type|replaceable|function)*

paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
Namespace No namespace
Match d:funcprototype
Mode #default
References
Import precedence 0
Source
<xsl:template match="d:funcprototype">
  <xsl:variable name="html-style">
    <xsl:call-template name="pi.dbhtml_funcsynopsis-style">
      <xsl:with-param name="node" select="ancestor::d:funcsynopsis/descendant-or-self::*"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="style">
    <xsl:choose>
      <xsl:when test="$html-style != ''">
        <xsl:value-of select="$html-style"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$funcsynopsis.style"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <!-- * 2008-02-17. the code no longer relies on the funcsynopsis.tabular.threshold -->
  <!-- * param at all (the stuff below has been commented out since mid -->
  <!-- * 2006), so I completely removed the funcsynopsis.tabular.threshold param -->
  <!-- * .. MikeSmith -->
  <!--
  <xsl:variable name="tabular-p"
                select="$funcsynopsis.tabular.threshold &gt; 0
                        and string-length(.) &gt; $funcsynopsis.tabular.threshold"/>
-->
  <xsl:variable name="tabular-p" select="true()"/>
  <xsl:choose>
    <xsl:when test="$style = 'kr' and $tabular-p">
      <xsl:apply-templates select="." mode="kr-tabular"/>
    </xsl:when>
    <xsl:when test="$style = 'kr'">
      <xsl:apply-templates select="." mode="kr-nontabular"/>
    </xsl:when>
    <xsl:when test="$style = 'ansi' and $tabular-p">
      <xsl:apply-templates select="." mode="ansi-tabular"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates select="." mode="ansi-nontabular"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:funcprototypekr-nontabular
Documentation

Description

 ====================================================================== 
 funcprototype: kr, non-tabular 
Namespace No namespace
Match d:funcprototype
Mode kr-nontabular
Import precedence 0
Source
<xsl:template match="d:funcprototype" mode="kr-nontabular">
  <p>
    <xsl:apply-templates mode="kr-nontabular"/>
    <xsl:if test="d:paramdef">
      <br/>
      <xsl:apply-templates select="d:paramdef" mode="kr-funcsynopsis-mode"/>
    </xsl:if>
  </p>
</xsl:template>
Template d:funcdefkr-nontabular
Namespace No namespace
Match d:funcdef
Mode kr-nontabular
Import precedence 0
Source
<xsl:template match="d:funcdef" mode="kr-nontabular">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="kr-nontabular"/>
    <xsl:text>(</xsl:text>
  </code>
</xsl:template>
Template d:funcdef/d:functionkr-nontabular
Namespace No namespace
Match d:funcdef/d:function
Mode kr-nontabular
References
Import precedence 0
Source
<xsl:template match="d:funcdef/d:function" mode="kr-nontabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <b class="fsfunc">
        <xsl:apply-templates mode="kr-nontabular"/>
      </b>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates mode="kr-nontabular"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:voidkr-nontabular
Namespace No namespace
Match d:void
Mode kr-nontabular
Import precedence 0
Source
<xsl:template match="d:void" mode="kr-nontabular">
  <code>)</code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:varargskr-nontabular
Namespace No namespace
Match d:varargs
Mode kr-nontabular
Import precedence 0
Source
<xsl:template match="d:varargs" mode="kr-nontabular">
  <xsl:text>...</xsl:text>
  <code>)</code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:paramdefkr-nontabular
Namespace No namespace
Match d:paramdef
Mode kr-nontabular
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="kr-nontabular">
  <xsl:apply-templates select="d:parameter" mode="kr-nontabular"/>
  <xsl:choose>
    <xsl:when test="following-sibling::*">
      <xsl:text>, </xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <code>)</code>
      <xsl:text>;</xsl:text>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:paramdef/d:parameterkr-nontabular
Namespace No namespace
Match d:paramdef/d:parameter
Mode kr-nontabular
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="kr-nontabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="kr-nontabular"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="kr-nontabular"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:paramdefkr-funcsynopsis-mode
Namespace No namespace
Match d:paramdef
Mode kr-funcsynopsis-mode
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="kr-funcsynopsis-mode">
  <xsl:if test="preceding-sibling::d:paramdef">
    <br/>
  </xsl:if>
  <code>
    <xsl:apply-templates mode="kr-funcsynopsis-mode"/>
  </code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:paramdef/d:parameterkr-funcsynopsis-mode
Namespace No namespace
Match d:paramdef/d:parameter
Mode kr-funcsynopsis-mode
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="kr-funcsynopsis-mode">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="kr-funcsynopsis-mode"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="kr-funcsynopsis-mode"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:funcparamskr-funcsynopsis-mode
Namespace No namespace
Match d:funcparams
Mode kr-funcsynopsis-mode
Import precedence 0
Source
<xsl:template match="d:funcparams" mode="kr-funcsynopsis-mode">
  <code>(</code>
  <xsl:apply-templates mode="kr-funcsynopsis-mode"/>
  <code>)</code>
</xsl:template>
Template d:funcprototypekr-tabular
Documentation

Description

 ====================================================================== 
 funcprototype: kr, tabular 
Namespace No namespace
Match d:funcprototype
Mode kr-tabular
Import precedence 0
Source
<xsl:template match="d:funcprototype" mode="kr-tabular">
  <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
    <tr>
      <td>
        <xsl:apply-templates select="d:funcdef" mode="kr-tabular"/>
      </td>
      <xsl:apply-templates select="(d:void|d:varargs|d:paramdef)[1]" mode="kr-tabular"/>
    </tr>
    <xsl:for-each select="(d:void|d:varargs|d:paramdef)[preceding-sibling::*[not(self::d:funcdef)]]">
      <tr>
        <td> </td>
        <xsl:apply-templates select="." mode="kr-tabular"/>
      </tr>
    </xsl:for-each>
  </table>
  <xsl:if test="d:paramdef">
    <div class="paramdef-list">
      <xsl:apply-templates select="d:paramdef" mode="kr-funcsynopsis-mode"/>
    </div>
  </xsl:if>
  <div class="funcprototype-spacer"> </div>
  <!-- hACk: blank div for vertical spacing -->
</xsl:template>
Template d:funcdefkr-tabular
Namespace No namespace
Match d:funcdef
Mode kr-tabular
Import precedence 0
Source
<xsl:template match="d:funcdef" mode="kr-tabular">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="kr-tabular"/>
    <xsl:text>(</xsl:text>
  </code>
</xsl:template>
Template d:funcdef/d:functionkr-tabular
Namespace No namespace
Match d:funcdef/d:function
Mode kr-tabular
References
Import precedence 0
Source
<xsl:template match="d:funcdef/d:function" mode="kr-tabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <b class="fsfunc">
        <xsl:apply-templates mode="kr-nontabular"/>
      </b>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates mode="kr-tabular"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:voidkr-tabular
Namespace No namespace
Match d:void
Mode kr-tabular
Import precedence 0
Source
<xsl:template match="d:void" mode="kr-tabular">
  <td>
    <code>)</code>
    <xsl:text>;</xsl:text>
  </td>
  <td> </td>
</xsl:template>
Template d:varargskr-tabular
Namespace No namespace
Match d:varargs
Mode kr-tabular
Import precedence 0
Source
<xsl:template match="d:varargs" mode="kr-tabular">
  <td>
    <xsl:text>...</xsl:text>
    <code>)</code>
    <xsl:text>;</xsl:text>
  </td>
  <td> </td>
</xsl:template>
Template d:paramdefkr-tabular
Namespace No namespace
Match d:paramdef
Mode kr-tabular
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="kr-tabular">
  <td>
    <xsl:apply-templates select="d:parameter" mode="kr-tabular"/>
    <xsl:choose>
      <xsl:when test="following-sibling::*">
        <xsl:text>, </xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <code>)</code>
        <xsl:text>;</xsl:text>
      </xsl:otherwise>
    </xsl:choose>
  </td>
  <td> </td>
</xsl:template>
Template d:paramdef/d:parameterkr-tabular
Namespace No namespace
Match d:paramdef/d:parameter
Mode kr-tabular
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="kr-tabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="kr-tabular"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="kr-tabular"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:paramdefkr-tabular-funcsynopsis-mode
Namespace No namespace
Match d:paramdef
Mode kr-tabular-funcsynopsis-mode
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="kr-tabular-funcsynopsis-mode">
  <xsl:variable name="type">
    <xsl:choose>
      <xsl:when test="d:type">
        <xsl:apply-templates select="d:type" mode="kr-tabular-funcsynopsis-mode"/>
      </xsl:when>
      <xsl:when test="normalize-space(d:parameter/preceding-sibling::node()[not(self::d:parameter)]) != ''">
        <xsl:copy-of select="d:parameter/preceding-sibling::node()[not(self::d:parameter)]"/>
      </xsl:when>
    </xsl:choose>
  </xsl:variable>
  <tr>
    <xsl:choose>
      <xsl:when test="$type != '' and d:funcparams">
        <td>
          <code>
            <xsl:copy-of select="$type"/>
          </code>
          <xsl:text> </xsl:text>
        </td>
        <td>
          <code>
            <xsl:choose>
              <xsl:when test="d:type">
                <xsl:apply-templates select="d:type/following-sibling::*" mode="kr-tabular-funcsynopsis-mode"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:apply-templates select="*" mode="kr-tabular-funcsynopsis-mode"/>
              </xsl:otherwise>
            </xsl:choose>
          </code>
        </td>
      </xsl:when>
      <xsl:when test="d:funcparams">
        <td colspan="2">
          <code>
            <xsl:apply-templates mode="kr-tabular-funcsynopsis-mode"/>
          </code>
        </td>
      </xsl:when>
      <xsl:otherwise>
        <td>
          <code>
            <xsl:apply-templates select="d:parameter/preceding-sibling::node()[not(self::d:parameter)]" mode="kr-tabular-funcsynopsis-mode"/>
          </code>
          <xsl:text> </xsl:text>
        </td>
        <td>
          <code>
            <xsl:apply-templates select="d:parameter" mode="kr-tabular"/>
            <xsl:apply-templates select="d:parameter/following-sibling::*[not(self::d:parameter)]" mode="kr-tabular-funcsynopsis-mode"/>
            <xsl:text>;</xsl:text>
          </code>
        </td>
      </xsl:otherwise>
    </xsl:choose>
  </tr>
</xsl:template>
Template d:paramdef/d:parameterkr-tabular-funcsynopsis-mode
Namespace No namespace
Match d:paramdef/d:parameter
Mode kr-tabular-funcsynopsis-mode
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="kr-tabular-funcsynopsis-mode">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="kr-tabular-funcsynopsis-mode"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="kr-tabular-funcsynopsis-mode"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:funcparamskr-tabular-funcsynopsis-mode
Namespace No namespace
Match d:funcparams
Mode kr-tabular-funcsynopsis-mode
Import precedence 0
Source
<xsl:template match="d:funcparams" mode="kr-tabular-funcsynopsis-mode">
  <code>(</code>
  <xsl:apply-templates mode="kr-tabular-funcsynopsis-mode"/>
  <code>)</code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:funcprototypeansi-nontabular
Documentation

Description

 ====================================================================== 
 funcprototype: ansi, non-tabular 
Namespace No namespace
Match d:funcprototype
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:funcprototype" mode="ansi-nontabular">
  <p>
    <xsl:apply-templates mode="ansi-nontabular"/>
  </p>
</xsl:template>
Template d:funcdefansi-nontabular
Namespace No namespace
Match d:funcdef
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:funcdef" mode="ansi-nontabular">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="ansi-nontabular"/>
    <xsl:text>(</xsl:text>
  </code>
</xsl:template>
Template d:funcdef/d:functionansi-nontabular
Namespace No namespace
Match d:funcdef/d:function
Mode ansi-nontabular
References
Import precedence 0
Source
<xsl:template match="d:funcdef/d:function" mode="ansi-nontabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <b class="fsfunc">
        <xsl:apply-templates mode="ansi-nontabular"/>
      </b>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates mode="ansi-nontabular"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:voidansi-nontabular
Namespace No namespace
Match d:void
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:void" mode="ansi-nontabular">
  <code>void)</code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:varargsansi-nontabular
Namespace No namespace
Match d:varargs
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:varargs" mode="ansi-nontabular">
  <xsl:text>...</xsl:text>
  <code>)</code>
  <xsl:text>;</xsl:text>
</xsl:template>
Template d:paramdefansi-nontabular
Namespace No namespace
Match d:paramdef
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="ansi-nontabular">
  <xsl:apply-templates mode="ansi-nontabular"/>
  <xsl:choose>
    <xsl:when test="following-sibling::*">
      <xsl:text>, </xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <code>)</code>
      <xsl:text>;</xsl:text>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:paramdef/d:parameteransi-nontabular
Namespace No namespace
Match d:paramdef/d:parameter
Mode ansi-nontabular
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="ansi-nontabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="ansi-nontabular"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="ansi-nontabular"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:funcparamsansi-nontabular
Namespace No namespace
Match d:funcparams
Mode ansi-nontabular
Import precedence 0
Source
<xsl:template match="d:funcparams" mode="ansi-nontabular">
  <code>(</code>
  <xsl:apply-templates mode="ansi-nontabular"/>
  <code>)</code>
</xsl:template>
Template d:funcprototypeansi-tabular
Documentation

Description

 ====================================================================== 
 funcprototype: ansi, tabular 
Namespace No namespace
Match d:funcprototype
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:funcprototype" mode="ansi-tabular">
  <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
    <tr>
      <td>
        <xsl:apply-templates select="d:funcdef" mode="ansi-tabular"/>
      </td>
      <xsl:apply-templates select="(d:void|d:varargs|d:paramdef)[1]" mode="ansi-tabular"/>
    </tr>
    <xsl:for-each select="(d:void|d:varargs|d:paramdef)[preceding-sibling::*[not(self::d:funcdef)]]">
      <tr>
        <td> </td>
        <xsl:apply-templates select="." mode="ansi-tabular"/>
      </tr>
    </xsl:for-each>
  </table>
  <div class="funcprototype-spacer"> </div>
  <!-- hACk: blank div for vertical spacing -->
</xsl:template>
Template d:funcdefansi-tabular
Namespace No namespace
Match d:funcdef
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:funcdef" mode="ansi-tabular">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="ansi-tabular"/>
    <xsl:text>(</xsl:text>
  </code>
</xsl:template>
Template d:funcdef/d:functionansi-tabular
Namespace No namespace
Match d:funcdef/d:function
Mode ansi-tabular
References
Import precedence 0
Source
<xsl:template match="d:funcdef/d:function" mode="ansi-tabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <b class="fsfunc">
        <xsl:apply-templates mode="ansi-nontabular"/>
      </b>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates mode="kr-tabular"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:voidansi-tabular
Namespace No namespace
Match d:void
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:void" mode="ansi-tabular">
  <td>
    <code>void)</code>
    <xsl:text>;</xsl:text>
  </td>
  <td> </td>
</xsl:template>
Template d:varargsansi-tabular
Namespace No namespace
Match d:varargs
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:varargs" mode="ansi-tabular">
  <td>
    <xsl:text>...</xsl:text>
    <code>)</code>
    <xsl:text>;</xsl:text>
  </td>
  <td> </td>
</xsl:template>
Template d:paramdefansi-tabular
Namespace No namespace
Match d:paramdef
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:paramdef" mode="ansi-tabular">
  <td>
    <xsl:apply-templates mode="ansi-tabular"/>
    <xsl:choose>
      <xsl:when test="following-sibling::*">
        <xsl:text>, </xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <code>)</code>
        <xsl:text>;</xsl:text>
      </xsl:otherwise>
    </xsl:choose>
  </td>
</xsl:template>
Template d:paramdef/d:parameteransi-tabular
Namespace No namespace
Match d:paramdef/d:parameter
Mode ansi-tabular
References
Import precedence 0
Source
<xsl:template match="d:paramdef/d:parameter" mode="ansi-tabular">
  <xsl:choose>
    <xsl:when test="$funcsynopsis.decoration != 0">
      <var class="pdparam">
        <xsl:apply-templates mode="ansi-tabular"/>
      </var>
    </xsl:when>
    <xsl:otherwise>
      <code>
        <xsl:apply-templates mode="ansi-tabular"/>
      </code>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template d:funcparamsansi-tabular
Namespace No namespace
Match d:funcparams
Mode ansi-tabular
Import precedence 0
Source
<xsl:template match="d:funcparams" mode="ansi-tabular">
  <code>(</code>
  <xsl:apply-templates/>
  <code>)</code>
</xsl:template>
Template d:classsynopsis |d:fieldsynopsis |d:methodsynopsis |d:constructorsynopsis |d:destructorsynopsis
Namespace No namespace
Match d:classsynopsis |d:fieldsynopsis |d:methodsynopsis |d:constructorsynopsis |d:destructorsynopsis
Mode #default
References
Parameters
QName Namespace
language No namespace
Import precedence 0
Source
<xsl:template match="d:classsynopsis                      |d:fieldsynopsis                      |d:methodsynopsis                      |d:constructorsynopsis                      |d:destructorsynopsis">
  <xsl:param name="language">
    <xsl:choose>
      <xsl:when test="@language">
        <xsl:value-of select="@language"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$default-classsynopsis-language"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:choose>
    <xsl:when test="$language='java' or $language='Java'">
      <xsl:apply-templates select="." mode="java"/>
    </xsl:when>
    <xsl:when test="$language='perl' or $language='Perl'">
      <xsl:apply-templates select="." mode="perl"/>
    </xsl:when>
    <xsl:when test="$language='idl' or $language='IDL'">
      <xsl:apply-templates select="." mode="idl"/>
    </xsl:when>
    <xsl:when test="$language='cpp' or $language='c++' or $language='C++'">
      <xsl:apply-templates select="." mode="cpp"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message>
        <xsl:text>Unrecognized language on </xsl:text>
        <xsl:value-of select="local-name(.)"/>
        <xsl:text>: </xsl:text>
        <xsl:value-of select="$language"/>
      </xsl:message>
      <xsl:apply-templates select=".">
        <xsl:with-param name="language" select="$default-classsynopsis-language"/>
      </xsl:apply-templates>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template synop-break
Namespace No namespace
Used by
Import precedence 0
Source
<xsl:template name="synop-break">
  <xsl:if test="parent::d:classsynopsis                 or (following-sibling::d:fieldsynopsis                     |following-sibling::d:methodsynopsis                     |following-sibling::d:constructorsynopsis                     |following-sibling::d:destructorsynopsis)">
    <br/>
  </xsl:if>
</xsl:template>
Template d:classsynopsisjava
Documentation

Description

 ===== Java ======================================================== 
Namespace No namespace
Match d:classsynopsis
Mode java
Import precedence 0
Source
<xsl:template match="d:classsynopsis" mode="java">
  <pre>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates select="d:ooclass[1]" mode="java"/>
    <xsl:if test="d:ooclass[preceding-sibling::*]">
      <xsl:text> extends</xsl:text>
      <xsl:apply-templates select="d:ooclass[preceding-sibling::*]" mode="java"/>
      <xsl:if test="d:oointerface|d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:oointerface">
      <xsl:text>implements</xsl:text>
      <xsl:apply-templates select="d:oointerface" mode="java"/>
      <xsl:if test="d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:ooexception">
      <xsl:text>throws</xsl:text>
      <xsl:apply-templates select="d:ooexception" mode="java"/>
    </xsl:if>
    <xsl:text> {</xsl:text>
    <br/>
    <xsl:apply-templates select="d:constructorsynopsis                                  |d:destructorsynopsis                                  |d:fieldsynopsis                                  |d:methodsynopsis                                  |d:classsynopsisinfo" mode="java"/>
    <xsl:text>}</xsl:text>
  </pre>
</xsl:template>
Template d:classsynopsisinfojava
Namespace No namespace
Match d:classsynopsisinfo
Mode java
Import precedence 0
Source
<xsl:template match="d:classsynopsisinfo" mode="java">
  <xsl:apply-templates mode="java"/>
</xsl:template>
Template d:ooclass|d:oointerface|d:ooexceptionjava
Namespace No namespace
Match d:ooclass|d:oointerface|d:ooexception
Mode java
Import precedence 0
Source
<xsl:template match="d:ooclass|d:oointerface|d:ooexception" mode="java">
  <xsl:choose>
    <xsl:when test="preceding-sibling::*">
      <xsl:text>, </xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text> </xsl:text>
    </xsl:otherwise>
  </xsl:choose>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:modifier|d:packagejava
Namespace No namespace
Match d:modifier|d:package
Mode java
Import precedence 0
Source
<xsl:template match="d:modifier|d:package" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
    <xsl:if test="following-sibling::*">
      <xsl:text> </xsl:text>
    </xsl:if>
  </span>
</xsl:template>
Template d:classnamejava
Namespace No namespace
Match d:classname
Mode java
Import precedence 0
Source
<xsl:template match="d:classname" mode="java">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:interfacenamejava
Namespace No namespace
Match d:interfacename
Mode java
Import precedence 0
Source
<xsl:template match="d:interfacename" mode="java">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:exceptionnamejava
Namespace No namespace
Match d:exceptionname
Mode java
Import precedence 0
Source
<xsl:template match="d:exceptionname" mode="java">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:fieldsynopsisjava
Namespace No namespace
Match d:fieldsynopsis
Mode java
References
Template synop-break
Import precedence 0
Source
<xsl:template match="d:fieldsynopsis" mode="java">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates mode="java"/>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:typejava
Namespace No namespace
Match d:type
Mode java
Import precedence 0
Source
<xsl:template match="d:type" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:varnamejava
Namespace No namespace
Match d:varname
Mode java
Import precedence 0
Source
<xsl:template match="d:varname" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:initializerjava
Namespace No namespace
Match d:initializer
Mode java
Import precedence 0
Source
<xsl:template match="d:initializer" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text></xsl:text>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:voidjava
Namespace No namespace
Match d:void
Mode java
Import precedence 0
Source
<xsl:template match="d:void" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>void </xsl:text>
  </span>
</xsl:template>
Template d:methodnamejava
Namespace No namespace
Match d:methodname
Mode java
Import precedence 0
Source
<xsl:template match="d:methodname" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:methodparamjava
Namespace No namespace
Match d:methodparam
Mode java
References
Template copy-string
Parameters
QName Namespace
indent No namespace
Import precedence 0
Source
<xsl:template match="d:methodparam" mode="java">
  <xsl:param name="indent">0</xsl:param>
  <xsl:if test="preceding-sibling::d:methodparam">
    <xsl:text>,</xsl:text>
    <br/>
    <xsl:if test="$indent > 0">
      <xsl:call-template name="copy-string">
        <xsl:with-param name="string"> </xsl:with-param>
        <xsl:with-param name="count" select="$indent + 1"/>
      </xsl:call-template>
    </xsl:if>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:parameterjava
Namespace No namespace
Match d:parameter
Mode java
Import precedence 0
Source
<xsl:template match="d:parameter" mode="java">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="java"/>
  </span>
</xsl:template>
Template d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsisjava
Namespace No namespace
Match d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis
Mode java
References
Template synop-break
Import precedence 0
Source
<xsl:template mode="java" match="d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis">
  <xsl:variable name="start-modifiers" select="d:modifier[following-sibling::*[local-name(.) != 'modifier']]"/>
  <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
  <xsl:variable name="end-modifiers" select="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
  <xsl:variable name="decl">
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates select="$start-modifiers" mode="java"/>
    <!-- type -->
    <xsl:if test="local-name($notmod[1]) != 'methodname'">
      <xsl:apply-templates select="$notmod[1]" mode="java"/>
    </xsl:if>
    <xsl:apply-templates select="d:methodname" mode="java"/>
  </xsl:variable>
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:copy-of select="$decl"/>
    <xsl:text>(</xsl:text>
    <xsl:apply-templates select="d:methodparam" mode="java">
      <xsl:with-param name="indent" select="string-length($decl)"/>
    </xsl:apply-templates>
    <xsl:text>)</xsl:text>
    <xsl:if test="d:exceptionname">
      <br/>
      <xsl:text>    throws </xsl:text>
      <xsl:apply-templates select="d:exceptionname" mode="java"/>
    </xsl:if>
    <xsl:if test="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]">
      <xsl:text> </xsl:text>
      <xsl:apply-templates select="$end-modifiers" mode="java"/>
    </xsl:if>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:classsynopsiscpp
Documentation

Description

 ===== C++ ========================================================= 
Namespace No namespace
Match d:classsynopsis
Mode cpp
Import precedence 0
Source
<xsl:template match="d:classsynopsis" mode="cpp">
  <pre>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates select="d:ooclass[1]" mode="cpp"/>
    <xsl:if test="d:ooclass[preceding-sibling::*]">
      <xsl:text>: </xsl:text>
      <xsl:apply-templates select="d:ooclass[preceding-sibling::*]" mode="cpp"/>
      <xsl:if test="d:oointerface|d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:oointerface">
      <xsl:text> implements</xsl:text>
      <xsl:apply-templates select="d:oointerface" mode="cpp"/>
      <xsl:if test="d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:ooexception">
      <xsl:text> throws</xsl:text>
      <xsl:apply-templates select="d:ooexception" mode="cpp"/>
    </xsl:if>
    <xsl:text> {</xsl:text>
    <br/>
    <xsl:apply-templates select="d:constructorsynopsis                                  |d:destructorsynopsis                                  |d:fieldsynopsis                                  |d:methodsynopsis                                  |d:classsynopsisinfo" mode="cpp"/>
    <xsl:text>}</xsl:text>
  </pre>
</xsl:template>
Template d:classsynopsisinfocpp
Namespace No namespace
Match d:classsynopsisinfo
Mode cpp
Import precedence 0
Source
<xsl:template match="d:classsynopsisinfo" mode="cpp">
  <xsl:apply-templates mode="cpp"/>
</xsl:template>
Template d:ooclass|d:oointerface|d:ooexceptioncpp
Namespace No namespace
Match d:ooclass|d:oointerface|d:ooexception
Mode cpp
Import precedence 0
Source
<xsl:template match="d:ooclass|d:oointerface|d:ooexception" mode="cpp">
  <xsl:if test="preceding-sibling::*">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:modifier|d:packagecpp
Namespace No namespace
Match d:modifier|d:package
Mode cpp
Import precedence 0
Source
<xsl:template match="d:modifier|d:package" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
    <xsl:if test="following-sibling::*">
      <xsl:text> </xsl:text>
    </xsl:if>
  </span>
</xsl:template>
Template d:classnamecpp
Namespace No namespace
Match d:classname
Mode cpp
Import precedence 0
Source
<xsl:template match="d:classname" mode="cpp">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:interfacenamecpp
Namespace No namespace
Match d:interfacename
Mode cpp
Import precedence 0
Source
<xsl:template match="d:interfacename" mode="cpp">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:exceptionnamecpp
Namespace No namespace
Match d:exceptionname
Mode cpp
Import precedence 0
Source
<xsl:template match="d:exceptionname" mode="cpp">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:fieldsynopsiscpp
Namespace No namespace
Match d:fieldsynopsis
Mode cpp
References
Template synop-break
Import precedence 0
Source
<xsl:template match="d:fieldsynopsis" mode="cpp">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates mode="cpp"/>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:typecpp
Namespace No namespace
Match d:type
Mode cpp
Import precedence 0
Source
<xsl:template match="d:type" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:varnamecpp
Namespace No namespace
Match d:varname
Mode cpp
Import precedence 0
Source
<xsl:template match="d:varname" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:initializercpp
Namespace No namespace
Match d:initializer
Mode cpp
Import precedence 0
Source
<xsl:template match="d:initializer" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text></xsl:text>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:voidcpp
Namespace No namespace
Match d:void
Mode cpp
Import precedence 0
Source
<xsl:template match="d:void" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>void </xsl:text>
  </span>
</xsl:template>
Template d:methodnamecpp
Namespace No namespace
Match d:methodname
Mode cpp
Import precedence 0
Source
<xsl:template match="d:methodname" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:methodparamcpp
Namespace No namespace
Match d:methodparam
Mode cpp
Import precedence 0
Source
<xsl:template match="d:methodparam" mode="cpp">
  <xsl:if test="preceding-sibling::d:methodparam">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:parametercpp
Namespace No namespace
Match d:parameter
Mode cpp
Import precedence 0
Source
<xsl:template match="d:parameter" mode="cpp">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="cpp"/>
  </span>
</xsl:template>
Template d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsiscpp
Namespace No namespace
Match d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis
Mode cpp
References
Template synop-break
Import precedence 0
Source
<xsl:template mode="cpp" match="d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis">
  <xsl:variable name="start-modifiers" select="d:modifier[following-sibling::*[local-name(.) != 'modifier']]"/>
  <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
  <xsl:variable name="end-modifiers" select="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates select="$start-modifiers" mode="cpp"/>
    <!-- type -->
    <xsl:if test="local-name($notmod[1]) != 'methodname'">
      <xsl:apply-templates select="$notmod[1]" mode="cpp"/>
    </xsl:if>
    <xsl:apply-templates select="d:methodname" mode="cpp"/>
    <xsl:text>(</xsl:text>
    <xsl:apply-templates select="d:methodparam" mode="cpp"/>
    <xsl:text>)</xsl:text>
    <xsl:if test="d:exceptionname">
      <br/>
      <xsl:text>    throws </xsl:text>
      <xsl:apply-templates select="d:exceptionname" mode="cpp"/>
    </xsl:if>
    <xsl:if test="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]">
      <xsl:text> </xsl:text>
      <xsl:apply-templates select="$end-modifiers" mode="cpp"/>
    </xsl:if>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:classsynopsisidl
Documentation

Description

 ===== IDL ========================================================= 
Namespace No namespace
Match d:classsynopsis
Mode idl
Import precedence 0
Source
<xsl:template match="d:classsynopsis" mode="idl">
  <pre>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>interface </xsl:text>
    <xsl:apply-templates select="d:ooclass[1]" mode="idl"/>
    <xsl:if test="d:ooclass[preceding-sibling::*]">
      <xsl:text>: </xsl:text>
      <xsl:apply-templates select="d:ooclass[preceding-sibling::*]" mode="idl"/>
      <xsl:if test="d:oointerface|d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:oointerface">
      <xsl:text> implements</xsl:text>
      <xsl:apply-templates select="d:oointerface" mode="idl"/>
      <xsl:if test="d:ooexception">
        <br/>
        <xsl:text>    </xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="d:ooexception">
      <xsl:text> throws</xsl:text>
      <xsl:apply-templates select="d:ooexception" mode="idl"/>
    </xsl:if>
    <xsl:text> {</xsl:text>
    <br/>
    <xsl:apply-templates select="d:constructorsynopsis                                  |d:destructorsynopsis                                  |d:fieldsynopsis                                  |d:methodsynopsis                                  |d:classsynopsisinfo" mode="idl"/>
    <xsl:text>}</xsl:text>
  </pre>
</xsl:template>
Template d:classsynopsisinfoidl
Namespace No namespace
Match d:classsynopsisinfo
Mode idl
Import precedence 0
Source
<xsl:template match="d:classsynopsisinfo" mode="idl">
  <xsl:apply-templates mode="idl"/>
</xsl:template>
Template d:ooclass|d:oointerface|d:ooexceptionidl
Namespace No namespace
Match d:ooclass|d:oointerface|d:ooexception
Mode idl
Import precedence 0
Source
<xsl:template match="d:ooclass|d:oointerface|d:ooexception" mode="idl">
  <xsl:if test="preceding-sibling::*">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:modifier|d:packageidl
Namespace No namespace
Match d:modifier|d:package
Mode idl
Import precedence 0
Source
<xsl:template match="d:modifier|d:package" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
    <xsl:if test="following-sibling::*">
      <xsl:text> </xsl:text>
    </xsl:if>
  </span>
</xsl:template>
Template d:classnameidl
Namespace No namespace
Match d:classname
Mode idl
Import precedence 0
Source
<xsl:template match="d:classname" mode="idl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:interfacenameidl
Namespace No namespace
Match d:interfacename
Mode idl
Import precedence 0
Source
<xsl:template match="d:interfacename" mode="idl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:exceptionnameidl
Namespace No namespace
Match d:exceptionname
Mode idl
Import precedence 0
Source
<xsl:template match="d:exceptionname" mode="idl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:fieldsynopsisidl
Namespace No namespace
Match d:fieldsynopsis
Mode idl
References
Template synop-break
Import precedence 0
Source
<xsl:template match="d:fieldsynopsis" mode="idl">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates mode="idl"/>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:typeidl
Namespace No namespace
Match d:type
Mode idl
Import precedence 0
Source
<xsl:template match="d:type" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:varnameidl
Namespace No namespace
Match d:varname
Mode idl
Import precedence 0
Source
<xsl:template match="d:varname" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:initializeridl
Namespace No namespace
Match d:initializer
Mode idl
Import precedence 0
Source
<xsl:template match="d:initializer" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text></xsl:text>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:voididl
Namespace No namespace
Match d:void
Mode idl
Import precedence 0
Source
<xsl:template match="d:void" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>void </xsl:text>
  </span>
</xsl:template>
Template d:methodnameidl
Namespace No namespace
Match d:methodname
Mode idl
Import precedence 0
Source
<xsl:template match="d:methodname" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:methodparamidl
Namespace No namespace
Match d:methodparam
Mode idl
Import precedence 0
Source
<xsl:template match="d:methodparam" mode="idl">
  <xsl:if test="preceding-sibling::d:methodparam">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:parameteridl
Namespace No namespace
Match d:parameter
Mode idl
Import precedence 0
Source
<xsl:template match="d:parameter" mode="idl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="idl"/>
  </span>
</xsl:template>
Template d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsisidl
Namespace No namespace
Match d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis
Mode idl
References
Template synop-break
Import precedence 0
Source
<xsl:template mode="idl" match="d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis">
  <xsl:variable name="start-modifiers" select="d:modifier[following-sibling::*[local-name(.) != 'modifier']]"/>
  <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
  <xsl:variable name="end-modifiers" select="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates select="$start-modifiers" mode="idl"/>
    <!-- type -->
    <xsl:if test="local-name($notmod[1]) != 'methodname'">
      <xsl:apply-templates select="$notmod[1]" mode="idl"/>
    </xsl:if>
    <xsl:apply-templates select="d:methodname" mode="idl"/>
    <xsl:text>(</xsl:text>
    <xsl:apply-templates select="d:methodparam" mode="idl"/>
    <xsl:text>)</xsl:text>
    <xsl:if test="d:exceptionname">
      <br/>
      <xsl:text>    raises(</xsl:text>
      <xsl:apply-templates select="d:exceptionname" mode="idl"/>
      <xsl:text>)</xsl:text>
    </xsl:if>
    <xsl:if test="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]">
      <xsl:text> </xsl:text>
      <xsl:apply-templates select="$end-modifiers" mode="idl"/>
    </xsl:if>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:classsynopsisperl
Documentation

Description

 ===== Perl ======================================================== 
Namespace No namespace
Match d:classsynopsis
Mode perl
Import precedence 0
Source
<xsl:template match="d:classsynopsis" mode="perl">
  <pre>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>package </xsl:text>
    <xsl:apply-templates select="d:ooclass[1]" mode="perl"/>
    <xsl:text>;</xsl:text>
    <br/>
    <xsl:if test="d:ooclass[preceding-sibling::*]">
      <xsl:text>@ISA = (</xsl:text>
      <xsl:apply-templates select="d:ooclass[preceding-sibling::*]" mode="perl"/>
      <xsl:text>);</xsl:text>
      <br/>
    </xsl:if>
    <xsl:apply-templates select="d:constructorsynopsis                                  |d:destructorsynopsis                                  |d:fieldsynopsis                                  |d:methodsynopsis                                  |d:classsynopsisinfo" mode="perl"/>
  </pre>
</xsl:template>
Template d:classsynopsisinfoperl
Namespace No namespace
Match d:classsynopsisinfo
Mode perl
Import precedence 0
Source
<xsl:template match="d:classsynopsisinfo" mode="perl">
  <xsl:apply-templates mode="perl"/>
</xsl:template>
Template d:ooclass|d:oointerface|d:ooexceptionperl
Namespace No namespace
Match d:ooclass|d:oointerface|d:ooexception
Mode perl
Import precedence 0
Source
<xsl:template match="d:ooclass|d:oointerface|d:ooexception" mode="perl">
  <xsl:if test="preceding-sibling::*">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:modifier|d:packageperl
Namespace No namespace
Match d:modifier|d:package
Mode perl
Import precedence 0
Source
<xsl:template match="d:modifier|d:package" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
    <xsl:if test="following-sibling::*">
      <xsl:text> </xsl:text>
    </xsl:if>
  </span>
</xsl:template>
Template d:classnameperl
Namespace No namespace
Match d:classname
Mode perl
Import precedence 0
Source
<xsl:template match="d:classname" mode="perl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'classname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:interfacenameperl
Namespace No namespace
Match d:interfacename
Mode perl
Import precedence 0
Source
<xsl:template match="d:interfacename" mode="perl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'interfacename'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:exceptionnameperl
Namespace No namespace
Match d:exceptionname
Mode perl
Import precedence 0
Source
<xsl:template match="d:exceptionname" mode="perl">
  <xsl:if test="local-name(preceding-sibling::*[1]) = 'exceptionname'">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:fieldsynopsisperl
Namespace No namespace
Match d:fieldsynopsis
Mode perl
References
Template synop-break
Import precedence 0
Source
<xsl:template match="d:fieldsynopsis" mode="perl">
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="parent::d:classsynopsis">
      <xsl:text>  </xsl:text>
    </xsl:if>
    <xsl:apply-templates mode="perl"/>
    <xsl:text>;</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:typeperl
Namespace No namespace
Match d:type
Mode perl
Import precedence 0
Source
<xsl:template match="d:type" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:varnameperl
Namespace No namespace
Match d:varname
Mode perl
Import precedence 0
Source
<xsl:template match="d:varname" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
    <xsl:text> </xsl:text>
  </span>
</xsl:template>
Template d:initializerperl
Namespace No namespace
Match d:initializer
Mode perl
Import precedence 0
Source
<xsl:template match="d:initializer" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text></xsl:text>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:voidperl
Namespace No namespace
Match d:void
Mode perl
Import precedence 0
Source
<xsl:template match="d:void" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>void </xsl:text>
  </span>
</xsl:template>
Template d:methodnameperl
Namespace No namespace
Match d:methodname
Mode perl
Import precedence 0
Source
<xsl:template match="d:methodname" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:methodparamperl
Namespace No namespace
Match d:methodparam
Mode perl
Import precedence 0
Source
<xsl:template match="d:methodparam" mode="perl">
  <xsl:if test="preceding-sibling::d:methodparam">
    <xsl:text>, </xsl:text>
  </xsl:if>
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:parameterperl
Namespace No namespace
Match d:parameter
Mode perl
Import precedence 0
Source
<xsl:template match="d:parameter" mode="perl">
  <span>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates mode="perl"/>
  </span>
</xsl:template>
Template d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsisperl
Namespace No namespace
Match d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis
Mode perl
References
Template synop-break
Import precedence 0
Source
<xsl:template mode="perl" match="d:constructorsynopsis|d:destructorsynopsis|d:methodsynopsis">
  <xsl:variable name="start-modifiers" select="d:modifier[following-sibling::*[local-name(.) != 'modifier']]"/>
  <xsl:variable name="notmod" select="*[local-name(.) != 'modifier']"/>
  <xsl:variable name="end-modifiers" select="d:modifier[preceding-sibling::*[local-name(.) != 'modifier']]"/>
  <code>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:text>sub </xsl:text>
    <xsl:apply-templates select="d:methodname" mode="perl"/>
    <xsl:text> { ... };</xsl:text>
  </code>
  <xsl:call-template name="synop-break"/>
</xsl:template>
Template d:ooclass|d:oointerface|d:ooexception
Documentation

Description

 Used when not occurring as a child of classsynopsis 
Namespace No namespace
Match d:ooclass|d:oointerface|d:ooexception
Mode #default
Import precedence 0
Source
<xsl:template match="d:ooclass|d:oointerface|d:ooexception">
  <xsl:apply-templates/>
</xsl:template>
Template d:link|d:olink|d:xrefjava
Documentation

Description

 ==================================================================== 
 * DocBook 5 allows linking elements (link, olink, and xref) 
 * within the OO *synopsis elements (classsynopsis, fieldsynopsis, 
 * methodsynopsis, constructorsynopsis, destructorsynopsis) and 
 * their children. So we need to have mode="java|cpp|idl|perl" 
 * per-mode matches for those linking elements in order for them 
 * to be processed as expected. 
Namespace No namespace
Match d:link|d:olink|d:xref
Mode java
Import precedence 0
Source
<xsl:template match="d:link|d:olink|d:xref" mode="java">
  <xsl:apply-templates select="."/>
</xsl:template>
Template d:link|d:olink|d:xrefcpp
Namespace No namespace
Match d:link|d:olink|d:xref
Mode cpp
Import precedence 0
Source
<xsl:template match="d:link|d:olink|d:xref" mode="cpp">
  <xsl:apply-templates select="."/>
</xsl:template>
Template d:link|d:olink|d:xrefidl
Namespace No namespace
Match d:link|d:olink|d:xref
Mode idl
Import precedence 0
Source
<xsl:template match="d:link|d:olink|d:xref" mode="idl">
  <xsl:apply-templates select="."/>
</xsl:template>
Template d:link|d:olink|d:xrefperl
Namespace No namespace
Match d:link|d:olink|d:xref
Mode perl
Import precedence 0
Source
<xsl:template match="d:link|d:olink|d:xref" mode="perl">
  <xsl:apply-templates select="."/>
</xsl:template>
Variable default-classsynopsis-language
Documentation

Description

 ====================================================================== 
Namespace No namespace
Used by
Source
<xsl:variable name="default-classsynopsis-language">java</xsl:variable>