Showing:

Documentation
References
Included from
Source
Stylesheet index.xsl
Documentation

Description

This file was created automatically by html2xhtml
from the HTML stylesheets.
Included from
Template d:index
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.

     ******************************************************************** 
 ==================================================================== 
Namespace No namespace
Match d:index
Mode #default
References
Import precedence 0
Source
<xsl:template match="d:index">
  <!-- some implementations use completely empty index tags to indicate -->
  <!-- where an automatically generated index should be inserted. so -->
  <!-- if the index is completely empty, skip it. Unless generate.index -->
  <!-- is non-zero, in which case, this is where the automatically -->
  <!-- generated index should go. -->
  <xsl:call-template name="id.warning"/>
  <xsl:if test="count(*)>0 or $generate.index != '0'">
    <div>
      <xsl:apply-templates select="." mode="common.html.attributes"/>
      <xsl:if test="$generate.id.attributes != 0">
        <xsl:attribute name="id">
          <xsl:call-template name="object.id"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:call-template name="index.titlepage"/>
      <xsl:choose>
        <xsl:when test="d:indexdiv">
          <xsl:apply-templates/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:apply-templates select="*[not(self::d:indexentry)]"/>
          <!-- Because it's actually valid for Index to have neither any -->
          <!-- Indexdivs nor any Indexentries, we need to check and make -->
          <!-- sure that at least one Indexentry exists, and generate a -->
          <!-- wrapper dl if there is at least one; otherwise, do nothing. -->
          <xsl:if test="d:indexentry">
            <!-- The indexentry template assumes a parent dl wrapper has -->
            <!-- been generated; for Indexes that have Indexdivs, the dl -->
            <!-- wrapper is generated by the indexdiv template; however, -->
            <!-- for Indexes that lack Indexdivs, if we don't generate a -->
            <!-- dl here, HTML output will not be valid. -->
            <dl>
              <xsl:apply-templates select="d:indexentry"/>
            </dl>
          </xsl:if>
        </xsl:otherwise>
      </xsl:choose>
      <xsl:if test="count(d:indexentry) = 0 and count(d:indexdiv) = 0">
        <xsl:call-template name="generate-index">
          <xsl:with-param name="scope" select="(ancestor::d:book|/)[last()]"/>
        </xsl:call-template>
      </xsl:if>
      <xsl:if test="not(parent::d:article)">
        <xsl:call-template name="process.footnotes"/>
      </xsl:if>
    </div>
  </xsl:if>
</xsl:template>
Template d:setindex
Namespace No namespace
Match d:setindex
Mode #default
References
Import precedence 0
Source
<xsl:template match="d:setindex">
  <!-- some implementations use completely empty index tags to indicate -->
  <!-- where an automatically generated index should be inserted. so -->
  <!-- if the index is completely empty, skip it. Unless generate.index -->
  <!-- is non-zero, in which case, this is where the automatically -->
  <!-- generated index should go. -->
  <xsl:call-template name="id.warning"/>
  <xsl:if test="count(*)>0 or $generate.index != '0'">
    <div>
      <xsl:apply-templates select="." mode="common.html.attributes"/>
      <xsl:if test="$generate.id.attributes != 0">
        <xsl:attribute name="id">
          <xsl:call-template name="object.id"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:call-template name="setindex.titlepage"/>
      <xsl:apply-templates/>
      <xsl:if test="count(d:indexentry) = 0 and count(d:indexdiv) = 0">
        <xsl:call-template name="generate-index">
          <xsl:with-param name="scope" select="/"/>
        </xsl:call-template>
      </xsl:if>
      <xsl:if test="not(parent::d:article)">
        <xsl:call-template name="process.footnotes"/>
      </xsl:if>
    </div>
  </xsl:if>
