+++ /dev/null
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
- xmlns:verb="com.nwalsh.saxon.Verbatim"
- exclude-result-prefixes="src verb"
- version="1.0">
-
-<xsl:import href="../../../../releasetools/cldocbook.xsl"/>
-
-<xsl:param name="use.id.as.filename" select="1"/>
-<xsl:param name="refentry.separator" select="0"/>
-<xsl:param name="chunk.append"><xsl:text>
</xsl:text></xsl:param>
-
-<!-- n.b. reference pages are one directory down, so we point back up -->
-<xsl:param name="html.stylesheet" select="'../css/reference.css'"/>
-<xsl:param name="admon.graphics" select="1"></xsl:param>
-<xsl:param name="admon.textlabel" select="0"></xsl:param>
-<xsl:param name="admon.graphics.path">../images/</xsl:param>
-<xsl:param name="admon.graphics.extension" select="'.png'"></xsl:param>
-<xsl:param name="admon.style"/>
-
-<xsl:template match="src:fragment" mode="label.markup">
- <xsl:text>§</xsl:text>
- <xsl:number from="/" level="any" format="1"/>
-</xsl:template>
-
-<xsl:template match="src:fragment" mode="xref-to">
- <xsl:variable name="section" select="ancestor::refentry[1]"/>
-
- <i>
- <xsl:text>§</xsl:text>
- <xsl:apply-templates select="$section" mode="label.markup"/>
- <xsl:number from="/" level="any"/>
- <xsl:text>. </xsl:text>
- <xsl:apply-templates select="$section" mode="title.markup"/>
- </i>
-</xsl:template>
-
-<xsl:template match="src:fragment" mode="xref-to-section">
- <xsl:variable name="section" select="ancestor::refentry[1]"/>
-
- <i>
- <xsl:text>§</xsl:text>
- <xsl:apply-templates select="$section" mode="label.markup"/>
- <xsl:number from="/" level="any"/>
- </i>
-</xsl:template>
-
-<xsl:template match="src:fragment">
- <xsl:param name="suppress-numbers" select="'0'"/>
- <xsl:param name="linenumbering" select="'numbered'"/>
-
- <xsl:variable name="section" select="ancestor::section[1]"/>
- <xsl:variable name="id" select="@id"/>
- <xsl:variable name="referents"
- select="//src:fragment[.//src:fragref[@linkend=$id]]"/>
-
- <a name="{@id}"/>
- <table border="1" width="100%">
- <tr>
- <td>
- <p>
- <b>
- <xsl:apply-templates select="." mode="label.markup"/>
- </b>
- <xsl:if test="$referents">
- <xsl:text>: </xsl:text>
- <xsl:for-each select="$referents">
- <xsl:if test="position() > 1">, </xsl:if>
- <a href="#{@id}">
- <xsl:apply-templates select="." mode="label.markup"/>
- </a>
- </xsl:for-each>
- </xsl:if>
- </p>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and $linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <xsl:variable name="rtf">
- <xsl:apply-templates/>
- </xsl:variable>
- <pre class="{name(.)}">
- <xsl:copy-of select="verb:numberLines($rtf)"/>
- </pre>
- </xsl:when>
- <xsl:otherwise>
- <pre class="{name(.)}">
- <xsl:apply-templates/>
- </pre>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
-</xsl:template>
-
-<!-- ====================================================================== -->
-<!-- Special handling for elements -->
-
-<xsl:template match="parameter">
- <!-- link parameters to their reference pages -->
- <a href="{.}.html">
- <xsl:apply-imports/>
- </a>
-</xsl:template>
-
-<!-- * Check for both <sgmltag> and <tag>, but ignore those -->
-<!-- * with role="html" or namespace="http://docbook.sf.net/*" -->
-<!-- * or namespace="http://docbook.sourceforge.net/*" -->
-<xsl:template match="*[name() = 'sgmltag' or name() = 'tag']
- [(not(@class) or @class='element')
- and (not(@role) or @role != 'html')
- and (not(@namespace)
- or not(
- contains(@namespace, 'http://docbook.sf.net/')
- or contains(@namespace, 'http://docbook.sourceforge.net/')
- ))]">
- <!-- link sgmltags to their reference pages -->
- <a href="http://docbook.org/tdg/en/html/{.}.html">
- <xsl:apply-imports/>
- </a>
-</xsl:template>
-
-</xsl:stylesheet>
+++ /dev/null
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
-
-<xsl:import href="../../../html/docbook.xsl"/>
-
-<xsl:output
- method="html"
- indent="no"
- encoding="ISO-8859-1"/>
-
-<!-- ********************************************************************
- $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.
-
- ******************************************************************** -->
-
-<!-- ==================================================================== -->
-
-<xsl:param name="part.autolabel" select="0"/>
-<xsl:param name="html.stylesheet" select="'../css/reference.css'"/>
-<xsl:param name="admon.graphics" select="1"></xsl:param>
-<xsl:param name="admon.textlabel" select="0"></xsl:param>
-<xsl:param name="admon.graphics.path">../images/</xsl:param>
-<xsl:param name="admon.graphics.extension" select="'.png'"></xsl:param>
-<xsl:param name="admon.style"/>
-<xsl:param name="html.append"><xsl:text>
</xsl:text></xsl:param>
-
-
-<xsl:template match="refentry">
- <xsl:apply-imports/>
-</xsl:template>
-
-<xsl:template match="refdescription">
- <div class="{name(.)}">
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refauthor">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Author</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refversion">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Version</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refparameter">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Parameters</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refreturn">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Returns</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refexception|refthrows">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Exceptions</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refsee">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>See</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refsince">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Since</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refserial">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Serial</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="refdeprecated">
- <div class="{name(.)}">
- <b>
- <a>
- <xsl:attribute name="name">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- </a>
- <xsl:text>Deprecated</xsl:text>
- </b>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="copyright" mode="titlepage.mode">
- <xsl:variable name="years" select="year"/>
- <xsl:variable name="holders" select="holder"/>
-
- <p class="{name(.)}">
- <a href="../copyright.html">
- <xsl:call-template name="gentext.element.name"/>
- </a>
- <xsl:call-template name="gentext.space"/>
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">copyright</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="$years" mode="titlepage.mode"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:call-template name="gentext.by"/>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
- <xsl:text>. </xsl:text>
- <a href="../warranty.html">No Warranty</a>
- <xsl:text>.</xsl:text>
- </p>
-</xsl:template>
-
-<!-- ==================================================================== -->
-
-</xsl:stylesheet>
+++ /dev/null
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
- xmlns:verb="com.nwalsh.saxon.Verbatim"
- exclude-result-prefixes="src verb"
- version="1.0">
-
-<xsl:import href="../../../../releasetools/ldocbook.xsl"/>
-
-<xsl:template match="src:fragment" mode="label.markup">
- <xsl:text>§</xsl:text>
- <xsl:number from="/" level="any" format="1"/>
-</xsl:template>
-
-<xsl:template match="src:fragment" mode="xref-to">
- <xsl:variable name="section" select="ancestor::refentry[1]"/>
-
- <i>
- <xsl:text>§</xsl:text>
- <xsl:apply-templates select="$section" mode="label.markup"/>
- <xsl:number from="/" level="any"/>
- <xsl:text>. </xsl:text>
- <xsl:apply-templates select="$section" mode="title.markup"/>
- </i>
-</xsl:template>
-
-<xsl:template match="src:fragment" mode="xref-to-section">
- <xsl:variable name="section" select="ancestor::refentry[1]"/>
-
- <i>
- <xsl:text>§</xsl:text>
- <xsl:apply-templates select="$section" mode="label.markup"/>
- <xsl:number from="/" level="any"/>
- </i>
-</xsl:template>
-
-<xsl:template match="src:fragment">
- <xsl:param name="suppress-numbers" select="'0'"/>
- <xsl:param name="linenumbering" select="'numbered'"/>
-
- <xsl:variable name="section" select="ancestor::section[1]"/>
- <xsl:variable name="id" select="@id"/>
- <xsl:variable name="referents"
- select="//src:fragment[.//src:fragref[@linkend=$id]]"/>
-
- <a name="{@id}"/>
- <table border="1" width="100%">
- <tr>
- <td>
- <p>
- <b>
- <xsl:apply-templates select="." mode="label.markup"/>
- </b>
- <xsl:if test="$referents">
- <xsl:text>: </xsl:text>
- <xsl:for-each select="$referents">
- <xsl:if test="position() > 1">, </xsl:if>
- <a href="#{@id}">
- <xsl:apply-templates select="." mode="label.markup"/>
- </a>
- </xsl:for-each>
- </xsl:if>
- </p>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="$suppress-numbers = '0'
- and $linenumbering = 'numbered'
- and $use.extensions != '0'
- and $linenumbering.extension != '0'">
- <xsl:variable name="rtf">
- <xsl:apply-templates/>
- </xsl:variable>
- <pre class="{name(.)}">
- <xsl:copy-of select="verb:numberLines($rtf)"/>
- </pre>
- </xsl:when>
- <xsl:otherwise>
- <pre class="{name(.)}">
- <xsl:apply-templates/>
- </pre>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
-</xsl:template>
-
-</xsl:stylesheet>