Blame xsl/inlined.xsl

Packit 0f19cf
Packit 0f19cf
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
    XSLT Stylesheet DocBook -> LaTeX 
Packit 0f19cf
    ############################################################################ -->
Packit 0f19cf
Packit 0f19cf
<xsl:param name="filename.as.url">1</xsl:param>
Packit 0f19cf
<xsl:param name="hyphenation.format">monoseq,sansseq</xsl:param>
Packit 0f19cf
<xsl:param name="hyphenation.setup"/>
Packit 0f19cf
<xsl:param name="monoseq.small">0</xsl:param>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.setup">
Packit 0f19cf
  
Packit 0f19cf
                contains($hyphenation.setup,'sloppy')">
Packit 0f19cf
    <xsl:text>\sloppy
</xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
     If no format is specified, the check is done on the calling
Packit 0f19cf
     element name
Packit 0f19cf
-->
Packit 0f19cf
<xsl:template name="inline.hyphenate">
Packit 0f19cf
  <xsl:param name="string"/>
Packit 0f19cf
  <xsl:param name="format" select="local-name()"/>
Packit 0f19cf
  <xsl:choose>
Packit 0f19cf
  <xsl:when test="contains($hyphenation.format, $format)">
Packit 0f19cf
    <xsl:call-template name="hyphen-encode">
Packit 0f19cf
      <xsl:with-param name="string" select="$string"/>
Packit 0f19cf
    </xsl:call-template>
Packit 0f19cf
  </xsl:when>
Packit 0f19cf
  <xsl:otherwise>
Packit 0f19cf
    <xsl:copy-of select="$string"/>
Packit 0f19cf
  </xsl:otherwise>
