|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
-->
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
version='1.0'
|
|
Packit |
e4b6da |
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
|
|
Packit |
e4b6da |
exclude-result-prefixes="doc xsl"
|
|
Packit |
e4b6da |
xml:lang="en">
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:import href="extract-jrefentry.xsl" />
|
|
Packit |
e4b6da |
<xsl:include href="../backend/string.xsl" />
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:param name="process-includes" select="true()" />
|
|
Packit |
e4b6da |
<xsl:param name="process-imports" select="false() " />
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template match="/">
|
|
Packit |
e4b6da |
<part>
|
|
Packit |
e4b6da |
<partinfo>
|
|
Packit |
e4b6da |
<subjectset scheme="texinfo-directory">
|
|
Packit |
e4b6da |
<subject><subjectterm>Document Preparation</subjectterm></subject>
|
|
Packit |
e4b6da |
</subjectset>
|
|
Packit |
e4b6da |
<abstract role="texinfo-node"><para>.</para></abstract>
|
|
Packit |
e4b6da |
</partinfo>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<title>
|
|
Packit |
e4b6da |
<xsl:copy-of select="$title" />
|
|
Packit |
e4b6da |
</title>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<partintro>
|
|
Packit |
e4b6da |
<title>Guide to the stylesheet reference</title>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<para>
|
|
Packit |
e4b6da |
For the most part, this reference assumes knowledge of XSLT.
|
|
Packit |
e4b6da |
But if you are not familiar with XSLT, you can still look
|
|
Packit |
e4b6da |
at the page of stylesheet parameters; they are the commonly
|
|
Packit |
e4b6da |
used options to the stylesheets that may be directly
|
|
Packit |
e4b6da |
set from the command line. Also take a look at the
|
|
Packit |
e4b6da |
introductory text to each XSL file, which gives some
|
|
Packit |
e4b6da |
general advice to tweaking the output of the stylesheets.
|
|
Packit |
e4b6da |
</para>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<para>
|
|
Packit |
e4b6da |
In the lists of stylesheet items, the following symbols are
|
|
Packit |
e4b6da |
prefixed before each item to indicate their type:
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<variablelist>
|
|
Packit |
e4b6da |
<varlistentry>
|
|
Packit |
e4b6da |
<term>[P]</term>
|
|
Packit |
e4b6da |
<listitem><para>A global parameter.</para>
|
|
Packit |
e4b6da |
<para>The synopsis for the parameter
|
|
Packit |
e4b6da |
shows its default value.</para></listitem>
|
|
Packit |
e4b6da |
</varlistentry>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<varlistentry>
|
|
Packit |
e4b6da |
<term>[V]</term>
|
|
Packit |
e4b6da |
<listitem><para>A global variable.</para></listitem>
|
|
Packit |
e4b6da |
</varlistentry>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<varlistentry>
|
|
Packit |
e4b6da |
<term>[M]</term>
|
|
Packit |
e4b6da |
<listitem><para>A template mode.</para></listitem>
|
|
Packit |
e4b6da |
</varlistentry>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<varlistentry>
|
|
Packit |
e4b6da |
<term>[T]</term>
|
|
Packit |
e4b6da |
<listitem><para>A named template.</para></listitem>
|
|
Packit |
e4b6da |
</varlistentry>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<varlistentry>
|
|
Packit |
e4b6da |
<term>[t <replaceable>mode</replaceable>]</term>
|
|
Packit |
e4b6da |
<listitem>
|
|
Packit |
e4b6da |
<para>
|
|
Packit |
e4b6da |
A template with a
|
|
Packit |
e4b6da |
<sgmltag class="attribute">match</sgmltag> attribute,
|
|
Packit |
e4b6da |
for the given mode. If <replaceable>mode</replaceable>
|
|
Packit |
e4b6da |
is omitted, that means the default mode.
|
|
Packit |
e4b6da |
</para>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<para>
|
|
Packit |
e4b6da |
These usually have no description; they are just
|
|
Packit |
e4b6da |
listed so that you know the template exists.
|
|
Packit |
e4b6da |
</para>
|
|
Packit |
e4b6da |
</listitem>
|
|
Packit |
e4b6da |
</varlistentry>
|
|
Packit |
e4b6da |
</variablelist>
|
|
Packit |
e4b6da |
</para>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
</partintro>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:apply-templates />
|
|
Packit |
e4b6da |
</part>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:strip-space elements="xsl:stylesheet"/>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="display-filename">
|
|
Packit |
e4b6da |
<xsl:param name="filename" />
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:call-template name="string-subst">
|
|
Packit |
e4b6da |
<xsl:with-param name="content">
|
|
Packit |
e4b6da |
<xsl:call-template name="string-subst">
|
|
Packit |
e4b6da |
<xsl:with-param name="content" select="$filename" />
|
|
Packit |
e4b6da |
<xsl:with-param name="replace" select="'.xsl'" />
|
|
Packit |
e4b6da |
<xsl:with-param name="with" select="''" />
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:with-param>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:with-param name="replace" select="'../'" />
|
|
Packit |
e4b6da |
<xsl:with-param name="with" select="''" />
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template match="xsl:include" mode="process-includes">
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:apply-templates select="document(@href)/*">
|
|
Packit |
e4b6da |
<xsl:with-param name="filename" select="@href" />
|
|
Packit |
e4b6da |
</xsl:apply-templates>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template match="xsl:import" mode="process-includes">
|
|
Packit |
e4b6da |
<xsl:if test="$process-imports">
|
|
Packit |
e4b6da |
<xsl:apply-templates select="document(@href)/*">
|
|
Packit |
e4b6da |
<xsl:with-param name="filename" select="@href" />
|
|
Packit |
e4b6da |
</xsl:apply-templates>
|
|
Packit |
e4b6da |
</xsl:if>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
</xsl:stylesheet>
|