</xsl:template>
Template d:index/d:indexinfo
Namespace No namespace
Match d:index/d:indexinfo
Mode #default
Import precedence 0
Source
<xsl:template match="d:index/d:indexinfo"/>
Template d:index/d:info
Namespace No namespace
Match d:index/d:info
Mode #default
Import precedence 0
Source
<xsl:template match="d:index/d:info"/>
Template d:index/d:title
Namespace No namespace
Match d:index/d:title
Mode #default
Import precedence 0
Source
<xsl:template match="d:index/d:title"/>
Template d:index/d:subtitle
Namespace No namespace
Match d:index/d:subtitle
Mode #default
Import precedence 0
Source
<xsl:template match="d:index/d:subtitle"/>
Template d:index/d:titleabbrev
Namespace No namespace
Match d:index/d:titleabbrev
Mode #default
Import precedence 0
Source
<xsl:template match="d:index/d:titleabbrev"/>
Template d:indexdiv
Documentation

Description

 ==================================================================== 
Namespace No namespace
Match d:indexdiv
Mode #default
References
Import precedence 0
Source
<xsl:template match="d:indexdiv">
  <xsl:call-template name="id.warning"/>
  <div>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:if test="$generate.id.attributes != 0">
      <xsl:attribute name="id">
        <xsl:call-template name="object.id"/>
      </xsl:attribute>
    </xsl:if>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates select="*[not(self::d:indexentry)]"/>
    <dl>
      <xsl:apply-templates select="d:indexentry"/>
    </dl>
  </div>
</xsl:template>
Template d:indexdiv/d:title
Namespace No namespace
Match d:indexdiv/d:title
Mode #default
Import precedence 0
Source
<xsl:template match="d:indexdiv/d:title">
  <h3>
    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:apply-templates/>
  </h3>
</xsl:template>
Template d:indexterm
Documentation

Description

 ==================================================================== 
Namespace No namespace
Match d:indexterm
Mode #default
References
Template object.id
Import precedence 0
Source
<xsl:template match="d:indexterm">
  <!-- this one must have a name, even if it doesn't have an ID -->
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>
  <a id="{$id}" class="indexterm"/>
</xsl:template>
Template d:primary|d:secondary|d:tertiary|d:see|d:seealso
Namespace No namespace
Match d:primary|d:secondary|d:tertiary|d:see|d:seealso
Mode #default
Import precedence 0
Source
<xsl:template match="d:primary|d:secondary|d:tertiary|d:see|d:seealso">
</xsl:template>
Template d:indexentry
Documentation

Description

 ==================================================================== 
Namespace No namespace
Match d:indexentry
Mode #default
Import precedence 0
Source
<xsl:template match="d:indexentry">
  <xsl:apply-templates select="d:primaryie"/>
</xsl:template>
Template d:primaryie
Namespace No namespace
Match d:primaryie
Mode #default
Import precedence 0
Source
<xsl:template match="d:primaryie">
  <dt>
    <xsl:apply-templates/>
  </dt>
  <dd>
    <xsl:apply-templates select="following-sibling::d:seeie                                    [not(preceding-sibling::d:secondaryie)]" mode="indexentry"/>
    <xsl:apply-templates select="following-sibling::d:seealsoie                                    [not(preceding-sibling::d:secondaryie)]" mode="indexentry"/>
    <xsl:apply-templates select="following-sibling::d:secondaryie" mode="indexentry"/>
  </dd>
</xsl:template>
Template d:secondaryie
Documentation

Description

 Handled in mode to convert flat list to structured output 