Packit 0f19cf
  </xsl:choose>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.boldseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\textbf{</xsl:text>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.italicseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\emph{</xsl:text>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.monoseq">
Packit 0f19cf
  <xsl:text>\texttt{</xsl:text>
Packit 0f19cf
  <xsl:apply-templates/>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.italicmonoseq">
Packit 0f19cf
  <xsl:text>\texttt{\emph{</xsl:text>
Packit 0f19cf
  <xsl:apply-templates/>
Packit 0f19cf
  <xsl:text>}}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
-->
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.sansseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\textsf{</xsl:text>
Packit 0f19cf
  <xsl:call-template name="inline.hyphenate">
Packit 0f19cf
    <xsl:with-param name="string" select="$content"/>
Packit 0f19cf
    <xsl:with-param name="format" select="'sansseq'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.charseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.boldmonoseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>{\ttfamily\bfseries{</xsl:text>
Packit 0f19cf
  <xsl:call-template name="inline.hyphenate">
Packit 0f19cf
    <xsl:with-param name="string" select="$content"/>
Packit 0f19cf
    <xsl:with-param name="format" select="'boldmonoseq'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
  <xsl:text>}}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.superscriptseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>$^{\text{</xsl:text>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
  <xsl:text>}}$</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.subscriptseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>$_{\text{</xsl:text>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
  <xsl:text>}}$</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.monoseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\texttt{</xsl:text>
Packit 0f19cf
  <xsl:if test="not($monoseq.small = '0')">
Packit 0f19cf
    <xsl:text>\small{</xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
  <xsl:call-template name="inline.hyphenate">
Packit 0f19cf
    <xsl:with-param name="string" select="$content"/>
Packit 0f19cf
    <xsl:with-param name="format" select="'monoseq'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
  <xsl:if test="not($monoseq.small = '0')">
Packit 0f19cf
    <xsl:text>}</xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.italicmonoseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\texttt{\emph{\small{</xsl:text>
Packit 0f19cf
  <xsl:call-template name="inline.hyphenate">
Packit 0f19cf
    <xsl:with-param name="string" select="$content"/>
Packit 0f19cf
    <xsl:with-param name="format" select="'monoseq'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
  <xsl:text>}}}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template name="inline.underlineseq">
Packit 0f19cf
  <xsl:param name="content">
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:param>
Packit 0f19cf
  <xsl:text>\underline{</xsl:text>
Packit 0f19cf
  <xsl:copy-of select="$content"/>
Packit 0f19cf
  <xsl:text>}</xsl:text>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="author|editor|othercredit|personname">
Packit 0f19cf
  <xsl:call-template name="person.name"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="authorinitials">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="authorgroup">
Packit 0f19cf
  <xsl:variable name="string">
Packit 0f19cf
    <xsl:call-template name="person.name.list"/>
Packit 0f19cf
  </xsl:variable>
Packit 0f19cf
  <xsl:value-of select="normalize-space($string)"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="accel">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="action">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="application">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="classname">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="code">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="exceptionname">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="interfacename">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="methodname">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="command">
Packit 0f19cf
  <xsl:call-template name="inline.boldseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="computeroutput">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="constant">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="database">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="errorcode">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="errorname">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="errortype">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="envar">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="filename">
Packit 0f19cf
  <xsl:choose>
Packit 0f19cf
  
Packit 0f19cf
  
Packit 0f19cf
                  not(ancestor::title or ancestor::refentrytitle)">
Packit 0f19cf
    
Packit 0f19cf
    <xsl:apply-templates mode="nolinkurl"/>
Packit 0f19cf
  </xsl:when>
Packit 0f19cf
  <xsl:otherwise>
Packit 0f19cf
    <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
  </xsl:otherwise>
Packit 0f19cf
  </xsl:choose>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="*" mode="nolinkurl">
Packit 0f19cf
  <xsl:param name="command" select="'\nolinkurl'"/>
Packit 0f19cf
  <xsl:apply-templates mode="nolinkurl">
Packit 0f19cf
    <xsl:with-param name="command" select="$command"/>
Packit 0f19cf
  </xsl:apply-templates>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="text()" mode="nolinkurl">
Packit 0f19cf
  <xsl:param name="command" select="'\nolinkurl'"/>
Packit 0f19cf
  <xsl:call-template name="nolinkurl-output">
Packit 0f19cf
    <xsl:with-param name="url" select="."/>
Packit 0f19cf
    <xsl:with-param name="command" select="$command"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="subscript|superscript" mode="nolinkurl">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq">
Packit 0f19cf
    <xsl:with-param name="content">
Packit 0f19cf
      <xsl:apply-templates select="."/>
Packit 0f19cf
    </xsl:with-param>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="replaceable" mode="nolinkurl">
Packit 0f19cf
  <xsl:param name="command" select="'\nolinkurl'"/>
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq">
Packit 0f19cf
    <xsl:with-param name="content">
Packit 0f19cf
      <xsl:apply-templates mode="nolinkurl">
Packit 0f19cf
        <xsl:with-param name="command" select="$command"/>
Packit 0f19cf
      </xsl:apply-templates>
Packit 0f19cf
    </xsl:with-param>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="indexterm" mode="nolinkurl">
Packit 0f19cf
  <xsl:apply-templates select="."/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="function">
Packit 0f19cf
  <xsl:choose>
Packit 0f19cf
    
Packit 0f19cf
                    or parameter or function or replaceable"> 
Packit 0f19cf
      <xsl:variable name="nodes" select="text()|*"/>
Packit 0f19cf
      <xsl:call-template name="inline.monoseq">
Packit 0f19cf
        <xsl:with-param name="content">
Packit 0f19cf
          <xsl:apply-templates select="$nodes[1]"/>
Packit 0f19cf
        </xsl:with-param>
Packit 0f19cf
      </xsl:call-template>
Packit 0f19cf
      <xsl:text>(</xsl:text>
Packit 0f19cf
      <xsl:apply-templates select="$nodes[position()>1]"/>
Packit 0f19cf
      <xsl:text>)</xsl:text>
Packit 0f19cf
    </xsl:when>
Packit 0f19cf
    <xsl:otherwise>
Packit 0f19cf
      <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
    </xsl:otherwise>
Packit 0f19cf
  </xsl:choose>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="function/parameter" priority="2">
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq"/>
Packit 0f19cf
  <xsl:if test="following-sibling::*">
Packit 0f19cf
    <xsl:text>, </xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="function/replaceable" priority="2">
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq"/>
Packit 0f19cf
  <xsl:if test="following-sibling::*">
Packit 0f19cf
    <xsl:text>, </xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="replaceable" priority="1">
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guibutton">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guiicon">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guilabel">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guimenu">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guimenuitem">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="guisubmenu">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="hardware">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="interface">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="interfacedefinition">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="keycap">
Packit 0f19cf
  <xsl:call-template name="inline.boldseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="keycode">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="keysym">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="literal">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="medialabel">
Packit 0f19cf
  <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="mousebutton">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="option">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="package">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="parameter">
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="property">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="prompt">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="returnvalue">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="shortcut">
Packit 0f19cf
  <xsl:call-template name="inline.boldseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="structfield">
Packit 0f19cf
  <xsl:call-template name="inline.italicmonoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="structname">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="symbol">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="systemitem">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="token">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="type">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="uri">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="userinput">
Packit 0f19cf
  <xsl:call-template name="inline.boldmonoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="abbrev">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="acronym">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="citerefentry">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="citetitle">
Packit 0f19cf
  <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="emphasis">
Packit 0f19cf
  <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="emphasis[@role='bold' or @role='strong']">
Packit 0f19cf
  <xsl:call-template name="inline.boldseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="emphasis[@role='underline']">
Packit 0f19cf
  <xsl:call-template name="inline.underlineseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="errortext">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="firstname|surname|honorific|othername|lineage">
Packit 0f19cf
  <xsl:apply-templates/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="foreignphrase">
Packit 0f19cf
  <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="markup">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="phrase">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="quote">
Packit 0f19cf
  <xsl:variable name="depth">
Packit 0f19cf
    <xsl:call-template name="dot.count">
Packit 0f19cf
      <xsl:with-param name="string">
Packit 0f19cf
        <xsl:number level="multiple"/>
Packit 0f19cf
      </xsl:with-param>
Packit 0f19cf
    </xsl:call-template>
Packit 0f19cf
  </xsl:variable>
Packit 0f19cf
Packit 0f19cf
  <xsl:choose>
Packit 0f19cf
    <xsl:when test="$depth mod 2 = 0">
Packit 0f19cf
      <xsl:call-template name="gentext.startquote"/>
Packit 0f19cf
      <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
      <xsl:call-template name="gentext.endquote"/>
Packit 0f19cf
    </xsl:when>
Packit 0f19cf
    <xsl:otherwise>
Packit 0f19cf
      <xsl:call-template name="gentext.nestedstartquote"/>
Packit 0f19cf
      <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
      <xsl:call-template name="gentext.nestedendquote"/>
Packit 0f19cf
    </xsl:otherwise>
Packit 0f19cf
  </xsl:choose>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="varname">
Packit 0f19cf
  <xsl:call-template name="inline.monoseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="wordasword">
Packit 0f19cf
  <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="lineannotation">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="superscript">
Packit 0f19cf
  <xsl:call-template name="inline.superscriptseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="subscript">
Packit 0f19cf
  <xsl:call-template name="inline.subscriptseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="trademark">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
  <xsl:call-template name="dingbat">
Packit 0f19cf
    <xsl:with-param name="dingbat">trademark</xsl:with-param>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
                               @class='registered']">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
  <xsl:call-template name="dingbat">
Packit 0f19cf
    <xsl:with-param name="dingbat" select="@class"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="trademark[@class='service']">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
  <xsl:call-template name="inline.superscriptseq">
Packit 0f19cf
    <xsl:with-param name="content" select="'SM'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="firstterm|glossterm">
Packit 0f19cf
  <xsl:variable name="termtext">
Packit 0f19cf
    <xsl:call-template name="inline.italicseq"/>
Packit 0f19cf
  </xsl:variable>
Packit 0f19cf
Packit 0f19cf
  <xsl:choose>
Packit 0f19cf
  <xsl:when test="@linkend">
Packit 0f19cf
    <xsl:call-template name="hyperlink.markup">
Packit 0f19cf
      <xsl:with-param name="linkend" select="@linkend"/>
Packit 0f19cf
      <xsl:with-param name="text" select="$termtext"/>
Packit 0f19cf
    </xsl:call-template>
Packit 0f19cf
  </xsl:when>
Packit 0f19cf
  <xsl:when test="$glossterm.auto.link != 0">
Packit 0f19cf
    <xsl:variable name="term">
Packit 0f19cf
      <xsl:choose>
Packit 0f19cf
        <xsl:when test="@baseform">
Packit 0f19cf
          <xsl:value-of select="normalize-space(@baseform)"/>
Packit 0f19cf
        </xsl:when>
Packit 0f19cf
        <xsl:otherwise>
Packit 0f19cf
          <xsl:value-of select="normalize-space(.)"/>
Packit 0f19cf
        </xsl:otherwise>
Packit 0f19cf
      </xsl:choose>
Packit 0f19cf
    </xsl:variable>
Packit 0f19cf
    
Packit 0f19cf
       select="(//glossentry[normalize-space(glossterm)=$term or
Packit 0f19cf
                             normalize-space(glossterm/@baseform)=$term][@id])[1]"/>
