summaryrefslogtreecommitdiff
path: root/xhtml/refentry.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml/refentry.xsl')
-rw-r--r--xhtml/refentry.xsl121
1 files changed, 58 insertions, 63 deletions
diff --git a/xhtml/refentry.xsl b/xhtml/refentry.xsl
index a038afe..f64f169 100644
--- a/xhtml/refentry.xsl
+++ b/xhtml/refentry.xsl
@@ -1,21 +1,16 @@
-<?xml version="1.0" encoding="ASCII"?>
-<!--This file was created automatically by html2xhtml-->
-<!--from the HTML stylesheets.-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
+<?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0">
<!-- ********************************************************************
- $Id: refentry.xsl 9962 2015-04-30 17:35:04Z bobstayton $
- ********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://docbook.sf.net/release/xsl/current/ for
+ See ../README or http://cdn.docbook.org/release/xsl/current/ for
copyright and other information.
******************************************************************** -->
<!-- ==================================================================== -->
-<xsl:template match="reference">
+<xsl:template match="d:reference">
<xsl:call-template name="id.warning"/>
<div>
@@ -34,32 +29,32 @@
</xsl:call-template>
</xsl:variable>
- <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
+ <xsl:if test="not(d:partintro) and contains($toc.params, 'toc')">
<xsl:call-template name="division.toc"/>
</xsl:if>
<xsl:apply-templates/>
</div>
</xsl:template>
-<xsl:template match="reference" mode="division.number">
- <xsl:number from="book" count="reference" format="I."/>
+<xsl:template match="d:reference" mode="division.number">
+ <xsl:number from="d:book" count="d:reference" format="I."/>
</xsl:template>
-<xsl:template match="reference/docinfo"/>
-<xsl:template match="reference/referenceinfo"/>
-<xsl:template match="reference/title"/>
-<xsl:template match="reference/subtitle"/>
-<xsl:template match="reference/titleabbrev"/>
+<xsl:template match="d:reference/d:docinfo"/>
+<xsl:template match="d:reference/d:referenceinfo"/>
+<xsl:template match="d:reference/d:title"/>
+<xsl:template match="d:reference/d:subtitle"/>
+<xsl:template match="d:reference/d:titleabbrev"/>
<!-- ==================================================================== -->
<xsl:template name="refentry.title">
<xsl:param name="node" select="."/>
- <xsl:variable name="refmeta" select="$node//refmeta"/>
- <xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
- <xsl:variable name="refnamediv" select="$node//refnamediv"/>
- <xsl:variable name="refname" select="$refnamediv//refname"/>
- <xsl:variable name="refdesc" select="$refnamediv//refdescriptor"/>
+ <xsl:variable name="refmeta" select="$node//d:refmeta"/>
+ <xsl:variable name="refentrytitle" select="$refmeta//d:refentrytitle"/>
+ <xsl:variable name="refnamediv" select="$node//d:refnamediv"/>
+ <xsl:variable name="refname" select="$refnamediv//d:refname"/>
+ <xsl:variable name="refdesc" select="$refnamediv//d:refdescriptor"/>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="$refentrytitle">
@@ -80,7 +75,7 @@
</h1>
</xsl:template>
-<xsl:template match="refentry">
+<xsl:template match="d:refentry">
<xsl:call-template name="id.warning"/>
<div>
@@ -90,7 +85,7 @@
<xsl:call-template name="id.attribute">
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
- <xsl:if test="$refentry.separator != 0 and preceding-sibling::refentry">
+ <xsl:if test="$refentry.separator != 0 and preceding-sibling::d:refentry">
<div class="refentry.separator">
<hr/>
</div>
@@ -104,17 +99,17 @@
</div>
</xsl:template>
-<xsl:template match="refentry/docinfo|refentry/refentryinfo"/>
-<xsl:template match="refentry/info"/>
+<xsl:template match="d:refentry/d:docinfo|d:refentry/d:refentryinfo"/>
+<xsl:template match="d:refentry/d:info"/>
-<xsl:template match="refentrytitle|refname|refdescriptor" mode="title">
+<xsl:template match="d:refentrytitle|d:refname|d:refdescriptor" mode="title">
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="refmeta">
+<xsl:template match="d:refmeta">
</xsl:template>
-<xsl:template match="manvolnum">
+<xsl:template match="d:manvolnum">
<xsl:if test="$refentry.xref.manvolnum != 0">
<xsl:text>(</xsl:text>
<xsl:apply-templates/>
@@ -122,14 +117,14 @@
</xsl:if>
</xsl:template>
-<xsl:template match="refmiscinfo">
+<xsl:template match="d:refmiscinfo">
</xsl:template>
-<xsl:template match="refentrytitle">
+<xsl:template match="d:refentrytitle">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
-<xsl:template match="refnamediv">
+<xsl:template match="d:refnamediv">
<div>
<xsl:call-template name="common.html.attributes">
<xsl:with-param name="inherit" select="1"/>
@@ -138,7 +133,7 @@
<xsl:call-template name="anchor"/>
<xsl:choose>
- <xsl:when test="preceding-sibling::refnamediv">
+ <xsl:when test="preceding-sibling::d:refnamediv">
<!-- no title on secondary refnamedivs! -->
</xsl:when>
<xsl:when test="$refentry.generate.name != 0">
@@ -151,11 +146,11 @@
<xsl:when test="$refentry.generate.title != 0">
<h2>
<xsl:choose>
- <xsl:when test="../refmeta/refentrytitle">
- <xsl:apply-templates select="../refmeta/refentrytitle"/>
+ <xsl:when test="../d:refmeta/d:refentrytitle">
+ <xsl:apply-templates select="../d:refmeta/d:refentrytitle"/>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates select="refname[1]"/>
+ <xsl:apply-templates select="d:refname[1]"/>
</xsl:otherwise>
</xsl:choose>
</h2>
@@ -168,16 +163,16 @@
</div>
</xsl:template>
-<xsl:template match="refname">
- <xsl:if test="not(preceding-sibling::refdescriptor)">
+<xsl:template match="d:refname">
+ <xsl:if test="not(preceding-sibling::d:refdescriptor)">
<xsl:apply-templates/>
- <xsl:if test="following-sibling::refname">
+ <xsl:if test="following-sibling::d:refname">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:if>
</xsl:template>
-<xsl:template match="refpurpose">
+<xsl:template match="d:refpurpose">
<xsl:if test="node()">
<xsl:text> </xsl:text>
<xsl:call-template name="dingbat">
@@ -189,7 +184,7 @@
</xsl:template>
<!-- This handles repurpose in TOC line to turn off any nested links -->
-<xsl:template match="refpurpose" mode="no.anchor.mode">
+<xsl:template match="d:refpurpose" mode="no.anchor.mode">
<xsl:if test="node()">
<xsl:text> </xsl:text>
<xsl:call-template name="dingbat">
@@ -200,13 +195,13 @@
</xsl:if>
</xsl:template>
-<xsl:template match="refdescriptor">
+<xsl:template match="d:refdescriptor">
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="refclass">
+<xsl:template match="d:refclass">
<xsl:if test="$refclass.suppress = 0">
- <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
+ <strong>
<xsl:if test="@role">
<xsl:value-of select="@role"/>
<xsl:text>: </xsl:text>
@@ -216,7 +211,7 @@
</xsl:if>
</xsl:template>
-<xsl:template match="refsynopsisdiv">
+<xsl:template match="d:refsynopsisdiv">
<div>
<xsl:call-template name="common.html.attributes">
<xsl:with-param name="inherit" select="1"/>
@@ -225,8 +220,8 @@
<xsl:call-template name="anchor"/>
<h2>
<xsl:choose>
- <xsl:when test="refsynopsisdiv/title|title">
- <xsl:apply-templates select="(refsynopsisdiv/title|title)[1]" mode="titlepage.mode"/>
+ <xsl:when test="d:refsynopsisdiv/d:title|d:title">
+ <xsl:apply-templates select="(d:refsynopsisdiv/d:title|d:title)[1]" mode="titlepage.mode"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="gentext">
@@ -239,16 +234,16 @@
</div>
</xsl:template>
-<xsl:template match="refsynopsisdivinfo"/>
+<xsl:template match="d:refsynopsisdivinfo"/>
-<xsl:template match="refsynopsisdiv/title">
+<xsl:template match="d:refsynopsisdiv/d:title">
</xsl:template>
-<xsl:template match="refsynopsisdiv/title" mode="titlepage.mode">
+<xsl:template match="d:refsynopsisdiv/d:title" mode="titlepage.mode">
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="refsection|refsect1|refsect2|refsect3">
+<xsl:template match="d:refsection|d:refsect1|d:refsect2|d:refsect3">
<div>
<xsl:call-template name="common.html.attributes">
<xsl:with-param name="inherit" select="1"/>
@@ -260,17 +255,17 @@
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
<!-- pick up info title -->
- <xsl:apply-templates select="(title|info/title)[1]"/>
- <xsl:apply-templates select="node()[not(self::title) and not(self::info)]"/>
+ <xsl:apply-templates select="(d:title|d:info/d:title)[1]"/>
+ <xsl:apply-templates select="node()[not(self::d:title) and not(self::d:info)]"/>
</div>
</xsl:template>
-<xsl:template match="refsection/title|refsection/info/title">
+<xsl:template match="d:refsection/d:title|d:refsection/d:info/d:title">
<!-- the ID is output in the block.object call for refsect1 -->
- <xsl:variable name="level" select="count(ancestor-or-self::refsection)"/>
+ <xsl:variable name="level" select="count(ancestor-or-self::d:refsection)"/>
<xsl:variable name="refsynopsisdiv">
<xsl:text>0</xsl:text>
- <xsl:if test="ancestor::refsynopsisdiv">1</xsl:if>
+ <xsl:if test="ancestor::d:refsynopsisdiv">1</xsl:if>
</xsl:variable>
<xsl:variable name="hlevel">
<xsl:choose>
@@ -285,33 +280,33 @@
</xsl:element>
</xsl:template>
-<xsl:template match="refsect1/title|refsect1/info/title">
+<xsl:template match="d:refsect1/d:title|d:refsect1/d:info/d:title">
<!-- the ID is output in the block.object call for refsect1 -->
<h2>
<xsl:apply-templates/>
</h2>
</xsl:template>
-<xsl:template match="refsect2/title|refsect2/info/title">
+<xsl:template match="d:refsect2/d:title|d:refsect2/d:info/d:title">
<!-- the ID is output in the block.object call for refsect2 -->
<h3>
<xsl:apply-templates/>
</h3>
</xsl:template>
-<xsl:template match="refsect3/title|refsect3/info/title">
+<xsl:template match="d:refsect3/d:title|d:refsect3/d:info/d:title">
<!-- the ID is output in the block.object call for refsect3 -->
<h4>
<xsl:apply-templates/>
</h4>
</xsl:template>
-<xsl:template match="refsectioninfo|refsection/info"/>
-<xsl:template match="refsect1info|refsect1/info"/>
-<xsl:template match="refsect2info|refsect2/info"/>
-<xsl:template match="refsect3info|refsect3/info"/>
+<xsl:template match="d:refsectioninfo|d:refsection/d:info"/>
+<xsl:template match="d:refsect1info|d:refsect1/d:info"/>
+<xsl:template match="d:refsect2info|d:refsect2/d:info"/>
+<xsl:template match="d:refsect3info|d:refsect3/d:info"/>
<!-- ==================================================================== -->
-</xsl:stylesheet>
+</xsl:stylesheet> \ No newline at end of file