Namespace No namespace
Match d:secondaryie
Mode #default
Import precedence 0
Source
<xsl:template match="d:secondaryie">
</xsl:template>
Template d:tertiaryie
Namespace No namespace
Match d:tertiaryie
Mode #default
Import precedence 0
Source
<xsl:template match="d:tertiaryie">
</xsl:template>
Template d:seeie|d:seealsoie
Namespace No namespace
Match d:seeie|d:seealsoie
Mode #default
Import precedence 0
Source
<xsl:template match="d:seeie|d:seealsoie">
</xsl:template>
Template d:secondaryieindexentry
Namespace No namespace
Match d:secondaryie
Mode indexentry
Import precedence 0
Source
<xsl:template match="d:secondaryie" mode="indexentry">
  <dl>
    <dt>
      <xsl:apply-templates/>
    </dt>
    <dd>
      <!-- select following see* elements up to next secondaryie or tertiary or end -->
      <xsl:variable name="after.this" select="following-sibling::*"/>
      <xsl:variable name="next.entry" select="(following-sibling::d:secondaryie|following-sibling::d:tertiaryie)[1]"/>
      <xsl:variable name="before.entry" select="$next.entry/preceding-sibling::*"/>
      <xsl:variable name="see.intersection" select="$after.this[count(.|$before.entry) = count($before.entry)]                                 [self::d:seeie or self::d:seealsoie]"/>
      <xsl:choose>
        <xsl:when test="count($see.intersection) != 0">
          <xsl:apply-templates select="$see.intersection" mode="indexentry"/>
        </xsl:when>
        <xsl:when test="count($next.entry) = 0">
          <xsl:apply-templates select="following-sibling::d:seeie" mode="indexentry"/>
          <xsl:apply-templates select="following-sibling::d:seealsoie" mode="indexentry"/>
        </xsl:when>
      </xsl:choose>
      <!-- now process any tertiaryie before the next secondaryie -->
      <xsl:variable name="before.next.secondary" select="following-sibling::d:secondaryie[1]/preceding-sibling::*"/>
      <xsl:variable name="tertiary.intersection" select="$after.this[count(.|$before.next.secondary) =                                   count($before.next.secondary)]                                 [not(self::d:seeie) and not(self::d:seealsoie)]"/>
      <xsl:choose>
        <xsl:when test="count($tertiary.intersection) != 0">
          <xsl:apply-templates select="$tertiary.intersection" mode="indexentry"/>
        </xsl:when>
        <xsl:when test="not(following-sibling::d:secondaryie)">
          <xsl:apply-templates select="following-sibling::d:tertiaryie" mode="indexentry"/>
        </xsl:when>
      </xsl:choose>
    </dd>
  </dl>
</xsl:template>
Template d:tertiaryieindexentry
Namespace No namespace
Match d:tertiaryie
Mode indexentry
Import precedence 0
Source
<xsl:template match="d:tertiaryie" mode="indexentry">
  <dl>
    <dt>
      <xsl:apply-templates/>
    </dt>
    <dd>
      <!-- select following see* elements up to next secondaryie or tertiary or end -->
      <xsl:variable name="after.this" select="following-sibling::*"/>
      <xsl:variable name="next.entry" select="(following-sibling::d:secondaryie|following-sibling::d:tertiaryie)[1]"/>
      <xsl:variable name="before.entry" select="$next.entry/preceding-sibling::*"/>
      <xsl:variable name="see.intersection" select="$after.this[count(.|$before.entry) = count($before.entry)]                                 [self::d:seeie or self::d:seealsoie]"/>
      <xsl:choose>
        <xsl:when test="count($see.intersection) != 0">
          <xsl:apply-templates select="$see.intersection" mode="indexentry"/>
        </xsl:when>
        <xsl:when test="count($next.entry) = 0">
          <xsl:apply-templates select="following-sibling::d:seeie" mode="indexentry"/>
          <xsl:apply-templates select="following-sibling::d:seealsoie" mode="indexentry"/>
        </xsl:when>
      </xsl:choose>
    </dd>
  </dl>
</xsl:template>
Template d:seeieindexentry
Namespace No namespace
Match d:seeie
Mode indexentry
References
Template gentext
Import precedence 0
Source
<xsl:template match="d:seeie" mode="indexentry">
  <dt>
    <xsl:text>(</xsl:text>
    <xsl:call-template name="gentext">
      <xsl:with-param name="key" select="'see'"/>
    </xsl:call-template>
    <xsl:text> </xsl:text>
    <xsl:apply-templates/>
    <xsl:text>)</xsl:text>
  </dt>
</xsl:template>
Template d:seealsoieindexentry
Namespace No namespace
Match d:seealsoie
Mode indexentry
References
Template gentext
Import precedence 0
Source
<xsl:template match="d:seealsoie" mode="indexentry">
  <div>
    <xsl:text>(</xsl:text>
    <xsl:call-template name="gentext">
      <xsl:with-param name="key" select="'seealso'"/>
    </xsl:call-template>
    <xsl:text> </xsl:text>
    <xsl:apply-templates/>
    <xsl:text>)</xsl:text>
  </div>
</xsl:template>