Packit 0f19cf
    <xsl:choose>
Packit 0f19cf
    <xsl:when test="$glossentry">
Packit 0f19cf
      <xsl:call-template name="hyperlink.markup">
Packit 0f19cf
        <xsl:with-param name="linkend" select="$glossentry/@id"/>
Packit 0f19cf
        <xsl:with-param name="text" select="$termtext"/>
Packit 0f19cf
      </xsl:call-template>
Packit 0f19cf
    </xsl:when>
Packit 0f19cf
    <xsl:otherwise>
Packit 0f19cf
      <xsl:message>
Packit 0f19cf
        <xsl:text>Error: no ID glossentry for glossterm: </xsl:text>
Packit 0f19cf
        <xsl:value-of select="."/>
Packit 0f19cf
        <xsl:text>.</xsl:text>
Packit 0f19cf
      </xsl:message>
Packit 0f19cf
      <xsl:value-of select="$termtext"/>
Packit 0f19cf
    </xsl:otherwise>
Packit 0f19cf
    </xsl:choose>
Packit 0f19cf
  </xsl:when>
Packit 0f19cf
  <xsl:otherwise>
Packit 0f19cf
    <xsl:value-of select="$termtext"/>
Packit 0f19cf
  </xsl:otherwise>
Packit 0f19cf
  </xsl:choose>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="keycombo">
Packit 0f19cf
  <xsl:variable name="action" select="@action"/>
Packit 0f19cf
  <xsl:variable name="joinchar">
Packit 0f19cf
    <xsl:choose>
Packit 0f19cf
      <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when>
Packit 0f19cf
      <xsl:when test="$action='simul'">+</xsl:when>
Packit 0f19cf
      <xsl:when test="$action='press'">-</xsl:when>
Packit 0f19cf
      <xsl:when test="$action='click'">-</xsl:when>
Packit 0f19cf
      <xsl:when test="$action='double-click'">-</xsl:when>
Packit 0f19cf
      <xsl:when test="$action='other'"></xsl:when>
Packit 0f19cf
      <xsl:otherwise>-</xsl:otherwise>
Packit 0f19cf
    </xsl:choose>
Packit 0f19cf
  </xsl:variable>
Packit 0f19cf
  <xsl:for-each select="./*">
Packit 0f19cf
    <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
Packit 0f19cf
    <xsl:apply-templates/>
Packit 0f19cf
  </xsl:for-each>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:strip-space elements="menuchoice shortcut"/>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="menuchoice">
Packit 0f19cf
  <xsl:variable name="shortcut" select="./shortcut"/>
Packit 0f19cf
  
Packit 0f19cf
  <xsl:for-each select="*[not(self::shortcut)]">
Packit 0f19cf
    <xsl:if test="position() > 1">
Packit 0f19cf
      <xsl:choose>
Packit 0f19cf
        <xsl:when test="self::guimenuitem or self::guisubmenu">
Packit 0f19cf
          <xsl:text>\hspace{2pt}\ensuremath{\to{}}</xsl:text>
Packit 0f19cf
        </xsl:when>
Packit 0f19cf
        <xsl:otherwise>+</xsl:otherwise>
Packit 0f19cf
      </xsl:choose>
Packit 0f19cf
    </xsl:if>
Packit 0f19cf
    <xsl:apply-templates select="."/>
Packit 0f19cf
  </xsl:for-each>
Packit 0f19cf
  
Packit 0f19cf
  <xsl:if test="$shortcut">
Packit 0f19cf
    <xsl:text> (</xsl:text>
Packit 0f19cf
    <xsl:apply-templates select="$shortcut"/>
Packit 0f19cf
    <xsl:text>)</xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="jobtitle|corpauthor|orgname|orgdiv">
Packit 0f19cf
  <xsl:apply-templates/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="optional">
Packit 0f19cf
  <xsl:value-of select="$arg.choice.opt.open.str"/>
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
  <xsl:value-of select="$arg.choice.opt.close.str"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="comment|remark">
Packit 0f19cf
  <xsl:if test="$show.comments != 0">
Packit 0f19cf
    <xsl:text>\comment</xsl:text>
Packit 0f19cf
    <xsl:if test="@role">
Packit 0f19cf
      <xsl:text>[title={</xsl:text>
Packit 0f19cf
      <xsl:value-of select="@role"/>
Packit 0f19cf
      <xsl:text>}]</xsl:text>
Packit 0f19cf
    </xsl:if>
Packit 0f19cf
    <xsl:text>{</xsl:text>
Packit 0f19cf
    <xsl:variable name="string">
Packit 0f19cf
      <xsl:apply-templates/>
Packit 0f19cf
    </xsl:variable>
Packit 0f19cf
    <xsl:value-of select="normalize-space($string)"/>
Packit 0f19cf
    <xsl:text>}</xsl:text>
Packit 0f19cf
  </xsl:if>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="productname">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="productnumber">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template match="pob|street|city|state|postcode|country|phone|fax|otheraddr">
Packit 0f19cf
  <xsl:call-template name="inline.charseq"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
Packit 0f19cf
<xsl:template name="verbatim.boldseq">
Packit 0f19cf
  <xsl:param name="co-tagin" select="'<'"/>
Packit 0f19cf
  <xsl:param name="rnode" select="/"/>
Packit 0f19cf
  <xsl:param name="probe" select="0"/>
Packit 0f19cf
  <xsl:param name="style" select="'b'"/>
Packit 0f19cf
  <xsl:param name="content"/>
Packit 0f19cf
Packit 0f19cf
  <xsl:call-template name="verbatim.format">
Packit 0f19cf
    <xsl:with-param name="co-tagin" select="$co-tagin"/>
Packit 0f19cf
    <xsl:with-param name="rnode" select="$rnode"/>
Packit 0f19cf
    <xsl:with-param name="probe" select="$probe"/>
Packit 0f19cf
    <xsl:with-param name="style" select="'b'"/>
Packit 0f19cf
    <xsl:with-param name="content" select="$content"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="userinput" mode="latex.programlisting">
Packit 0f19cf
  <xsl:param name="co-tagin" select="'<:'"/>
Packit 0f19cf
  <xsl:param name="rnode" select="/"/>
Packit 0f19cf
  <xsl:param name="probe" select="0"/>
Packit 0f19cf
Packit 0f19cf
  <xsl:call-template name="verbatim.boldseq">
Packit 0f19cf
    <xsl:with-param name="co-tagin" select="$co-tagin"/>
Packit 0f19cf
    <xsl:with-param name="rnode" select="$rnode"/>
Packit 0f19cf
    <xsl:with-param name="probe" select="$probe"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="emphasis" mode="latex.programlisting">
Packit 0f19cf
  <xsl:param name="co-tagin" select="'<:'"/>
Packit 0f19cf
  <xsl:param name="rnode" select="/"/>
Packit 0f19cf
  <xsl:param name="probe" select="0"/>
Packit 0f19cf
Packit 0f19cf
  <xsl:variable name="style">
Packit 0f19cf
    <xsl:choose>
Packit 0f19cf
    <xsl:when test="@role='bold' or @role='strong'">
Packit 0f19cf
      <xsl:value-of select="'b'"/>
Packit 0f19cf
    </xsl:when>
Packit 0f19cf
    <xsl:otherwise>
Packit 0f19cf
      <xsl:value-of select="'i'"/>
Packit 0f19cf
    </xsl:otherwise>
Packit 0f19cf
    </xsl:choose>
Packit 0f19cf
  </xsl:variable>
Packit 0f19cf
Packit 0f19cf
  <xsl:call-template name="verbatim.format">
Packit 0f19cf
    <xsl:with-param name="co-tagin" select="$co-tagin"/>
Packit 0f19cf
    <xsl:with-param name="rnode" select="$rnode"/>
Packit 0f19cf
    <xsl:with-param name="probe" select="$probe"/>
Packit 0f19cf
    <xsl:with-param name="style" select="$style"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="replaceable" mode="latex.programlisting">
Packit 0f19cf
  <xsl:param name="co-tagin" select="'<:'"/>
Packit 0f19cf
  <xsl:param name="rnode" select="/"/>
Packit 0f19cf
  <xsl:param name="probe" select="0"/>
Packit 0f19cf
Packit 0f19cf
  <xsl:call-template name="verbatim.format">
Packit 0f19cf
    <xsl:with-param name="co-tagin" select="$co-tagin"/>
Packit 0f19cf
    <xsl:with-param name="rnode" select="$rnode"/>
Packit 0f19cf
    <xsl:with-param name="probe" select="$probe"/>
Packit 0f19cf
    <xsl:with-param name="style" select="'i'"/>
Packit 0f19cf
  </xsl:call-template>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
<xsl:template match="optional" mode="latex.programlisting">
Packit 0f19cf
  <xsl:param name="co-tagin" select="'<:'"/>
Packit 0f19cf
  <xsl:param name="rnode" select="/"/>
Packit 0f19cf
  <xsl:param name="probe" select="0"/>
Packit 0f19cf
Packit 0f19cf
  <xsl:value-of select="$arg.choice.opt.open.str"/>
Packit 0f19cf
  <xsl:apply-templates mode="latex.programlisting">
Packit 0f19cf
    <xsl:with-param name="co-tagin" select="$co-tagin"/>
Packit 0f19cf
    <xsl:with-param name="rnode" select="$rnode"/>
Packit 0f19cf
    <xsl:with-param name="probe" select="$probe"/>
Packit 0f19cf
  </xsl:apply-templates>
Packit 0f19cf
  <xsl:value-of select="$arg.choice.opt.close.str"/>
Packit 0f19cf
</xsl:template>
Packit 0f19cf
Packit 0f19cf
</xsl:stylesheet>