summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-06-13 15:48:13 -0500
committerShaun McCance <shaunm@gnome.org>2010-06-13 15:48:13 -0500
commitf4c24db29a50930992fdce6b0153cff28e9d2b35 (patch)
treecc17cd9a473697269bf1ebf8fe280fcee95ff64e /xslt
parent651e9d1c2be866e7eff33a66da954107fec01042 (diff)
downloadyelp-tools-f4c24db29a50930992fdce6b0153cff28e9d2b35.tar.gz
Removing g-d-u files that aren't used in yelp-tools
Diffstat (limited to 'xslt')
-rw-r--r--xslt/Makefile.am1
-rw-r--r--xslt/common/Makefile.am6
-rw-r--r--xslt/common/theme.xsl269
-rw-r--r--xslt/common/utils.xsl82
-rw-r--r--xslt/docbook/Makefile.am1
-rw-r--r--xslt/docbook/common/Makefile.am15
-rw-r--r--xslt/docbook/common/db-chunk.xsl585
-rw-r--r--xslt/docbook/common/db-common.xsl295
-rw-r--r--xslt/docbook/common/db-format.xml.in10
-rw-r--r--xslt/docbook/common/db-label.xsl829
-rw-r--r--xslt/docbook/common/db-title.xsl1281
-rw-r--r--xslt/docbook/common/db-xref.xsl456
-rw-r--r--xslt/docbook/html/Makefile.am36
-rw-r--r--xslt/docbook/html/TODO12
-rw-r--r--xslt/docbook/html/db2html-autotoc.xsl247
-rw-r--r--xslt/docbook/html/db2html-bibliography.xsl643
-rw-r--r--xslt/docbook/html/db2html-block.xsl684
-rw-r--r--xslt/docbook/html/db2html-callout.xsl147
-rw-r--r--xslt/docbook/html/db2html-classsynopsis.xsl590
-rw-r--r--xslt/docbook/html/db2html-cmdsynopsis.xsl524
-rw-r--r--xslt/docbook/html/db2html-css.xsl501
-rw-r--r--xslt/docbook/html/db2html-division.xsl1399
-rw-r--r--xslt/docbook/html/db2html-ebnf.xsl66
-rw-r--r--xslt/docbook/html/db2html-footnote.xsl220
-rw-r--r--xslt/docbook/html/db2html-funcsynopsis.xsl194
-rw-r--r--xslt/docbook/html/db2html-index.xsl230
-rw-r--r--xslt/docbook/html/db2html-info.xsl789
-rw-r--r--xslt/docbook/html/db2html-inline.xsl1148
-rw-r--r--xslt/docbook/html/db2html-l10n.xsl163
-rw-r--r--xslt/docbook/html/db2html-list.xsl564
-rw-r--r--xslt/docbook/html/db2html-media.xsl244
-rw-r--r--xslt/docbook/html/db2html-qanda.xsl156
-rw-r--r--xslt/docbook/html/db2html-refentry.xsl228
-rw-r--r--xslt/docbook/html/db2html-suppressed.xsl109
-rw-r--r--xslt/docbook/html/db2html-table.xsl1131
-rw-r--r--xslt/docbook/html/db2html-title.xsl126
-rw-r--r--xslt/docbook/html/db2html-xref.xsl159
-rw-r--r--xslt/docbook/html/db2html.xsl86
-rw-r--r--xslt/docbook/html/db2xhtml.xsl85
-rw-r--r--xslt/docbook/html/elements406
-rwxr-xr-xxslt/docbook/html/report.sh19
-rw-r--r--xslt/docbook/html/report.xslt196
-rw-r--r--xslt/docbook/omf/Makefile.am5
-rw-r--r--xslt/docbook/omf/db2omf.xsl672
-rw-r--r--xslt/docbook/utils/Makefile.am6
-rw-r--r--xslt/docbook/utils/chunks.xsl57
-rw-r--r--xslt/docbook/utils/credits.xsl49
-rw-r--r--xslt/docbook/utils/figures.xsl45
-rw-r--r--xslt/docbook/utils/graphics.xsl59
-rw-r--r--xslt/docbook/utils/ids.xsl33
-rw-r--r--xslt/gettext/.gitignore1
-rw-r--r--xslt/gettext/Makefile.am17
-rw-r--r--xslt/gettext/gettext.xsl1015
-rw-r--r--xslt/gettext/l10n-numbers.xsl390
-rw-r--r--xslt/gettext/l10n.xml.in2433
-rw-r--r--xslt/mallard/Makefile.am1
-rw-r--r--xslt/mallard/cache/Makefile.am5
-rw-r--r--xslt/mallard/cache/mal-cache.xsl192
-rw-r--r--xslt/mallard/common/Makefile.am5
-rw-r--r--xslt/mallard/common/mal-chunk.xsl92
-rw-r--r--xslt/mallard/common/mal-link.xsl570
-rw-r--r--xslt/mallard/html/Makefile.am14
-rw-r--r--xslt/mallard/html/mal2html-block.xsl366
-rw-r--r--xslt/mallard/html/mal2html-css.xsl560
-rw-r--r--xslt/mallard/html/mal2html-inline.xsl284
-rw-r--r--xslt/mallard/html/mal2html-list.xsl268
-rw-r--r--xslt/mallard/html/mal2html-media.xsl191
-rw-r--r--xslt/mallard/html/mal2html-page.xsl679
-rw-r--r--xslt/mallard/html/mal2html-table.xsl513
-rw-r--r--xslt/mallard/html/mal2html.xsl73
-rw-r--r--xslt/mallard/html/mal2xhtml.xsl72
71 files changed, 0 insertions, 23599 deletions
diff --git a/xslt/Makefile.am b/xslt/Makefile.am
deleted file mode 100644
index d9466fd..0000000
--- a/xslt/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = gettext docbook mallard common # gettext needs to be first
diff --git a/xslt/common/Makefile.am b/xslt/common/Makefile.am
deleted file mode 100644
index 0414184..0000000
--- a/xslt/common/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/common
-
-xsl_DATA = theme.xsl utils.xsl
-
-EXTRA_DIST=$(xsl_DATA)
-
diff --git a/xslt/common/theme.xsl b/xslt/common/theme.xsl
deleted file mode 100644
index 23ad2f9..0000000
--- a/xslt/common/theme.xsl
+++ /dev/null
@@ -1,269 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<!--!!==========================================================================
-Themes
-:Requires: gettext
-
-This module provides a common interface to specify custom colors and icons
-for transformations to presentation-oreinted formats. This allows similar
-output for different types of input documents. Theme information may either
-be passed in as XSLT parameters or specified in a theme file.
-
-REMARK: Describe the format of theme files.
--->
-
-
-<!-- == Colors ============================================================= -->
-
-<!--@@==========================================================================
-theme.color.background
-The background color
-
-This parameter specifies the default background color.
--->
-<xsl:param name="theme.color.background" select="'#ffffff'"/>
-
-<!--@@==========================================================================
-theme.color.link
-The color of links
-
-If set, this parameter specifies the color for unvisited links.
--->
-<xsl:param name="theme.color.link" select="'#1f609f'"/>
-
-<!--@@==========================================================================
-theme.color.link_visited
-The color of visited links
-
-This parameter specifies the color for visited links.
--->
-<xsl:param name="theme.color.link_visited" select="'#9f1f6f'"/>
-
-<!--@@==========================================================================
-theme.color.text
-The normal text color
-
-This parameter specifies the default color for normal text.
--->
-<xsl:param name="theme.color.text" select="'#000000'"/>
-
-<!--@@==========================================================================
-theme.color.text_light
-The light text color
-
-This parameter specifies the color for light text. The light text
-color is used to make bold headings and certain parenthetical text less intense.
--->
-<xsl:param name="theme.color.text_light" select="'#3f3f3f'"/>
-
-<!--@@==========================================================================
-theme.color.blue_background
-The blue background color
-
-This parameter specifies the blue background color. The blue
-background color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.blue_background" select="'#f0f9ff'"/>
-
-<!--@@==========================================================================
-theme.color.blue_border
-The blue border color
-
-This parameter specifies the blue border color. The blue
-border color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.blue_border" select="'#c0c9ff'"/>
-
-<!--@@==========================================================================
-theme.color.gray_background
-The gray background color
-
-This parameter specifies the gray background color. The gray
-background color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.gray_background" select="'#f9f9f6'"/>
-
-<!--@@==========================================================================
-theme.color.gray_border
-The gray border color
-
-This parameter specifies the gray border color. The gray
-border color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.gray_border" select="'#e0e0df'"/>
-
-<!--@@==========================================================================
-theme.color.red_background
-The red background color
-
-This parameter specifies the red background color. The red
-background color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.red_background" select="'#fff0f0'"/>
-
-<!--@@==========================================================================
-theme.color.red_border
-The red border color
-
-This parameter specifies the red border color. The red
-border color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.red_border" select="'#ffc0c0'"/>
-
-<!--@@==========================================================================
-theme.color.yellow_background
-The yellow background color
-
-This parameter specifies the yellow background color. The yellow
-background color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.yellow_background" select="'#fffff0'"/>
-
-<!--@@==========================================================================
-theme.color.yellow_border
-The yellow border color
-
-This parameter specifies the yellow border color. The yellow
-border color may be used by certain types of block elements.
--->
-<xsl:param name="theme.color.yellow_border" select="'#ffffc0'"/>
-
-
-<!-- == Admonition Icons =================================================== -->
-
-<!--@@==========================================================================
-theme.icon.admon.path
-The default path to the admonition icons
-
-This parameter specifies a default path where admonition icons can be found.
-This is only a default path. It has no effect on admonition icons for which
-the corresponding parameter has been specified explicitly.
--->
-<xsl:param name="theme.icon.admon.path" select="''"/>
-
-<!--@@==========================================================================
-theme.icon.admon.size
-The size of the admonition icons
-
-This parameter specifies the size of the icons given in @{theme.icon.admon.bug},
-@{theme.icon.admon.caution}, @{theme.icon.admon.important}, @{theme.icon.admon.note},
-@{theme.icon.admon.tip}, and @{theme.icon.admon.warning}. The value of this parameter
-should be a single integer specifying both the width and the height in pixels. Icon
-sizes are assumed to be square.
--->
-<xsl:param name="theme.icon.admon.size" select="48"/>
-
-<!--@@==========================================================================
-theme.icon.admon.bug
-The path for the bug admonition icon
-
-This parameter specifies the icon used for bug admonitions.
--->
-<xsl:param name="theme.icon.admon.bug"
- select="concat($theme.icon.admon.path, 'admon-bug.png')"/>
-
-<!--@@==========================================================================
-theme.icon.admon.caution
-The path for the caution admonition icon
-
-This parameter specifies the icon used for caution admonitions.
--->
-<xsl:param name="theme.icon.admon.caution"
- select="concat($theme.icon.admon.path, 'admon-caution.png')"/>
-
-<!--@@==========================================================================
-theme.icon.admon.important
-The path for the important admonition icon
-
-This parameter specifies the icon used for important admonitions.
--->
-<xsl:param name="theme.icon.admon.important"
- select="concat($theme.icon.admon.path, 'admon-important.png')"/>
-
-<!--@@==========================================================================
-theme.icon.admon.note
-The path for the note admonition icon
-
-This parameter specifies the icon used for note admonitions.
--->
-<xsl:param name="theme.icon.admon.note"
- select="concat($theme.icon.admon.path, 'admon-note.png')"/>
-
-<!--@@==========================================================================
-theme.icon.admon.tip
-The path for the tip admonition icon
-
-This parameter specifies the icon used for tip admonitions.
--->
-<xsl:param name="theme.icon.admon.tip"
- select="concat($theme.icon.admon.path, 'admon-tip.png')"/>
-
-<!--@@==========================================================================
-theme.icon.admon.warning
-The path for the warning admonition icon
-
-This parameter specifies the icon used for warning admonitions.
--->
-<xsl:param name="theme.icon.admon.warning"
- select="concat($theme.icon.admon.path, 'admon-warning.png')"/>
-
-
-<!-- == Watermarks ========================================================= -->
-
-<!--@@==========================================================================
-theme.watermark.path
-The default path to the watermark graphics
-
-This parameter specifies a default path where watermark graphics can be found.
-This is only a default path. It has no effect on watermark graphics for which
-the corresponding parameter has been specified explicitly.
--->
-<xsl:param name="theme.watermark.path" select="''"/>
-
-<!--@@==========================================================================
-theme.watermark.blockquote
-The path for the blockquote watermark graphic
-
-This parameter specifies the graphic file used for blockquote watermarks. Note
-that the default graphic is translatable. If you set this parameter, you should
-ensure that your graphic uses a suitable quote character for the language your
-document is written in.
--->
-<xsl:param name="theme.watermark.blockquote">
- <xsl:value-of select="$theme.watermark.path"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'watermark-blockquote-201C.png'"/>
- </xsl:call-template>
-</xsl:param>
-
-<!--@@==========================================================================
-theme.watermark.code
-The path for the code block watermark graphic
-
-This parameter specifies the graphic file used for code block watermarks.
--->
-<xsl:param name="theme.watermark.code">
- <xsl:value-of select="$theme.watermark.path"/>
- <xsl:text>watermark-code.png</xsl:text>
-</xsl:param>
-
-</xsl:stylesheet>
diff --git a/xslt/common/utils.xsl b/xslt/common/utils.xsl
deleted file mode 100644
index 55315d5..0000000
--- a/xslt/common/utils.xsl
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<!--!!==========================================================================
-Common XSLT Utilities
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-utils.strip_newlines
-Strips leading or trailing newlines from a string
-$string: The string to strip newlines from
-$leading: Whether to strip leading newlines
-$trailing: Whether to strip trailing newlines
-
-This template strips at most one leading and one trailing newline from
-${string}. This is useful for preformatted block elements where leading and
-trailing newlines are ignored to make source formatting easier for authors.
--->
-<xsl:template name="utils.strip_newlines">
- <xsl:param name="string"/>
- <xsl:param name="leading" select="false()"/>
- <xsl:param name="trailing" select="false()"/>
- <xsl:choose>
- <xsl:when test="$leading">
- <xsl:variable name="new">
- <xsl:choose>
- <xsl:when test="starts-with($string, '&#x000A;')">
- <xsl:value-of select="substring($string, 2)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$trailing">
- <xsl:call-template name="utils.strip_newlines">
- <xsl:with-param name="string" select="$new"/>
- <xsl:with-param name="leading" select="false()"/>
- <xsl:with-param name="trailing" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$new"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$trailing">
- <xsl:choose>
- <xsl:when test="substring($string, string-length($string)) = '&#x000A;'">
- <xsl:value-of select="substring($string, 1, string-length($string) - 1 )"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/Makefile.am b/xslt/docbook/Makefile.am
deleted file mode 100644
index 74a0fc3..0000000
--- a/xslt/docbook/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = common html omf utils
diff --git a/xslt/docbook/common/Makefile.am b/xslt/docbook/common/Makefile.am
deleted file mode 100644
index 99c1196..0000000
--- a/xslt/docbook/common/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-# Not using INTLTOOL_XML_RULE because of it causes db-format.xml to be
-# rebuilt in the tarball, which causes docs to be rebuilt, which causes
-# translated docs to be rebuilt, which requires xml2po, which breaks
-# --disable-build-utils
-
-xsldir=$(datadir)/xml/gnome/xslt/docbook/common
-
-xsl_DATA = \
- db-chunk.xsl \
- db-common.xsl \
- db-label.xsl \
- db-title.xsl \
- db-xref.xsl
-
-EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/docbook/common/db-chunk.xsl b/xslt/docbook/common/db-chunk.xsl
deleted file mode 100644
index 36dde6e..0000000
--- a/xslt/docbook/common/db-chunk.xsl
+++ /dev/null
@@ -1,585 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns:set="http://exslt.org/sets"
- extension-element-prefixes="exsl"
- exclude-result-prefixes="set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook Chunking
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-db.chunk.chunks
-A space-seperated list of the names of elements that should be chunked
-
-REMARK: This parameter sucks
--->
-<xsl:param name="db.chunk.chunks" select="
- 'appendix article bibliography bibliodiv book chapter
- colophon dedication glossary glossdiv index
- lot part preface refentry reference
- sect1 sect2 sect3 sect4 sect5
- section setindex simplesect toc'"/>
-<xsl:variable name="db.chunk.chunks_" select="concat(' ', $db.chunk.chunks, ' ')"/>
-
-
-<!--@@==========================================================================
-db.chunk.chunk_top
-Whether the top-level chunk should be output with the chunking mechanism
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.chunk_top" select="false()"/>
-
-
-<!--@@==========================================================================
-db.chunk.max_depth
-The maximum depth for chunking sections
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.max_depth">
- <xsl:choose>
- <xsl:when test="number(processing-instruction('db.chunk.max_depth'))">
- <xsl:value-of
- select="number(processing-instruction('db.chunk.max_depth'))"/>
- </xsl:when>
- <xsl:when test="/book">
- <xsl:value-of select="2"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-db.chunk.basename
-The base filename of the output file, without an extension
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.basename" select="/*/@id"/>
-
-
-<!--@@==========================================================================
-db.chunk.extension
-The default file extension for new output documents
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.extension"/>
-
-
-<!--@@==========================================================================
-db.chunk.info_chunk
-Whether to create a chunk for the title page
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.info_chunk" select="$db.chunk.max_depth != 0"/>
-
-
-<!--@@==========================================================================
-db.chunk.info_basename
-The base filename for the title page
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.info_basename">
- <xsl:choose>
- <xsl:when test="$db.chunk.basename">
- <xsl:value-of select="concat($db.chunk.basename, '-info')"/>
- </xsl:when>
- <xsl:otherwise>info</xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-db.chunk.doctype_public
-The public DOCTYPE for output files
-
-REMARK: Describe this
--->
-<xsl:param name="db.chunk.doctype_public"/>
-
-
-<!--@@==========================================================================
-db.chunk.doctype_system
-The system DOCTYPE for output files
-
-REMARK: Describe this
--->
-<xsl:param name="db.chunk.doctype_system"/>
-
-
-<!--**==========================================================================
-db.chunk
-Creates a new page of output
-$node: The source element for the output page
-$template: The named template to call to create the page
-$href: The name of the file for the output page
-$depth_of_chunk: The depth of this chunk in the document
-
-REMARK: We need a lot more explanation about chunk flow
-
-The *{db.chunk} template creates a new output document using the #{exsl:document}
-extension element. This template calls *{db.chunk.content} to create the content
-of the document, passing through all parameters. This allows you to override the
-chunking mechanism without having to duplicate the content-generation code.
--->
-<xsl:template name="db.chunk">
- <xsl:param name="node" select="."/>
- <xsl:param name="template"/>
- <xsl:param name="href">
- <xsl:choose>
- <xsl:when test="$template = 'info'">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$node"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="$db.chunk.extension"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <exsl:document href="{$href}"
- doctype-public="{$db.chunk.doctype_public}"
- doctype-system="{$db.chunk.doctype_system}">
- <xsl:call-template name="db.chunk.content">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="template" select="$template"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </exsl:document>
- <xsl:if test="string($template) = ''">
- <xsl:call-template name="db.chunk.children">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.content
-Creates the content of a new page of output
-$node: The source element for the output page
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of this chunk in the document
-
-REMARK: We need a lot more explanation about chunk flow
-
-The *{db.chunk.content} template creates the actual content of a new output page.
-It should generally only be called by *{db.chunk}.
-
-This template will always pass the ${depth_in_chunk} and ${depth_of_chunk}
-parameters with appropriate values to the templates it calls.
--->
-<xsl:template name="db.chunk.content">
- <xsl:param name="node" select="."/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$template = 'info'">
- <xsl:apply-templates mode="db.chunk.info.content.mode" select="$node">
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="db.chunk.content.mode" select="$node">
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.children
-Creates new output pages for the children of an element
-$node: The parent element whose children will be chunked
-$depth_of_chunk: The depth of ${node} in the document
-
-REMARK: We need a lot more explanation about chunk flow
--->
-<xsl:template name="db.chunk.children">
- <xsl:param name="node" select="."/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:if test="$depth_of_chunk &lt; $db.chunk.max_depth">
- <xsl:for-each select="
- $node/appendix | $node/article | $node/bibliography |
- $node/bibliodiv |
- $node/book | $node/chapter | $node/colophon |
- $node/dedication | $node/glossary | $node/glossdiv |
- $node/index | $node/lot | $node/part |
- $node/preface | $node/refentry | $node/reference |
- $node/sect1 | $node/sect2 | $node/sect3 |
- $node/sect4 | $node/sect5 | $node/section |
- $node/setindex | $node/simplesect | $node/toc ">
- <xsl:call-template name="db.chunk">
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk + 1"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:if>
- <xsl:if test="$db.chunk.info_chunk and $depth_of_chunk = 0">
- <xsl:call-template name="db.chunk">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="template" select="'info'"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk + 1"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.depth-in-chunk
-Determines the depth of an element in the containing chunk
-$node: The element to determine the depth of
-
-REMARK: Explain how this works
--->
-<xsl:template name="db.chunk.depth-in-chunk">
- <xsl:param name="node" select="."/>
- <xsl:variable name="divs"
- select="
- count($node/ancestor-or-self::appendix ) +
- count($node/ancestor-or-self::article ) +
- count($node/ancestor-or-self::bibliography ) +
- count($node/ancestor-or-self::bibliodiv ) +
- count($node/ancestor-or-self::book ) +
- count($node/ancestor-or-self::chapter ) +
- count($node/ancestor-or-self::colophon ) +
- count($node/ancestor-or-self::dedication ) +
- count($node/ancestor-or-self::glossary ) +
- count($node/ancestor-or-self::glossdiv ) +
- count($node/ancestor-or-self::index ) +
- count($node/ancestor-or-self::lot ) +
- count($node/ancestor-or-self::part ) +
- count($node/ancestor-or-self::preface ) +
- count($node/ancestor-or-self::refentry ) +
- count($node/ancestor-or-self::reference ) +
- count($node/ancestor-or-self::sect1 ) +
- count($node/ancestor-or-self::sect2 ) +
- count($node/ancestor-or-self::sect3 ) +
- count($node/ancestor-or-self::sect4 ) +
- count($node/ancestor-or-self::sect5 ) +
- count($node/ancestor-or-self::section ) +
- count($node/ancestor-or-self::setindex ) +
- count($node/ancestor-or-self::simplesect ) +
- count($node/ancestor-or-self::toc )"/>
- <xsl:choose>
- <xsl:when test="$divs &lt; ($db.chunk.max_depth + 1)">
- <xsl:value-of select="count($node/ancestor-or-self::*) - $divs"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="count($node/ancestor::*) - $db.chunk.max_depth"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.depth-of-chunk
-Determines the depth of teh containing chunk in the document
-$node: The element to determine the depth of
-
-REMARK: Explain how this works
--->
-<xsl:template name="db.chunk.depth-of-chunk">
- <xsl:param name="node" select="."/>
- <xsl:variable name="divs"
- select="$node/ancestor-or-self::*
- [contains($db.chunk.chunks_,
- concat(' ', local-name(.), ' '))]"/>
- <xsl:choose>
- <xsl:when test="count($divs) - 1 &lt; $db.chunk.max_depth">
- <xsl:value-of select="count($divs) - 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db.chunk.max_depth"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.chunk-id
-Determines the id of the chunk that contains an element
-$id: The id of the element to determine the chunk id of
-$node: The element to determine the chunk id of
-$depth_in_chunk: The depth of ${node} in the containing chunk
-
-REMARK: Explain how this works
--->
-<xsl:template name="db.chunk.chunk-id">
- <xsl:param name="id" select="@id"/>
- <xsl:param name="node" select="key('idkey', $id)"/>
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="chunk" select="$node/ancestor-or-self::*[$depth_in_chunk + 1]"/>
- <xsl:choose>
- <xsl:when test="set:has-same-node($chunk, /*)">
- <xsl:value-of select="$db.chunk.basename"/>
- </xsl:when>
- <xsl:when test="$chunk/@id">
- <xsl:value-of select="string($chunk/@id)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="generate-id($chunk)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.chunk.chunk-id.axis
-Determines the id of the first chunk along a specified axis
-$node: The base element
-$node: The axis along which to find the first chunk
-$depth_in_chunk: The depth of ${node} in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-
-REMARK: Explain how this works, and what the axes are
--->
-<xsl:template name="db.chunk.chunk-id.axis">
- <xsl:param name="node" select="."/>
- <xsl:param name="axis"/>
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="depth_in_chunk != 0">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node/ancestor::*[$depth_in_chunk]"/>
- <xsl:with-param name="axis" select="$axis"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <!-- following -->
- <xsl:when test="$axis = 'following'">
- <xsl:variable name="divs"
- select="$node/following-sibling::*
- [contains($db.chunk.chunks_,
- concat(' ', local-name(.), ' '))]"/>
- <xsl:choose>
- <xsl:when test="$divs">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$divs[1]"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$divs[1]"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$node/..">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node/.."/>
- <xsl:with-param name="axis" select="'following'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk - 1"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <!-- last-descendant -->
- <xsl:when test="$axis = 'last-descendant'">
- <xsl:variable name="divs"
- select="$node/*[contains($db.chunk.chunks_,
- concat(' ', local-name(.), ' '))]"/>
- <xsl:choose>
- <xsl:when test="($depth_of_chunk &gt;= $db.chunk.max_depth)">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$node"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="($depth_of_chunk + 1 = $db.chunk.max_depth) and $divs">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$divs[last()]"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$divs[last()]"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$divs">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$divs[last()]"/>
- <xsl:with-param name="axis" select="'last-descendant'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk + 1"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$node"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- next -->
- <xsl:when test="$axis = 'next'">
- <xsl:variable name="divs"
- select="$node/*[contains($db.chunk.chunks_,
- concat(' ', local-name(.), ' '))]"/>
- <xsl:choose>
- <xsl:when test="($depth_of_chunk &lt; $db.chunk.max_depth) and $divs">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$divs[1]"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$divs[1]"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'following'"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- previous -->
- <xsl:when test="$axis = 'previous'">
- <xsl:variable name="divs"
- select="$node/preceding-sibling::*
- [contains($db.chunk.chunks_,
- concat(' ', local-name(.), ' '))]"/>
- <xsl:choose>
- <xsl:when test="$divs and ($depth_of_chunk &lt; $db.chunk.max_depth)">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$divs[last()]"/>
- <xsl:with-param name="axis" select="'last-descendant'"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$divs">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$divs[last()]"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$divs[last()]"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$node/..">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="chunk" select="$node"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <!-- unsupported -->
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>Unsupported axis: </xsl:text>
- <xsl:value-of select="$axis"/>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.chunk.info.content.mode
-Renders the contents of the title page
-$depth_in_chunk: The depth of the element in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-
-When processed in this mode, a division element should output the top-level
-markup for the output page.
--->
-<xsl:template mode="db.chunk.info.content.mode" match="*"/>
-
-
-<!--%%==========================================================================
-db.chunk.content.mode
-Renders the entire contents of the chunk
-$depth_in_chunk: The depth of the element in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-
-When processed in this mode, a division element should output the top-level
-markup for the output page.
--->
-<xsl:template mode="db.chunk.content.mode" match="*"/>
-
-
-<!-- == Matched Templates == -->
-
-<xsl:template match="/">
- <xsl:choose>
- <xsl:when test="$db.chunk.chunk_top">
- <xsl:call-template name="db.chunk">
- <xsl:with-param name="node" select="*[1]"/>
- <xsl:with-param name="depth_of_chunk" select="0"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="db.chunk.content.mode" select="*">
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="0"/>
- </xsl:apply-templates>
- <xsl:call-template name="db.chunk.children">
- <xsl:with-param name="node" select="*[1]"/>
- <xsl:with-param name="depth_of_chunk" select="0"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/common/db-common.xsl b/xslt/docbook/common/db-common.xsl
deleted file mode 100644
index fa0b1ce..0000000
--- a/xslt/docbook/common/db-common.xsl
+++ /dev/null
@@ -1,295 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
- exclude-result-prefixes="str"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook Common
-:Requires: gettext
-
-This stylesheet module provides utility templates for DocBook that are
-independant of the target format.
--->
-
-<xsl:key name="idkey" match="*" use="@id"/>
-
-
-<!--**==========================================================================
-db.copyright
-Outputs copyright information
-$node: The #{copyright} element to format
-
-This template outputs copyright information from a #{copyright} elements.
-It assembles the #{year} and #{holder} elements into a simple copyright
-notice, beginning with the copyright symbol "©".
--->
-<xsl:template name="db.copyright">
- <xsl:param name="node" select="."/>
- <xsl:text>©&#x00A0;</xsl:text>
- <xsl:for-each select="$node/year">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- <xsl:if test="$node/holder">
- <xsl:text>&#x00A0;&#x00A0;</xsl:text>
- <xsl:for-each select="$node/holder">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.linenumbering
-Numbers each line in a verbatim environment
-$node: The verbatim element to create the line numbering for
-$number: The starting line number
-
-This template outputs a string with line numbers for each line in a verbatim
-elements. Each line number is on its own line, allowing the output string to
-be placed to the side of the verbatim output.
--->
-<xsl:template name="db.linenumbering">
- <xsl:param name="node" select="."/>
- <xsl:param name="number" select="1"/>
- <xsl:param name="string">
- <xsl:choose>
- <xsl:when test="$node/node()[1]/self::text() and starts-with($node/node()[1], '&#x000A;')">
- <xsl:value-of select="substring-after(string($node), '&#x000A;')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="string($node)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="contains($string, '&#x000A;')">
- <xsl:number value="$number"/>
- <xsl:text>&#x000A;</xsl:text>
- <xsl:call-template name="db.linenumbering">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="number" select="$number + 1"/>
- <xsl:with-param name="string"
- select="substring-after($string, '&#x000A;')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="string-length($string) != 0">
- <xsl:number value="$number"/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.linenumbering.start
-Determines the starting line number for a verbatim element
-$node: The verbatim element to determine the starting line number for
-
-This template determines the starting line number for a verbatim element using
-the #{continuation} attribute. The template finds the first preceding element
-of the same name, counts its lines, and handles any #{startinglinenumber} or
-#{continuation} element it finds on that element.
--->
-<xsl:template name="db.linenumbering.start">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="$node/@startinglinenumber">
- <xsl:value-of select="$node/@startinglinenumber"/>
- </xsl:when>
- <xsl:when test="$node/@continuation">
- <xsl:variable name="prev" select="$node/preceding::*[name(.) = name($node)][1]"/>
- <xsl:choose>
- <xsl:when test="count($prev) = 0">1</xsl:when>
- <xsl:otherwise>
- <xsl:variable name="prevcount">
- <xsl:value-of select="count(str:split(string($prev), '&#x000A;'))"/>
- </xsl:variable>
- <xsl:variable name="prevstart">
- <xsl:call-template name="db.linenumbering.start">
- <xsl:with-param name="node" select="$prev"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$prevstart + $prevcount"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.orderedlist.start
-Determines the number to use for the first #{listitem} in an #{orderedlist}
-$node: The #{orderedlist} element to use
-
-This template determines the starting number for an #{orderedlist} element using
-the #{continuation} attribute. Thi template finds the first preceding #{orderedlist}
-element and counts its list items. If that element also uses the #{continuation},
-this template calls itself recursively to add that element's starting line number
-to its list item count.
--->
-<xsl:template name="db.orderedlist.start">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="$node/@continutation != 'continues'">1</xsl:when>
- <xsl:otherwise>
- <xsl:variable name="prevlist"
- select="$node/preceding::orderedlist[1]"/>
- <xsl:choose>
- <xsl:when test="count($prevlist) = 0">1</xsl:when>
- <xsl:otherwise>
- <xsl:variable name="prevlength" select="count($prevlist/listitem)"/>
- <xsl:variable name="prevstart">
- <xsl:call-template name="db.orderedlist.start">
- <xsl:with-param name="node" select="$prevlist"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$prevstart + $prevlength"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.personname
-Outputs the name of a person
-$node: The element containing tags such as #{firstname} and #{surname}
-$lang: The language rules to use to construct the name
-
-This template outputs the name of a person as modelled by the #{personname}
-element. The #{personname} element allows authors to mark up components of
-a person's name, such as the person's first name and surname. This template
-assembles those into a string.
--->
-<xsl:template name="db.personname">
- <xsl:param name="node" select="."/>
- <!-- FIXME: call i18n.locale -->
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
-
- <!-- FIXME: Use xsl:choose for different language rules -->
- <xsl:if test="$node/honorific">
- <xsl:apply-templates select="$node/honorific[1]"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$node/@role = 'family-given'">
- <xsl:if test="$node/surname">
- <xsl:if test="$node/honorific">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/surname[1]"/>
- </xsl:if>
- <xsl:if test="$node/othername">
- <xsl:if test="$node/honorific or $node/surname">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/othername[1]"/>
- </xsl:if>
- <xsl:if test="$node/firstname">
- <xsl:if test="$node/honorific or $node/surname or $node/othername">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/firstname[1]"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$node/firstname">
- <xsl:if test="$node/honorific">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/firstname[1]"/>
- </xsl:if>
- <xsl:if test="$node/othername">
- <xsl:if test="$node/honorific or $node/firstname">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/othername[1]"/>
- </xsl:if>
- <xsl:if test="$node/surname">
- <xsl:if test="$node/honorific or $node/firstname or $node/othername">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="$node/surname[1]"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$node/lineage">
- <xsl:text>, </xsl:text>
- <xsl:apply-templates select="$node/lineage[1]"/>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.personname.list
-Outputs a list of people's names
-$nodes: The elements containing tags such as #{firstname} and #{surname}
-$lang: The language rules to use to construct the list of names
-
-This template outputs a list of names of people as modelled by the #{personname}
-element. The #{personname} element allows authors to mark up components of a
-person's name, such as the person's first name and surname. This template makes
-a list formatted according to the locale set in ${lang} and calls the template
-*{db.personname} for each element in ${nodes}.
--->
-<xsl:template name="db.personname.list">
- <xsl:param name="nodes"/>
- <!-- FIXME: call i18n.locale -->
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:for-each select="$nodes">
- <xsl:choose>
- <xsl:when test="position() = 1"/>
- <xsl:when test="last() = 2">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="' and '"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="position() = last()">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', and '"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:for-each>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/common/db-format.xml.in b/xslt/docbook/common/db-format.xml.in
deleted file mode 100644
index 4a981b1..0000000
--- a/xslt/docbook/common/db-format.xml.in
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/xsl-format"
- xmlns:_msg="http://www.gnome.org/~shaunm/gnome-doc-utils/xsl-format">
-
-<title xmlns="http://www.gnome.org/~shaunm/xsldoc">Format Templates</title>
-
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/common/db-label.xsl b/xslt/docbook/common/db-label.xsl
deleted file mode 100644
index 73d42ec..0000000
--- a/xslt/docbook/common/db-label.xsl
+++ /dev/null
@@ -1,829 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns:set="http://exslt.org/sets"
- exclude-result-prefixes="msg set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook Labels
-:Requires: db-chunk db-title gettext
-
-REMARK: Explain labels
--->
-
-
-<!--**==========================================================================
-db.label
-Generates the label for an element
-$node: The node to generate a label for
-$role: The role of the label, as passed to the format template
-
-This template generates the label used for some sectioning and block-level
-elements. For instance, this would generate strings such as Section 14.3
-or Table 5-2. The template simply applies the mode %{db.label.mode} to the
-element. To change the behavior of a particular type of element, you should
-always override the mode template for that element.
-
-Overriding the *{db.label} template should only be done if you wish to change
-the labelling mechanism completely, or if you wish to wrap the labelling
-mechanism (for instance, with a caching extension). Do not override this
-template to suppress label prefixes in titles.
-
-REMARK: Do not, but instead?
--->
-<xsl:template name="db.label">
- <xsl:param name="node" select="."/>
- <xsl:param name="role"/>
- <xsl:choose>
- <xsl:when test="$node/@label">
- <xsl:value-of select="$node/@label"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="db.label.mode" select="$node">
- <xsl:with-param name="role" select="$role"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.label.mode
-$role: The role of the label, as passed to the format template
-FIXME
-
-REMARK: Document this mode, and the role param
--->
-
-<!-- = db.label.mode % answer = -->
-<xsl:template mode="db.label.mode" match="answer">
- <xsl:param name="role"/>
- <xsl:variable name="qandaset" select="ancestor::qandaset[1]"/>
- <xsl:if test="$qandaset/@defaultlabel = 'qanda'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'A:'"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<!-- = db.label.mode % appendix = -->
-<xsl:template mode="db.label.mode" match="appendix">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'appendix.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % bibliography = -->
-<xsl:template mode="db.label.mode" match="bibliography"/>
-
-<!-- = db.label.mode % biblioentry | bibliomixed = -->
-<xsl:template mode="db.label.mode" match="biblioentry | bibliomixed">
- <xsl:if test="*[1]/self::abbrev | @xreflabel | @id">
- <!-- FIXME: I18N -->
- <xsl:text>[</xsl:text>
- <xsl:choose>
- <xsl:when test="*[1]/self::abbrev">
- <xsl:apply-templates select="abbrev[1]"/>
- </xsl:when>
- <xsl:when test="@xreflabel">
- <xsl:value-of select="@xreflabel"/>
- </xsl:when>
- <xsl:when test="@id">
- <xsl:value-of select="@id"/>
- </xsl:when>
- </xsl:choose>
- <xsl:text>]</xsl:text>
- </xsl:if>
-</xsl:template>
-
-<!-- = db.label.mode % book = -->
-<xsl:template mode="db.label.mode" match="book">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'book.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % chapter = -->
-<xsl:template mode="db.label.mode" match="chapter">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'chapter.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % example = -->
-<xsl:template mode="db.label.mode" match="example">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'example.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % figure = -->
-<xsl:template mode="db.label.mode" match="figure">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'figure.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % glossary = -->
-<xsl:template mode="db.label.mode" match="glossary"/>
-
-<!-- = db.label.mode % part = -->
-<xsl:template mode="db.label.mode" match="part">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'part.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % preface = -->
-<xsl:template mode="db.label.mode" match="preface"/>
-
-<!-- = db.label.mode % question = -->
-<xsl:template mode="db.label.mode" match="question">
- <xsl:param name="role"/>
- <xsl:variable name="qandaset" select="ancestor::qandaset[1]"/>
- <xsl:choose>
- <xsl:when test="label">
- <xsl:apply-templates select="label/node()"/>
- </xsl:when>
- <xsl:when test="$qandaset/@defaultlabel = 'none'"/>
- <xsl:when test="$qandaset/@defaultlabel = 'qanda'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Q:'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'question.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.label.mode % reference = -->
-<xsl:template mode="db.label.mode" match="referece"/>
-
-<!-- = db.label.mode % refsection = -->
-<xsl:template mode="db.label.mode" match="refsection | refsect1 | refsect2 | refsect3"/>
-
-<!-- = db.label.mode % section = -->
-<xsl:template mode="db.label.mode" match="
- section | sect1 | sect2 | sect3 | sect4 | sect5 | simplesect">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'section.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % table = -->
-<xsl:template mode="db.label.mode" match="table">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'table.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.label.mode % synopfragment = -->
-<xsl:template mode="db.label.mode" match="synopfragment">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'synopfragment.label'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="db.label.mode" match="title | subtitle">
- <xsl:param name="role"/>
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="db.label.mode" match="
- article |
- colophon | index |
- qandadiv | qandaset |
- set | setindex ">
- <xsl:param name="role"/>
-<!-- FIXME
- <xsl:call-template name="db.label.name"/>
- <xsl:text> </xsl:text>
- <xsl:call-template name="db.label.number"/>
--->
-</xsl:template>
-
-<xsl:template mode="db.label.mode" match="
- appendixinfo | articleinfo | bibliographyinfo | bookinfo |
- chapterinfo | glossaryinfo | indexinfo | partinfo |
- prefaceinfo | refentryinfo | referenceinfo | refsect1info |
- refsect2info | refsect3info | refsectioninfo | sect1info |
- sect2info | sect3info | sect4info | sect5info |
- sectioninfo | setindexinfo | setinfo ">
- <xsl:param name="role"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'About This Document'"/>
- </xsl:call-template>
-<!-- FIXME
- <xsl:call-template name="db.label.name"/>
--->
-</xsl:template>
-
-<xsl:template mode="db.label.mode" match="*"/>
-
-
-<!--**==========================================================================
-db.number
-Generates the number portion of a label
-$node: The element to generate a number for
-
-This template generates the number portion of the label used for some sectioning
-and block-level elements. The template simply applies the mode %{db.number.mode}
-to the element. To change the behavior of a particular type of element, you
-should always override the mode template for that type of element.
-
-Overriding the *{db.number} template should only be done if you wish to change
-the numbering mechanism completely, or you wish to wrap the numbering mechanism
-(for example, with a caching extension).
--->
-<xsl:template name="db.number">
- <xsl:param name="node" select="."/>
- <xsl:apply-templates mode="db.number.mode" select="$node"/>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.number.mode
-FIXME
-
-REMARK: Document this mode
--->
-
-<!-- = db.number.mode % appendix = -->
-<xsl:template mode="db.number.mode" match="appendix">
- <xsl:choose>
- <xsl:when test="parent::part">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'appendix.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % book = -->
-<xsl:template mode="db.number.mode" match="book">
- <xsl:call-template name="db.digit"/>
-</xsl:template>
-
-<!-- = db.number.mode % chapter = -->
-<xsl:template mode="db.number.mode" match="chapter">
- <xsl:choose>
- <xsl:when test="parent::part">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'chapter.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % example = -->
-<xsl:template mode="db.number.mode" match="example">
- <xsl:choose>
- <xsl:when test="ancestor::appendix or ancestor::chapter">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'example.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % figure = -->
-<xsl:template mode="db.number.mode" match="figure">
- <xsl:choose>
- <xsl:when test="ancestor::appendix or ancestor::chapter">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'figure.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % footnote = -->
-<xsl:template mode="db.number.mode" match="footnote">
- <xsl:variable name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="notes" select="preceding::footnote"/>
- <xsl:choose>
- <xsl:when test="count($notes) != 0">
- <xsl:call-template name="db.number.footnote.tally">
- <xsl:with-param name="chunk" select="ancestor::*[number($depth_in_chunk)]"/>
- <xsl:with-param name="notes" select="$notes"/>
- <xsl:with-param name="pos" select="1"/>
- <xsl:with-param name="count" select="1"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--#* db.number.footnote.tally -->
-<xsl:template name="db.number.footnote.tally">
- <xsl:param name="chunk"/>
- <xsl:param name="notes"/>
- <xsl:param name="pos"/>
- <xsl:param name="count"/>
- <xsl:variable name="this" select="$notes[$pos]"/>
- <xsl:variable name="depth">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$this"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="increment"
- select="number(set:has-same-node($this/ancestor::*[number($depth)],
- $chunk ))"/>
- <xsl:choose>
- <xsl:when test="$pos = count($notes)">
- <xsl:value-of select="$count + $increment"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.number.footnote.tally">
- <xsl:with-param name="chunk" select="$chunk"/>
- <xsl:with-param name="notes" select="$notes"/>
- <xsl:with-param name="pos" select="$pos + 1"/>
- <xsl:with-param name="count" select="$count + $increment"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % glossary = -->
-<xsl:template mode="db.number.mode" match="glossary"/>
-
-<!-- = db.number.mode % part = -->
-<xsl:template mode="db.number.mode" match="part">
- <xsl:call-template name="db.digit"/>
-</xsl:template>
-
-<!-- = db.number.mode % preface = -->
-<xsl:template mode="db.number.mode" match="preface"/>
-
-<!-- = db.number.mode % question = -->
-<xsl:template mode="db.number.mode" match="question">
- <xsl:call-template name="db.digit"/>
-</xsl:template>
-
-<!-- = db.number.mode % refsection = -->
-<xsl:template mode="db.number.mode" match="
- refsection | refsect1 | refsect2 | refsect3">
- <xsl:choose>
- <xsl:when test="parent::refentry">
- <xsl:call-template name="db.digit"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'refsection.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % section = -->
-<xsl:template mode="db.number.mode" match="
- section | sect1 | sect2 | sect3 | sect4 | sect5 | simplesect">
- <xsl:choose>
- <xsl:when test="local-name(..) != 'article' and
- local-name(..) != 'partintro' and
- local-name(..) != 'preface' and
- .. != / ">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'section.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.number.mode % synopfragment = -->
-<xsl:template mode="db.number.mode" match="synopfragment">
- <xsl:call-template name="db.digit"/>
-</xsl:template>
-
-<!-- = db.number.mode % table = -->
-<xsl:template mode="db.number.mode" match="table">
- <xsl:choose>
- <xsl:when test="ancestor::appendix or ancestor::chapter">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'table.number'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- FIXME: need to use formatters -->
-
-<xsl:template mode="db.number.mode" match="answer">
- <!-- FIXME -->
-</xsl:template>
-
-<xsl:template mode="db.number.mode" match="article">
- <xsl:number format="I" value="
- count(preceding-sibling::article) + 1 +
- count(parent::part/preceding-sibling::part/article)"/>
-</xsl:template>
-
-<xsl:template mode="db.number.mode" match="reference">
- <xsl:number format="I" value="
- count(preceding-sibling::reference) + 1 +
- count(parent::part/preceding-sibling::part/reference)"/>
-</xsl:template>
-
-<xsl:template mode="db.number.mode" match="
- book | bibliography | colophon | glossary |
- index | set | setindex "/>
-
-<xsl:template mode="db.number.mode" match="synopfragment">
- <xsl:value-of select="count(preceding-sibling::synopfragment) + 1"/>
-</xsl:template>
-
-<xsl:template mode="db.number.mode" match="title | subtitle">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="db.number.mode" match="*">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.digit
-FIXME
-
-REMARK: Document this template
--->
-<xsl:template name="db.digit">
- <xsl:param name="node" select="."/>
- <xsl:apply-templates mode="db.digit.mode" select="$node"/>
-</xsl:template>
-
-<!--#* db.digit.format -->
-<xsl:template name="db.digit.format">
- <xsl:param name="digit"/>
- <xsl:param name="format"/>
- <xsl:choose>
- <xsl:when test="$format = '1'">
- <xsl:number format="1" value="$digit"/>
- </xsl:when>
- <xsl:when test="$format = 'A'">
- <xsl:number format="A" value="$digit"/>
- </xsl:when>
- <xsl:when test="$format = 'a'">
- <xsl:number format="a" value="$digit"/>
- </xsl:when>
- <xsl:when test="$format = 'I'">
- <xsl:number format="I" value="$digit"/>
- </xsl:when>
- <xsl:when test="$format = 'i'">
- <xsl:number format="i" value="$digit"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>Unrecognized number formatter: </xsl:text>
- <xsl:value-of select="$format"/>
- </xsl:message>
- <xsl:number format="1" value="$digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.digit.mode
-FIXME
-
-REMARK: Document this mode. Rename to db.number.digit.mode?
--->
-
-<!-- = db.digit.mode % appendix = -->
-<xsl:template mode="db.digit.mode" match="appendix">
- <xsl:call-template name="db.digit.format">
- <!-- FIXME: use xsl:number -->
- <xsl:with-param name="digit" select="
- count(preceding-sibling::appendix) + 1 +
- count(parent::part/preceding-sibling::part/appendix)"/>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'appendix.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % book = -->
-<xsl:template mode="db.digit.mode" match="book">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit" select="count(preceding-sibling::book) + 1"/>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'book.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % chapter = -->
-<xsl:template mode="db.digit.mode" match="chapter">
- <xsl:call-template name="db.digit.format">
- <!-- FIXME: use xsl:number -->
- <xsl:with-param name="digit" select="
- count(preceding-sibling::chapter) + 1 +
- count(parent::part/preceding-sibling::part/chapter)"/>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'chapter.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % example = -->
-<xsl:template mode="db.digit.mode" match="example">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="any" count="example" from="chapter | appendix"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'example.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % figure = -->
-<xsl:template mode="db.digit.mode" match="figure">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="any" count="figure" from="chapter | appendix"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'figure.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % glossary = -->
-<xsl:template mode="db.digit.mode" match="glossary"/>
-
-<!-- = db.digit.mode % part = -->
-<xsl:template mode="db.digit.mode" match="part">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit" select="count(preceding-sibling::part) + 1"/>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'part.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % preface = -->
-<xsl:template mode="db.digit.mode" match="preface"/>
-
-<!-- = db.digit.mode % question = -->
-<xsl:template mode="db.digit.mode" match="question">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="any" format="1" count="question" from="qandaset"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'question.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % refsection = -->
-<xsl:template mode="db.digit.mode" match="
- refsection | refsect1 | refsect2 | refsect3">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="single" format="1" count="
- refsection | refsect1 | refsect2 | refsect3"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'refsection.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % section = -->
-<xsl:template mode="db.digit.mode" match="
- section | sect1 | sect2 | sect3 | sect4 | sect5 | simplesect">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="single" format="1" count="
- section | sect1 | sect2 | sect3 | sect4 | sect5 | simplesect"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'section.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % synopfragment = -->
-<xsl:template mode="db.digit.mode" match="synopfragment">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit" select="count(preceding-sibling::synopfragment) + 1"/>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'synopfragment.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.digit.mode % table = -->
-<xsl:template mode="db.digit.mode" match="table">
- <xsl:call-template name="db.digit.format">
- <xsl:with-param name="digit">
- <xsl:number level="any" count="table" from="chapter | appendix"/>
- </xsl:with-param>
- <xsl:with-param name="format">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'table.digit'"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.number.parent.mode
-FIXME
-
-REMARK: Document this mode
--->
-<xsl:template mode="db.number.parent.mode" match="*">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.number.parent.mode % example = -->
-<xsl:template mode="db.number.parent.mode" match="example">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node"
- select="(ancestor::appendix | ancestor::chapter)[last()]"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.number.parent.mode % figure = -->
-<xsl:template mode="db.number.parent.mode" match="figure">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node"
- select="(ancestor::appendix | ancestor::chapter)[last()]"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.number.parent.mode % table = -->
-<xsl:template mode="db.number.parent.mode" match="table">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node"
- select="(ancestor::appendix | ancestor::chapter)[last()]"/>
- </xsl:call-template>
-</xsl:template>
-
-
-<!-- == msg:* ============================================================== -->
-<!--#% l10n.format.mode -->
-
-<xsl:template mode="l10n.format.mode" match="msg:digit">
- <xsl:param name="node"/>
- <xsl:call-template name="db.digit">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:glossterm">
- <xsl:param name="node"/>
- <xsl:apply-templates select="$node/glossterm"/>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:label">
- <xsl:param name="node"/>
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:number">
- <xsl:param name="node"/>
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:parent">
- <xsl:param name="node"/>
- <xsl:apply-templates mode="db.number.parent.mode" select="$node"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/common/db-title.xsl b/xslt/docbook/common/db-title.xsl
deleted file mode 100644
index f8d821c..0000000
--- a/xslt/docbook/common/db-title.xsl
+++ /dev/null
@@ -1,1281 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook Titles
-:Requires: db-chunk gettext
--->
-
-
-<!--**==========================================================================
-db.title
-Processes the title of an element
-$node: The element to process the title of
-
-REMARK: Describe this, and how format templates and markup play in
--->
-<xsl:template name="db.title">
- <xsl:param name="node" select="."/>
- <xsl:apply-templates mode="db.title.mode" select="$node"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.titleabbrev
-Processes the abbreviated title of an element
-$node: The element to process the abbreviated title of
-
-REMARK: Describe this, and how format templates and markup play in,
-and fallback to db.title
--->
-<xsl:template name="db.titleabbrev">
- <xsl:param name="node" select="."/>
- <xsl:apply-templates mode="db.titleabbrev.mode" select="$node"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.subtitle
-Processes the subtitle of an element
-$node: The element to process the subtitle of
-
-REMARK: Describe this, and how format templates and markup play in
--->
-<xsl:template name="db.subtitle">
- <xsl:param name="node" select="."/>
- <xsl:apply-templates mode="db.subtitle.mode" select="$node"/>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.title.mode
-FIXME
-
-REMARK: Describe this mode
--->
-<xsl:template mode="db.title.mode" match="*">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="blockinfo/title">
- <xsl:apply-templates select="blockinfo/title/node()"/>
- </xsl:when>
- <xsl:when test="objectinfo/title">
- <xsl:apply-templates select="objectinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % appendix = -->
-<xsl:template mode="db.title.mode" match="anchor">
- <xsl:variable name="target_chunk_id">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="target_chunk" select="key('idkey', $target_chunk_id)"/>
- <xsl:choose>
- <xsl:when test="$target_chunk">
- <xsl:apply-templates mode="db.title.mode" select="$target_chunk"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % appendix = -->
-<xsl:template mode="db.title.mode" match="appendix">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="appendixinfo/title">
- <xsl:apply-templates select="appendixinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % article = -->
-<xsl:template mode="db.title.mode" match="article">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="articleinfo/title">
- <xsl:apply-templates select="articleinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % bibliography = -->
-<xsl:template mode="db.title.mode" match="bibliography">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="bibliographyinfo/title">
- <xsl:apply-templates select="bibliographyinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Bibliography'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % book = -->
-<xsl:template mode="db.title.mode" match="book">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="bookinfo/title">
- <xsl:apply-templates select="bookinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % chapter = -->
-<xsl:template mode="db.title.mode" match="chapter">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="chapterinfo/title">
- <xsl:apply-templates select="chapterinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % glossary = -->
-<xsl:template mode="db.title.mode" match="glossary">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="glossaryinfo/title">
- <xsl:apply-templates select="glossaryinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Glossary'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % index = -->
-<xsl:template mode="db.title.mode" match="index">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="indexinfo/title">
- <xsl:apply-templates select="indexinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % part = -->
-<xsl:template mode="db.title.mode" match="part">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="partinfo/title">
- <xsl:apply-templates select="partinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % preface = -->
-<xsl:template mode="db.title.mode" match="preface">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="prefaceinfo/title">
- <xsl:apply-templates select="prefaceinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refentry = -->
-<xsl:template mode="db.title.mode" match="refentry">
- <xsl:choose>
- <xsl:when test="refmeta/refentrytitle">
- <xsl:apply-templates select="refmeta/refentrytitle/node()"/>
- <xsl:if test="refmeta/manvolnum">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'manvolnum.format'"/>
- <xsl:with-param name="node" select="refmeta/manvolnum[1]"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:when test="refentryinfo/title">
- <xsl:apply-templates select="refentryinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="refnamediv/refname[1]/node()"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % reference = -->
-<xsl:template mode="db.title.mode" match="reference">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="referenceinfo/title">
- <xsl:apply-templates select="referenceinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refsect1 = -->
-<xsl:template mode="db.title.mode" match="refsect1">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect1info/title">
- <xsl:apply-templates select="refsect1info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refsect2 = -->
-<xsl:template mode="db.title.mode" match="refsect2">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect2info/title">
- <xsl:apply-templates select="refsect2info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refsect3 = -->
-<xsl:template mode="db.title.mode" match="refsect3">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect3info/title">
- <xsl:apply-templates select="refsect3info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refsection = -->
-<xsl:template mode="db.title.mode" match="refsection">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsectioninfo/title">
- <xsl:apply-templates select="refsectioninfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % refsynopsisdiv = -->
-<xsl:template mode="db.title.mode" match="refsynopsisdiv">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsynopsisdivinfo/title">
- <xsl:apply-templates select="refsynopsisdivinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Synopsis'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sect1 = -->
-<xsl:template mode="db.title.mode" match="sect1">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect1info/title">
- <xsl:apply-templates select="sect1info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sect2 = -->
-<xsl:template mode="db.title.mode" match="sect2">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect2info/title">
- <xsl:apply-templates select="sect2info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sect3 = -->
-<xsl:template mode="db.title.mode" match="sect3">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect3info/title">
- <xsl:apply-templates select="sect3info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sect4 = -->
-<xsl:template mode="db.title.mode" match="sect4">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect4info/title">
- <xsl:apply-templates select="sect4info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sect5 = -->
-<xsl:template mode="db.title.mode" match="sect5">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect5info/title">
- <xsl:apply-templates select="sect5info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % section = -->
-<xsl:template mode="db.title.mode" match="section">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sectioninfo/title">
- <xsl:apply-templates select="sectioninfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % set = -->
-<xsl:template mode="db.title.mode" match="set">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="setinfo/title">
- <xsl:apply-templates select="setinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % setindex = -->
-<xsl:template mode="db.title.mode" match="setindex">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="setindexinfo/title">
- <xsl:apply-templates select="setindexinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.title.mode % sidebar = -->
-<xsl:template mode="db.title.mode" match="sidebar">
- <xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sidebarinfo/title">
- <xsl:apply-templates select="sidebarinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.titleabbrev.mode
-FIXME
-
-REMARK: Describe this mode
--->
-<xsl:template mode="db.titleabbrev.mode" match="*">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="blockinfo/titleabbrev">
- <xsl:apply-templates select="blockinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="objectinfo/titleabbrev">
- <xsl:apply-templates select="objectinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="blockinfo/title">
- <xsl:apply-templates select="blockinfo/title/node()"/>
- </xsl:when>
- <xsl:when test="objectinfo/title">
- <xsl:apply-templates select="objectinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % appendix = -->
-<xsl:template mode="db.titleabbrev.mode" match="appendix">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="appendixinfo/titleabbrev">
- <xsl:apply-templates select="appendixinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="appendixinfo/title">
- <xsl:apply-templates select="appendixinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % article = -->
-<xsl:template mode="db.titleabbrev.mode" match="article">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="articleinfo/titleabbrev">
- <xsl:apply-templates select="articleinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="articleinfo/title">
- <xsl:apply-templates select="articleinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % bibliography = -->
-<xsl:template mode="db.titleabbrev.mode" match="bibliography">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="bibliographyinfo/titleabbrev">
- <xsl:apply-templates select="bibliographyinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="bibliographyinfo/title">
- <xsl:apply-templates select="bibliographyinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Bibliography'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % book = -->
-<xsl:template mode="db.titleabbrev.mode" match="book">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="bookinfo/titleabbrev">
- <xsl:apply-templates select="bookinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="bookinfo/title">
- <xsl:apply-templates select="bookinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % chapter = -->
-<xsl:template mode="db.titleabbrev.mode" match="chapter">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="chapterinfo/titleabbrev">
- <xsl:apply-templates select="chapterinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="chapterinfo/title">
- <xsl:apply-templates select="chapterinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % glossary = -->
-<xsl:template mode="db.titleabbrev.mode" match="glossary">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="glossaryinfo/titleabbrev">
- <xsl:apply-templates select="glossaryinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="glossaryinfo/title">
- <xsl:apply-templates select="glossaryinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Glossary'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % index = -->
-<xsl:template mode="db.titleabbrev.mode" match="index">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="indexinfo/titleabbrev">
- <xsl:apply-templates select="indexinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="indexinfo/title">
- <xsl:apply-templates select="indexinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % part = -->
-<xsl:template mode="db.titleabbrev.mode" match="part">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="partinfo/titleabbrev">
- <xsl:apply-templates select="partinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="partinfo/title">
- <xsl:apply-templates select="partinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % preface = -->
-<xsl:template mode="db.titleabbrev.mode" match="preface">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="prefaceinfo/titleabbrev">
- <xsl:apply-templates select="prefaceinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="prefaceinfo/title">
- <xsl:apply-templates select="prefaceinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refentry = -->
-<xsl:template mode="db.titleabbrev.mode" match="refentry">
- <xsl:choose>
- <xsl:when test="refentryinfo/titleabbrev">
- <xsl:apply-templates select="refentryinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refmeta/refentrytitle">
- <xsl:apply-templates select="refmeta/refentrytitle/node()"/>
- <xsl:if test="refmeta/manvolnum">
- <!-- FIXME: I18N -->
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="refmeta/manvolnum[1]/node()"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="refentryinfo/title">
- <xsl:apply-templates select="refentryinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="refnamediv/refname[1]/node()"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % reference = -->
-<xsl:template mode="db.titleabbrev.mode" match="reference">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="referenceinfo/titleabbrev">
- <xsl:apply-templates select="referenceinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="referenceinfo/title">
- <xsl:apply-templates select="referenceinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refsect1 = -->
-<xsl:template mode="db.titleabbrev.mode" match="refsect1">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refsect1info/titleabbrev">
- <xsl:apply-templates select="refsect1info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect1info/title">
- <xsl:apply-templates select="refsect1info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refsect2 = -->
-<xsl:template mode="db.titleabbrev.mode" match="refsect2">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refsect2info/titleabbrev">
- <xsl:apply-templates select="refsect2info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect2info/title">
- <xsl:apply-templates select="refsect2info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refsect3 = -->
-<xsl:template mode="db.titleabbrev.mode" match="refsect3">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refsect3info/titleabbrev">
- <xsl:apply-templates select="refsect3info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsect3info/title">
- <xsl:apply-templates select="refsect3info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refsection = -->
-<xsl:template mode="db.titleabbrev.mode" match="refsection">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refsectioninfo/titleabbrev">
- <xsl:apply-templates select="refsectioninfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsectioninfo/title">
- <xsl:apply-templates select="refsectioninfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % refsynopsisdiv = -->
-<xsl:template mode="db.titleabbrev.mode" match="refsynopsisdiv">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="refsynopsisdivinfo/titleabbrev">
- <xsl:apply-templates select="refsynopsisdivinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="refsynopsisdivinfo/title">
- <xsl:apply-templates select="refsynopsisdivinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sect1 = -->
-<xsl:template mode="db.titleabbrev.mode" match="sect1">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sect1info/titleabbrev">
- <xsl:apply-templates select="sect1info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect1info/title">
- <xsl:apply-templates select="sect1info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sect2 = -->
-<xsl:template mode="db.titleabbrev.mode" match="sect2">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sect2info/titleabbrev">
- <xsl:apply-templates select="sect2info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect2info/title">
- <xsl:apply-templates select="sect2info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sect3 = -->
-<xsl:template mode="db.titleabbrev.mode" match="sect3">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sect3info/titleabbrev">
- <xsl:apply-templates select="sect3info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect3info/title">
- <xsl:apply-templates select="sect3info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sect4 = -->
-<xsl:template mode="db.titleabbrev.mode" match="sect4">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sect4info/titleabbrev">
- <xsl:apply-templates select="sect4info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect4info/title">
- <xsl:apply-templates select="sect4info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sect5 = -->
-<xsl:template mode="db.titleabbrev.mode" match="sect5">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sect5info/titleabbrev">
- <xsl:apply-templates select="sect5info/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sect5info/title">
- <xsl:apply-templates select="sect5info/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % section = -->
-<xsl:template mode="db.titleabbrev.mode" match="section">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sectioninfo/titleabbrev">
- <xsl:apply-templates select="sectioninfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sectioninfo/title">
- <xsl:apply-templates select="sectioninfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % set = -->
-<xsl:template mode="db.titleabbrev.mode" match="set">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="setinfo/titleabbrev">
- <xsl:apply-templates select="setinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="setinfo/title">
- <xsl:apply-templates select="setinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % setindex = -->
-<xsl:template mode="db.titleabbrev.mode" match="setindex">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="setindexinfo/titleabbrev">
- <xsl:apply-templates select="setindexinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="setindexinfo/title">
- <xsl:apply-templates select="setindexinfo/title/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.titleabbrev.mode % sidebar = -->
-<xsl:template mode="db.titleabbrev.mode" match="sidebar">
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:apply-templates select="titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="sidebarinfo/titleabbrev">
- <xsl:apply-templates select="sidebarinfo/titleabbrev/node()"/>
- </xsl:when>
- <xsl:when test="title">
- <xsl:apply-templates select="title/node()"/>
- </xsl:when>
- <xsl:when test="sidebarinfo/title">
- <xsl:apply-templates select="sidebarinfo/title/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.subtitle.mode
-FIXME
-
-REMARK: Describe this mode
--->
-<xsl:template mode="db.subtitle.mode" match="*">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="blockinfo/subtitle">
- <xsl:apply-templates select="blockinfo/subtitle/node()"/>
- </xsl:when>
- <xsl:when test="objectinfo/subtitle">
- <xsl:apply-templates select="objectinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % appendix = -->
-<xsl:template mode="db.subtitle.mode" match="appendix">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="appendixinfo/subtitle">
- <xsl:apply-templates select="appendixinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % article = -->
-<xsl:template mode="db.subtitle.mode" match="article">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="articleinfo/subtitle">
- <xsl:apply-templates select="articleinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % bibliography = -->
-<xsl:template mode="db.subtitle.mode" match="bibliography">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="bibliographyinfo/subtitle">
- <xsl:apply-templates select="bibliographyinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % book = -->
-<xsl:template mode="db.subtitle.mode" match="book">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="bookinfo/subtitle">
- <xsl:apply-templates select="bookinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % chapter = -->
-<xsl:template mode="db.subtitle.mode" match="chapter">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="chapterinfo/subtitle">
- <xsl:apply-templates select="chapterinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % glossary = -->
-<xsl:template mode="db.subtitle.mode" match="glossary">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="glossaryinfo/subtitle">
- <xsl:apply-templates select="glossaryinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % index = -->
-<xsl:template mode="db.subtitle.mode" match="index">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="indexinfo/subtitle">
- <xsl:apply-templates select="indexinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % part = -->
-<xsl:template mode="db.subtitle.mode" match="part">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="partinfo/subtitle">
- <xsl:apply-templates select="partinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % preface = -->
-<xsl:template mode="db.subtitle.mode" match="preface">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="prefaceinfo/subtitle">
- <xsl:apply-templates select="prefaceinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refentry = -->
-<xsl:template mode="db.subtitle.mode" match="refentry">
- <xsl:if test="refentryinfo/subtitle">
- <xsl:apply-templates select="refentryinfo/subtitle/node()"/>
- </xsl:if>
-</xsl:template>
-
-<!-- = db.subtitle.mode % reference = -->
-<xsl:template mode="db.subtitle.mode" match="reference">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="referenceinfo/subtitle">
- <xsl:apply-templates select="referenceinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refsect1 = -->
-<xsl:template mode="db.subtitle.mode" match="refsect1">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="refsect1info/subtitle">
- <xsl:apply-templates select="refsect1info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refsect2 = -->
-<xsl:template mode="db.subtitle.mode" match="refsect2">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="refsect2info/subtitle">
- <xsl:apply-templates select="refsect2info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refsect3 = -->
-<xsl:template mode="db.subtitle.mode" match="refsect3">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="refsect3info/subtitle">
- <xsl:apply-templates select="refsect3info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refsection = -->
-<xsl:template mode="db.subtitle.mode" match="refsection">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="refsectioninfo/subtitle">
- <xsl:apply-templates select="refsectioninfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % refsynopsisdiv = -->
-<xsl:template mode="db.subtitle.mode" match="refsynopsisdiv">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="refsynopsisdivinfo/subtitle">
- <xsl:apply-templates select="refsynopsisdivinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sect1 = -->
-<xsl:template mode="db.subtitle.mode" match="sect1">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sect1info/subtitle">
- <xsl:apply-templates select="sect1info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sect2 = -->
-<xsl:template mode="db.subtitle.mode" match="sect2">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sect2info/subtitle">
- <xsl:apply-templates select="sect2info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sect3 = -->
-<xsl:template mode="db.subtitle.mode" match="sect3">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sect3info/subtitle">
- <xsl:apply-templates select="sect3info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sect4 = -->
-<xsl:template mode="db.subtitle.mode" match="sect4">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sect4info/subtitle">
- <xsl:apply-templates select="sect4info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sect5 = -->
-<xsl:template mode="db.subtitle.mode" match="sect5">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sect5info/subtitle">
- <xsl:apply-templates select="sect5info/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % section = -->
-<xsl:template mode="db.subtitle.mode" match="section">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="sectioninfo/subtitle">
- <xsl:apply-templates select="sectioninfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % set = -->
-<xsl:template mode="db.subtitle.mode" match="set">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="setinfo/subtitle">
- <xsl:apply-templates select="setinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % setindex = -->
-<xsl:template mode="db.subtitle.mode" match="setindex">
- <xsl:choose>
- <xsl:when test="subtitle">
- <xsl:apply-templates select="subtitle/node()"/>
- </xsl:when>
- <xsl:when test="setindexinfo/subtitle">
- <xsl:apply-templates select="setindexinfo/subtitle/node()"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.subtitle.mode % sidebar = -->
-<xsl:template mode="db.subtitle.mode" match="sidebar">
- <xsl:if test="sidebarinfo/subtitle">
- <xsl:apply-templates select="sidebarinfo/subtitle/node()"/>
- </xsl:if>
-</xsl:template>
-
-
-<!-- == msg:* ============================================================== -->
-<!--#% l10n.format.mode -->
-
-<xsl:template mode="l10n.format.mode" match="msg:title">
- <xsl:param name="node"/>
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:titleabbrev">
- <xsl:param name="node"/>
- <xsl:call-template name="db.titleabbrev">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:subtitle">
- <xsl:param name="node"/>
- <xsl:call-template name="db.subtitle">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl
deleted file mode 100644
index 7f7386b..0000000
--- a/xslt/docbook/common/db-xref.xsl
+++ /dev/null
@@ -1,456 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- exclude-result-prefixes="set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook Cross References
-:Requires: db-chunk db-label db-title gettext
--->
-
-
-<!--**==========================================================================
-db.ulink.tooltip
-Generates the tooltip for an external link
-$node: The element to generate a tooltip for
-$url: The URL of the link, usually from the #{url} attribute
--->
-<xsl:template name="db.ulink.tooltip">
- <xsl:param name="node" select="."/>
- <xsl:param name="url" select="$node/@url"/>
- <xsl:choose>
- <xsl:when test="starts-with($url, 'mailto:')">
- <xsl:variable name="addy" select="substring-after($url, 'mailto:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'email.tooltip'"/>
- <xsl:with-param name="string" select="$addy"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="normalize-space($url)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.xref.content
-Generates the content of a cross reference
-$linkend: The id of the linked-to element, usually from the #{linkend} attribute
-$target: The linked-to element
-$xrefstyle: The cross reference style, usually from the #{xrefstyle} attribute
-$role: For a role-based ${xrefstyle}, the role of the cross reference
-
-REMARK: The xrefstyle/role stuff needs to be documented
--->
-<xsl:template name="db.xref.content">
- <xsl:param name="linkend" select="@linkend"/>
- <xsl:param name="target" select="key('idkey', $linkend)"/>
- <xsl:param name="xrefstyle" select="@xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:choose>
- <!-- FIXME: should we prefer xrefstyle over xreflabel? -->
- <xsl:when test="$target/@xreflabel">
- <xsl:value-of select="$target/@xreflabel"/>
- </xsl:when>
- <xsl:when test="$xrefstyle = 'role:title'">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$xrefstyle = 'role:titleabbrev'">
- <xsl:call-template name="db.titleabbrev">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$xrefstyle = 'role:subtitle'">
- <xsl:call-template name="db.subtitle">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$xrefstyle = 'role:label'">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$xrefstyle = 'role:number'">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="db.xref.content.mode" select="$target">
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- <xsl:with-param name="role" select="$role"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.xref.content.mode
-FIXME
-$xrefstyle: The cross reference style, usually from the #{xrefstyle} attribute
-$role: For a role-based ${xrefstyle}, the role of the cross reference
-
-REMARK: Document this mode
--->
-<xsl:template mode="db.xref.content.mode" match="*">
- <xsl:variable name="target_chunk_id">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="target_chunk" select="key('idkey', $target_chunk_id)"/>
- <xsl:choose>
- <xsl:when test="$target_chunk">
- <xsl:apply-templates mode="db.xref.content.mode" select="$target_chunk"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No cross reference formatter found for </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- <xsl:text> elements</xsl:text>
- </xsl:message>
- <xsl:variable name="title">
- <xsl:call-template name="db.title"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="string($title) != ''">
- <xsl:copy-of select="$title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = db.xref.content.mode % appendix = -->
-<xsl:template mode="db.xref.content.mode" match="appendix">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'appendix.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % biblioentry = -->
-<xsl:template mode="db.xref.content.mode" match="biblioentry">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % bibliography = -->
-<xsl:template mode="db.xref.content.mode" match="bibliography">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'bibliography.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % bibliomixed = -->
-<xsl:template mode="db.xref.content.mode" match="bibliomixed">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % book = -->
-<xsl:template mode="db.xref.content.mode" match="book">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'book.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % chapter = -->
-<xsl:template mode="db.xref.content.mode" match="chapter">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'chapter.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % example = -->
-<xsl:template mode="db.xref.content.mode" match="example">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'example.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % figure = -->
-<xsl:template mode="db.xref.content.mode" match="figure">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'figure.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % glossary = -->
-<xsl:template mode="db.xref.content.mode" match="glossary">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'glossary.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % glossentry = -->
-<xsl:template mode="db.xref.content.mode" match="glossentry">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'glossentry.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % part = -->
-<xsl:template mode="db.xref.content.mode" match="part">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'part.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % preface = -->
-<xsl:template mode="db.xref.content.mode" match="preface">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'preface.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % qandaentry = -->
-<xsl:template mode="db.xref.content.mode" match="qandaentry">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:apply-templates mode="db.xref.content.mode" select="question">
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- <xsl:with-param name="role" select="$role"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<!-- = db.xref.content.mode % question = -->
-<xsl:template mode="db.xref.content.mode" match="question">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'question.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % refentry = -->
-<xsl:template mode="db.xref.content.mode" match="refentry">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'refentry.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % refsection = -->
-<xsl:template mode="db.xref.content.mode" match="
- refsection | refsect1 | refsect2 | refsect3">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'refsection.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % refsynopsisdiv = -->
-<xsl:template mode="db.xref.content.mode" match="refsynopsisdiv">
- <xsl:call-template name="db.title"/>
-</xsl:template>
-
-<!-- = db.xref.content.mode % section = -->
-<xsl:template mode="db.xref.content.mode" match="
- section | sect1 | sect2 | sect3 | sect4 | sect5 | simplesect">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'section.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % synopfragment = -->
-<xsl:template mode="db.xref.content.mode" match="synopfragment">
- <xsl:param name="xrefstyle"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'synopfragment.label'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.content.mode % table = -->
-<xsl:template mode="db.xref.content.mode" match="table">
- <xsl:param name="xrefstyle"/>
- <xsl:param name="role" select="substring-after($xrefstyle, 'role:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'table.xref'"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.xref.target
-Generates the target identifier of a cross reference
-$linkend: The id of the linked-to element, usually from the #{linkend} attribute
-$target: The linked-to element
-$is_chunk: Whether ${target} is known to be a chunked element
-
-REMARK: Talk about how this works with chunking
--->
-<xsl:template name="db.xref.target">
- <xsl:param name="linkend" select="@linkend"/>
- <xsl:param name="target" select="key('idkey', $linkend)"/>
- <xsl:param name="is_chunk" select="false()"/>
- <xsl:choose>
- <xsl:when test="$linkend = $db.chunk.info_basename">
- <xsl:value-of
- select="concat($db.chunk.info_basename, $db.chunk.extension)"/>
- </xsl:when>
- <xsl:when test="set:has-same-node($target, /*)">
- <xsl:value-of select="concat($db.chunk.basename, $db.chunk.extension)"/>
- </xsl:when>
- <xsl:when test="$is_chunk">
- <xsl:value-of select="concat($linkend, $db.chunk.extension)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="target_chunk_id">
- <xsl:call-template name="db.chunk.chunk-id">
- <xsl:with-param name="node" select="$target"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="concat($target_chunk_id, $db.chunk.extension)"/>
- <xsl:if test="string($linkend) != '' and string($target_chunk_id) != string($linkend)">
- <xsl:value-of select="concat('#', $linkend)"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db.xref.tooltip
-Generates the tooltip for a cross reference
-$linkend: The id of the linked-to element, usually from the #{linkend} attribute
-$target: The linked-to element
-
-REMARK: Document this
--->
-<xsl:template name="db.xref.tooltip">
- <xsl:param name="linkend" select="@linkend"/>
- <xsl:param name="target" select="key('idkey', $linkend)"/>
- <xsl:apply-templates mode="db.xref.tooltip.mode" select="$target"/>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db.xref.tooltip.mode
-FIXME
-
-REMARK: Document this
--->
-<xsl:template mode="db.xref.tooltip.mode" match="*">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.tooltip.mode % biblioentry | bibliomixed = -->
-<xsl:template mode="db.xref.tooltip.mode" match="biblioentry | bibliomixed">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'biblioentry.tooltip'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = db.xref.tooltip.mode % glossentry = -->
-<xsl:template mode="db.xref.tooltip.mode" match="glossentry">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'glossentry.tooltip'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/Makefile.am b/xslt/docbook/html/Makefile.am
deleted file mode 100644
index 313e450..0000000
--- a/xslt/docbook/html/Makefile.am
+++ /dev/null
@@ -1,36 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/docbook/html
-
-xsl_DATA = \
- db2html-autotoc.xsl \
- db2html-bibliography.xsl \
- db2html-block.xsl \
- db2html-callout.xsl \
- db2html-classsynopsis.xsl \
- db2html-cmdsynopsis.xsl \
- db2html-css.xsl \
- db2html-division.xsl \
- db2html-ebnf.xsl \
- db2html-footnote.xsl \
- db2html-funcsynopsis.xsl \
- db2html-index.xsl \
- db2html-info.xsl \
- db2html-inline.xsl \
- db2html-l10n.xsl \
- db2html-media.xsl \
- db2html-list.xsl \
- db2html-qanda.xsl \
- db2html-refentry.xsl \
- db2html-suppressed.xsl \
- db2html-table.xsl \
- db2html-title.xsl \
- db2html-xref.xsl \
- db2html.xsl \
- db2xhtml.xsl
-
-EXTRA_DIST=$(xsl_DATA)
-
-report.xml: $(wildcard db*.xsl) elements report.sh report.xslt
- ./report.sh | xsltproc -o report.xml report.xslt -
-report.html: report.xml report.xslt
- xsltproc -o report.html report.xslt report.xml
-
diff --git a/xslt/docbook/html/TODO b/xslt/docbook/html/TODO
deleted file mode 100644
index a9926f6..0000000
--- a/xslt/docbook/html/TODO
+++ /dev/null
@@ -1,12 +0,0 @@
-biblioentry/title
-bibliomixed/title
-bibliomset/title
-biblioset/title
-constraintdef/title
-msgexplan/title
-msgmain/title
-biblioentry/subtitle
-bibliomixed/subtitle
-bibliomset/subtitle
-biblioset/subtitle
-
diff --git a/xslt/docbook/html/db2html-autotoc.xsl b/xslt/docbook/html/db2html-autotoc.xsl
deleted file mode 100644
index 7e1b43f..0000000
--- a/xslt/docbook/html/db2html-autotoc.xsl
+++ /dev/null
@@ -1,247 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Tables of Contents
-:Requires: db-label db-xref db2html-xref gettext
-
-This module provides templates to create tables of contents from any
-division-level elements.
--->
-
-
-<!--**==========================================================================
-db2html.autotoc
-Creates a table of contents for a given element
-$node: The element to create a table of contents for
-$show_info: Whether to include a link to the info page
-$is_info: Whether this contents list is for the info page
-$show_title: Whether to give the contents list a title
-$selected: A currently-selected page
-$divisions: The division-level child elements of ${node}
-$toc_depth: How deep nested contents should be listed.
-$labels: Whether to generate labels
-$titleabbrev: Whether to use #{titleabbrev} instead of #{title}
-
-This template creates a table of contents for a given division-level element.
-The calling template should pass the division-level child elements in the
-${divisions} parameter. Nested divisions will be listed to the depth
-specified in the ${toc_depth} parameter. If the ${selected} parameter is
-set to an existing element, then this template will only output ancestors
-and siblings of ancestors of the selected element. This effectively creates
-a tree which is expanded sufficiently to show a particular element.
-
-This template accepts a number of parameters that control the style of the
-table of contents. The ${show_info} parameter specifies whether a link to
-the info page ("About This Document") should be shown. The ${is_info}
-parameter specifies whether the info page should be treated as the selected
-page. If the info page is selected, it will not be displayed as a link.
-
-The ${show_title} specifies whether a title should be placed at the top of
-the table of contents. The ${labels} parameter specifies whether to place
-section numbers as labels before each element in the list. Finally, the
-${titleabbrev} element specifies whether list elements should use the
-#{titleabbrev} of each element for the link text, if available.
--->
-<xsl:template name="db2html.autotoc">
- <xsl:param name="node" select="."/>
- <xsl:param name="show_info" select="false()"/>
- <xsl:param name="is_info" select="false()"/>
- <xsl:param name="show_title" select="false()"/>
- <xsl:param name="selected" select="/false"/>
- <xsl:param name="divisions"/>
-
- <xsl:param name="toc_depth" select="1"/>
-
- <xsl:param name="labels" select="true()"/>
- <xsl:param name="titleabbrev" select="false()"/>
- <xsl:if test="($selected = false()) or ($node = $selected/ancestor-or-self::*)">
- <div class="autotoc">
- <xsl:if test="$show_title">
- <div class="title autotoc-title">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Contents'"/>
- </xsl:call-template>
- </div>
- </xsl:if>
- <ul>
- <xsl:if test="$show_info">
- <li>
- <xsl:choose>
- <xsl:when test="$is_info">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'About This Document'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$db.chunk.info_basename"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:variable name="text">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'About This Document'"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:attribute name="title">
- <xsl:value-of select="$text"/>
- </xsl:attribute>
- <xsl:value-of select="$text"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </li>
- </xsl:if>
- <xsl:for-each select="$divisions">
- <xsl:apply-templates mode="db2html.autotoc.mode" select=".">
- <xsl:with-param name="is_info" select="$is_info"/>
- <xsl:with-param name="selected" select="$selected"/>
- <xsl:with-param name="toc_depth" select="$toc_depth - 1"/>
- <xsl:with-param name="labels" select="$labels"/>
- <xsl:with-param name="titleabbrev" select="$titleabbrev"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </ul>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.autotoc.mode
-Renders a TOC entry for an element and its children
-$is_info: Whether this contents list is for the info page
-$selected: A currently-selected page
-$toc_depth: How deep to create entries in the table of contents
-$labels: Whether to generate labels
-$titleabbrev: Whether to use #{titleabbrev} instead of #{title}
-
-This mode outputs a single element in a table of contents. If the
-${toc_depth} parameter is non-zero, then templates implementing this
-mode should call *{db2html.autotoc} in their context node, passing
-their division-level child elements and decrementing ${toc_depth}
-by one.
-
-For a description of the other parameters, see *{db2html.autotoc}.
--->
-<xsl:template mode="db2html.autotoc.mode" match="*">
- <xsl:param name="is_info" select="false()"/>
- <xsl:param name="selected" select="/false"/>
- <xsl:param name="toc_depth" select="0"/>
- <xsl:param name="labels" select="true()"/>
- <xsl:param name="titleabbrev" select="false()"/>
- <xsl:variable name="xrefstyle">
- <xsl:text>role:title</xsl:text>
- <xsl:if test="$titleabbrev">
- <xsl:text>abbrev</xsl:text>
- </xsl:if>
- </xsl:variable>
- <li>
- <xsl:if test="$labels">
- <span class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="role" select="'li'"/>
- </xsl:call-template>
- </span>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="set:has-same-node(., $selected) and not($is_info)">
- <xsl:call-template name="db.xref.content">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$toc_depth &gt; 0">
- <xsl:call-template name="db2html.autotoc">
- <xsl:with-param name="selected" select="$selected"/>
- <xsl:with-param name="toc_depth" select="$toc_depth"/>
- <xsl:with-param
- name="divisions"
- select="appendix | article | bibliography | bibliodiv | book |
- chapter | colophon | dedication | glossary | glossdiv |
- index | lot | part | preface | refentry |
- reference | sect1 | sect2 | sect3 | sect4 |
- sect5 | section | setindex | simplesect | toc "/>
- <xsl:with-param name="labels" select="$labels"/>
- <xsl:with-param name="titleabbrev" select="$titleabbrev"/>
- </xsl:call-template>
- </xsl:if>
- </li>
-</xsl:template>
-
-<!-- = refentry % db2html.autotoc.mode = -->
-<xsl:template mode="db2html.autotoc.mode" match="refentry">
- <xsl:param name="is_info" select="false()"/>
- <xsl:param name="selected" select="/false"/>
- <xsl:param name="toc_depth" select="0"/>
- <xsl:param name="labels" select="true()"/>
- <xsl:param name="titleabbrev" select="false()"/>
- <xsl:variable name="xrefstyle">
- <xsl:text>role:title</xsl:text>
- <xsl:if test="$titleabbrev">
- <xsl:text>abbrev</xsl:text>
- </xsl:if>
- </xsl:variable>
- <li>
- <xsl:choose>
- <xsl:when test="set:has-same-node(., $selected)">
- <xsl:call-template name="db.xref.content">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$labels">
- <xsl:if test="refnamediv/refpurpose">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="' — '"/>
- </xsl:call-template>
- <xsl:apply-templates select="refnamediv/refpurpose[1]"/>
- </xsl:if>
- </xsl:if>
- </li>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-bibliography.xsl b/xslt/docbook/html/db2html-bibliography.xsl
deleted file mode 100644
index c008db6..0000000
--- a/xslt/docbook/html/db2html-bibliography.xsl
+++ /dev/null
@@ -1,643 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns:set="http://exslt.org/sets"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="msg set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Bibliographies
-:Requires: db-chunk db-common db-label db2html-block db2html-inline db2html-division db2html-xref gettext
-
-This module provides templates to process DocBook bibliograpies.
--->
-
-
-<!--** =========================================================================
-db2html.biblioentry.label
-Outputs the label for a bibliography entry
-$node: The #{biblioentry} or #{bibliomixed} element to generate a label for
-
-This outputs a label to be placed inline at the beginning of a bibliography
-entry. Labels are created for both #{biblioentry} and #{bibliomixed} elements.
-The label is typically an abbreviation of the authors' names an the year of
-publication. In DocBook, it is usually provides with a leading #{abbrev}
-element. Without a leading #{abbrev} element, this template will instead
-use the #{xreflabel} or #{id} attribute.
--->
-<xsl:template name="db2html.biblioentry.label">
- <xsl:param name="node" select="."/>
- <xsl:if test="$node/*[1]/self::abbrev or $node/@xreflabel or $node/@id">
- <span class="bibliolabel">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'bibliolabel.format'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </span>
- <xsl:text> </xsl:text>
- </xsl:if>
-</xsl:template>
-
-<!--#% l10n.format.mode -->
-<xsl:template mode="l10n.format.mode" match="msg:bibliolabel">
- <xsl:param name="node"/>
- <xsl:choose>
- <xsl:when test="$node/*[1]/self::abbrev">
- <xsl:apply-templates select="$node/abbrev[1]"/>
- </xsl:when>
- <xsl:when test="$node/@xreflabel">
- <xsl:value-of select="$node/@xreflabel"/>
- </xsl:when>
- <xsl:when test="$node/@id">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.biblioentry.mode
-Formats elements inside a #{biblioentry} element
-
-This mode is used when processing the child elements of a #{biblioentry}
-element. Many elements are treated differently when they appear inside
-a bibliography entry.
--->
-<xsl:template mode="db2html.biblioentry.mode" match="*">
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = abstract % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="abstract"/>
-
-<!-- = address % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="address">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = affiliation % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="affiliation">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = artheader % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="artheader">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = articleinfo % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="articleinfo">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = author % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="author">
- <xsl:call-template name="db.personname"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = authorblurb % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="authorblurb"/>
-
-<!-- = authorgroup % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="authorgroup">
- <xsl:call-template name="db.personname.list">
- <xsl:with-param name="nodes" select="*"/>
- </xsl:call-template>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = authorinitials % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="authorinitials">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = bibliocoverage % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="bibliocoverage">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = biblioid % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="biblioid">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = bibliomisc % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="bibliomisc">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = bibliorelation % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="bibliorelation">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = biblioset % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="biblioset">
- <xsl:apply-templates mode="db2html.biblioentry.mode"/>
-</xsl:template>
-
-<!-- = bibliosource % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="bibliosource">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = citetitle % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="citetitle">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="class" select="'bibliotitle'"/>
- </xsl:call-template>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = collab % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="collab">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = collabname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="collabname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = confgroup % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="confgroup">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = confdates % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="confdates">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = conftitle % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="conftitle">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = confnum % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="confnum">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = confsponsor % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="confsponsor">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = contractnum % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="contractnum">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = contractsponsor % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="contractsponsor">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = contrib % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="contrib">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = corpauthor % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="corpauthor">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = corpcredit % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="corpcredit">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = corpname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="corpname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = copyright % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="copyright">
- <xsl:call-template name="db.copyright"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = date % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="date">
- <xsl:call-template name="db.copyright"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = edition % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="edition">
- <xsl:call-template name="db.copyright"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = editor % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="editor">
- <xsl:call-template name="db.personname"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = firstname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="firstname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = honorific % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="honorific">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = indexterm % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="indexterm">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = invpartnumber % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="invpartnumber">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = isbn % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="isbn">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = issn % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="issn">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = issuenum % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="issuenum">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = jobtitle % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="jobtitle">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = lineage % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="lineage">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = orgname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="orgname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = orgdiv % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="orgdiv">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = othercredit % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="othercredit">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = othername % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="othername">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = pagenums % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="pagenums">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = personblurb % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="personblurb"/>
-
-<!-- = printhistory % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="printhistory"/>
-
-<!-- = productname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="productname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = productnumber % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="productnumber">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = pubdate % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="pubdate">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = publisher % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="publisher">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = publishername % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="publishername">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = pubsnumber % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="pubsnumber">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = releaseinfo % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="releaseinfo">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = revhistory % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="revhistory"/>
-
-<!-- = seriesvolnums % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="seriesvolnums">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = shortaffil % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="shortaffil">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = subtitle % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="subtitle">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = surname % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="surname">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = title % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="title">
- <span class="bibliotitle">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'citetitle.format'"/>
- <xsl:with-param name="role" select="../self::biblioset/@relation"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </span>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = titleabbrev % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="titleabbrev">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = volumenum % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="volumenum">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.bibliomixed.mode
-Formats elements inside a #{bibliomixed} element
-
-This mode is used when processing the child elements of a #{bibliomixed}
-element. Many elements are treated differently when they appear inside
-a bibliography entry.
--->
-<xsl:template mode="db2html.bibliomixed.mode" match="*">
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = absract % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="abstract">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = address % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="address">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = affiliation % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="affiliation">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = author % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="author">
- <xsl:call-template name="db.personname"/>
-</xsl:template>
-
-<!-- = authorblurb % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="authorblurb">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = authorgroup % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="authorgroup">
- <xsl:call-template name="db.personname.list">
- <xsl:with-param name="nodes" select="*"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = bibliomset % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="bibliomset">
- <xsl:apply-templates mode="db2html.bibliomixed.mode"/>
-</xsl:template>
-
-<!-- = bibliomisc % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="bibliomisc">
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>. </xsl:text>
-</xsl:template>
-
-<!-- = editor % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="editor">
- <xsl:call-template name="db.personname"/>
-</xsl:template>
-
-<!-- = personblurb % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="personblurb">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = shortaffil % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="shortaffil">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = title % db2html.bibliomixed.mode = -->
-<xsl:template mode="db2html.bibliomixed.mode" match="title">
- <span class="bibliotitle">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'citetitle.format'"/>
- <xsl:with-param name="role" select="../self::bibliomset/@relation"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </span>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = bibliography = -->
-<xsl:template match="bibliography">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title) and not(bibliographyinfo/title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="bibliographyinfo"/>
- <xsl:with-param name="divisions" select="bibliodiv"/>
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Bibliography'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="bibliographyinfo"/>
- <xsl:with-param name="divisions" select="bibliodiv"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = bibliodiv = -->
-<xsl:template match="bibliodiv">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = biblioentry = -->
-<xsl:template match="biblioentry">
- <xsl:variable name="node" select="."/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>bibliomixed block</xsl:text>
- <xsl:if test="not(preceding-sibling::biblioentry | preceding-sibling::bibliomixed)">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.biblioentry.label"/>
- <xsl:apply-templates mode="db2html.biblioentry.mode"
- select="*[not(set:has-same-node(., $node/*[1]/self::abbrev))]"/>
- </div>
-</xsl:template>
-
-<!-- = bibliomixed = -->
-<xsl:template match="bibliomixed">
- <xsl:variable name="node" select="."/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>bibliomixed block</xsl:text>
- <xsl:if test="not(preceding-sibling::biblioentry | preceding-sibling::bibliomixed)">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.biblioentry.label"/>
- <xsl:apply-templates mode="db2html.bibliomixed.mode"
- select="node()[not(set:has-same-node(., $node/*[1]/self::abbrev))]"/>
- </div>
-</xsl:template>
-
-<!-- = bibliolist = -->
-<xsl:template match="bibliolist">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class" select="'list'"/>
- <xsl:with-param name="indent" select="true()"/>
- <xsl:with-param name="formal" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
deleted file mode 100644
index c8ad957..0000000
--- a/xslt/docbook/html/db2html-block.xsl
+++ /dev/null
@@ -1,684 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="msg set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Block Elements
-:Requires: db-common db-label db-xref db2html-xref gettext
-
-This module handles most simple block-level elements, turning them into the
-appropriate HTML tags. It does not handle tables, lists, and various other
-complex block-level elements.
--->
-
-
-<!--**==========================================================================
-db2html.block
-Renders a block-level element to an HTML #{div} tag
-$node: The block-level element to render
-$class: An extra string to insert in the #{class} attribute
-$first: Whether this is the first child block in the parent
-$indent: Whether this block should be indented
-$verbatim: Whether to maintain whitespace as written
-$formal: Whether this is a formal block element
-$title: When ${formal} is true, an element to use for the title
-$caption: When ${formal} is true, an element to use for the caption
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-This template creates an HTML #{div} element for the given DocBook element.
-This template uses the parameters to construct the #{class} attribute, which
-is then used by the CSS for styling.
--->
-<xsl:template name="db2html.block">
- <xsl:param name="node" select="."/>
- <xsl:param name="class" select="''"/>
- <xsl:param name="first"
- select="not($node/preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])"/>
- <xsl:param name="indent" select="false()"/>
- <xsl:param name="verbatim" select="false()"/>
- <xsl:param name="formal" select="false()"/>
- <xsl:param name="title" select="$node/title"/>
- <xsl:param name="caption" select="$node/caption"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="false()"/>
-
- <div>
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:value-of select="concat($class, ' block ', local-name($node))"/>
- <xsl:if test="$first">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- <xsl:if test="$indent">
- <xsl:text> block-indent</xsl:text>
- </xsl:if>
- <xsl:if test="$verbatim">
- <xsl:text> block-verbatim</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:choose>
- <xsl:when test="$formal">
- <xsl:if test="$title">
- <xsl:call-template name="db2html.block.title">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="title" select="$title"/>
- </xsl:call-template>
- </xsl:if>
- <div class="{local-name($node)}-inner">
- <xsl:apply-templates select="$node/node()[not(set:has-same-node(., $title | $caption))]"/>
- </div>
- <xsl:apply-templates select="$caption"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$node/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.block.title
-Renders a formal title for a block-level element
-$node: The block-level element being processed
-$title: The element containing the title
-$lang: The locale of the text in ${title}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-This template formats the contents of ${title} as a title for a block-level
-element. It is called by *{db2html.block} for formal block elements.
--->
-<xsl:template name="db2html.block.title">
- <xsl:param name="node" select="."/>
- <xsl:param name="title" select="$node/title"/>
- <xsl:param name="lang" select="$title/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="false()"/>
-
- <div class="block block-first title title-formal">
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$title"/>
- </xsl:call-template>
- <span class="title">
- <span class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="'header'"/>
- </xsl:call-template>
- </span>
- <xsl:apply-templates select="$title/node()"/>
- </span>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.blockquote
-Renders a #{blockquote} element to HTML
-$node: The #{blockquote} element to render
-$first: Whether this is the first child block in the parent
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-This template creates an HTML #{blockquote} element for the given DocBook
-element.
--->
-<xsl:template name="db2html.blockquote">
- <xsl:param name="node" select="."/>
- <xsl:param name="first"
- select="not($node/preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="false()"/>
-
- <div>
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:value-of select="local-name($node)"/>
- <xsl:text> block block-indent</xsl:text>
- <xsl:if test="$first">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:apply-templates select="$node/title"/>
- <blockquote class="{local-name($node)}">
- <xsl:apply-templates select="$node/node()[not(self::title) and not(self::attribution)]"/>
- </blockquote>
- <xsl:apply-templates select="$node/attribution"/>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.para
-Renders a block-level element as an HTML #{p} element
-$node: The block-level element to render
-$first: Whether this is the first child block in the parent
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-This template creates an HTML #{p} element for the given DocBook element.
--->
-<xsl:template name="db2html.para">
- <xsl:param name="node" select="."/>
- <xsl:param name="first"
- select="not($node/preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="false()"/>
-
- <p>
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:value-of select="local-name($node)"/>
- <xsl:text> block</xsl:text>
- <xsl:if test="$first">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:apply-templates select="$node/node()"/>
- </p>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.pre
-Renders a block-level element as an HTML #{pre} element
-$node: The block-level element to render
-$class: An extra string to insert in the #{class} attribute
-$first: Whether this is the first child block in the parent
-$indent: Whether this block should be indented
-$children: The child elements to process
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-This template creates an HTML #{pre} element for the given DocBook element.
-This template uses the parameters to construct the #{class} attribute, which
-is then used by the CSS for styling.
-
-If ${node} has the #{linenumbering} attribute set to #{"numbered"}, then this
-template will create line numbers for each line, using the *{db.linenumbering}
-template.
--->
-<xsl:template name="db2html.pre">
- <xsl:param name="node" select="."/>
- <xsl:param name="class" select="''"/>
- <xsl:param name="first"
- select="not($node/preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])"/>
- <xsl:param name="indent" select="false()"/>
- <xsl:param name="children" select="$node/node()"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="true()"/>
-
- <div>
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:value-of select="concat($class, ' block ', local-name($node))"/>
- <xsl:if test="$indent">
- <xsl:text> block-indent</xsl:text>
- </xsl:if>
- <xsl:if test="$first">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:if test="$node/@linenumbering = 'numbered'">
- <xsl:variable name="number">
- <xsl:choose>
- <xsl:when test="@startinglinenumber">
- <xsl:value-of select="@startinglinenumber"/>
- </xsl:when>
- <xsl:when test="@continuation">
- <xsl:call-template name="db.linenumbering.start">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <pre class="linenumbering"><xsl:call-template name="db.linenumbering">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="number" select="$number"/>
- </xsl:call-template></pre>
- </xsl:if>
- <pre class="{local-name($node)}">
- <!-- Strip off a leading newline -->
- <xsl:if test="$children[1]/self::text()">
- <xsl:choose>
- <xsl:when test="starts-with($node/text()[1], '&#x000A;')">
- <xsl:value-of select="substring-after($node/text()[1], '&#x000A;')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$node/text()[1]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:apply-templates select="$children[not(position() = 1 and self::text())]"/>
- </pre>
- </div>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = abstract = -->
-<xsl:template match="abstract">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = ackno = -->
-<xsl:template match="ackno">
- <xsl:call-template name="db2html.para"/>
-</xsl:template>
-
-<!-- = address = -->
-<xsl:template match="address">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="verbatim" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = attribution = -->
-<xsl:template match="attribution">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="first" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = blockquote = -->
-<xsl:template match="blockquote">
- <xsl:call-template name="db2html.blockquote"/>
-</xsl:template>
-
-<!-- = caption = -->
-<xsl:template match="caption">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = caution = -->
-<xsl:template match="caution">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class" select="'admonition'"/>
- <xsl:with-param name="formal" select="true()"/>
- <xsl:with-param name="title" select="/false"/>
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = epigraph = -->
-<xsl:template match="epigraph">
- <xsl:call-template name="db2html.blockquote"/>
-</xsl:template>
-
-<!-- = equation = -->
-<xsl:template match="equation">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = example = -->
-<xsl:template match="example">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="indent" select="true()"/>
- <xsl:with-param name="formal" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = figure = -->
-<xsl:template match="figure">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="indent" select="true()"/>
- <xsl:with-param name="formal" select="true()"/>
- <!-- When a figure contains only a single mediaobject, it eats the caption -->
- <xsl:with-param name="caption"
- select="*[not(self::blockinfo) and not(self::title) and not(self::titleabbrev)]
- [last() = 1]/self::mediaobject/caption"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = formalpara = -->
-<xsl:template match="formalpara">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = glossdef = -->
-<xsl:template match="glossdef">
- <dd class="glossdef">
- <xsl:apply-templates select="*[not(self::glossseealso)]"/>
- </dd>
- <xsl:apply-templates select="glossseealso[1]"/>
-</xsl:template>
-
-<!-- = glossentry = -->
-<xsl:template match="glossentry">
- <dt>
- <xsl:attribute name="class">
- <xsl:text>glossterm</xsl:text>
- <xsl:if test="not(preceding-sibling::glossentry)">
- <xsl:text> dt-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates select="glossterm"/>
- <xsl:if test="acronym or abbrev">
- <xsl:text> </xsl:text>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'glossentry.abbrev.format'"/>
- <xsl:with-param name="node" select="(acronym | abbrev)[1]"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:if>
- </dt>
- <xsl:apply-templates select="glossdef | glosssee[1]"/>
-</xsl:template>
-
-<!-- = glosssee(also) = -->
-<xsl:template match="glosssee | glossseealso">
- <dd class="{local-name(.)}">
- <p class="block block-first">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="concat(local-name(.), '.format')"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </p>
- </dd>
-</xsl:template>
-
-<!--#% l10n.format.mode -->
-<xsl:template mode="l10n.format.mode" match="msg:glosssee">
- <xsl:param name="node"/>
- <xsl:for-each select="$node |
- $node/following-sibling::*[name(.) = name($node)]">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="@otherterm">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="@otherterm"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="@otherterm"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="normalize-space(.) != ''">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.xref.content">
- <xsl:with-param name="linkend" select="@otherterm"/>
- <xsl:with-param name="role" select="'glosssee'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = highlights = -->
-<xsl:template match="highlights">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = important = -->
-<xsl:template match="important">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class" select="'admonition'"/>
- <xsl:with-param name="formal" select="true()"/>
- <xsl:with-param name="title" select="/false"/>
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = informalequation = -->
-<xsl:template match="informalequation">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = informalexample = -->
-<xsl:template match="informalexample">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = informalfigure = -->
-<xsl:template match="informalfigure">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="indent" select="true()"/>
- <xsl:with-param name="formal" select="true()"/>
- <!-- When a figure contains only a single mediaobject, it eats the caption -->
- <xsl:with-param name="caption"
- select="*[not(self::blockinfo) and not(self::title) and not(self::titleabbrev)]
- [last() = 1]/self::mediaobject/caption"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = literallayout = -->
-<xsl:template match="literallayout">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="verbatim" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = note = -->
-<xsl:template match="note">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class">
- <xsl:text>admonition</xsl:text>
- <xsl:if test="@role = 'bug'">
- <xsl:text> note-bug</xsl:text>
- </xsl:if>
- </xsl:with-param>
- <xsl:with-param name="formal" select="true()"/>
- <xsl:with-param name="title" select="/false"/>
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = para = -->
-<xsl:template match="para">
- <xsl:call-template name="db2html.para"/>
-</xsl:template>
-
-<!-- = programlisting = -->
-<xsl:template match="programlisting">
- <xsl:call-template name="db2html.pre">
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = screen = -->
-<xsl:template match="screen">
- <xsl:call-template name="db2html.pre">
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = simpara = -->
-<xsl:template match="simpara">
- <xsl:call-template name="db2html.para"/>
-</xsl:template>
-
-<!-- = synopsis = -->
-<xsl:template match="synopsis">
- <xsl:call-template name="db2html.pre"/>
-</xsl:template>
-
-<!-- = tip = -->
-<xsl:template match="tip">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class" select="'admonition'"/>
- <xsl:with-param name="formal" select="true()"/>
- <xsl:with-param name="title" select="/false"/>
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = title = -->
-<xsl:template match="title">
- <xsl:call-template name="db2html.block.title">
- <xsl:with-param name="node" select=".."/>
- <xsl:with-param name="title" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = warning = -->
-<xsl:template match="warning">
- <xsl:call-template name="db2html.block">
- <xsl:with-param name="class" select="'admonition'"/>
- <xsl:with-param name="formal" select="true()"/>
- <xsl:with-param name="title" select="/false"/>
- <xsl:with-param name="indent" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-callout.xsl b/xslt/docbook/html/db2html-callout.xsl
deleted file mode 100644
index bba6006..0000000
--- a/xslt/docbook/html/db2html-callout.xsl
+++ /dev/null
@@ -1,147 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Callouts
-
-REMARK: Describe this module
--->
-
-<!--@@==========================================================================
-db2html.co.color
-The text color for callout dingbats
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.color" select="'#FFFFFF'"/>
-
-<!--@@==========================================================================
-db2html.co.background_color
-The background color for callout dingbats
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.background_color" select="'#000000'"/>
-
-<!--@@==========================================================================
-db2html.co.border_color
-The border color for callout dingbats
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.border_color" select="'#000000'"/>
-
-<!--@@==========================================================================
-db2html.co.color.hover
-The text color for callout dingbats when hovering
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.color.hover" select="'#FFFFFF'"/>
-
-<!--@@==========================================================================
-db2html.co.background_color.hover
-The background color for callout dingbats when hovering
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.background_color.hover" select="'#333333'"/>
-
-<!--@@==========================================================================
-db2html.co.border_color.hover
-The border color for callout dingbats when hovering.
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.co.border_color.hover" select="'#333333'"/>
-
-
-<!--**==========================================================================
-db2html.co.dingbat
-Creates a callout dingbat for a #{co} element
-$co: The #{co} element to create a callout dingbat for
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.co.dingbat">
- <xsl:param name="co" select="."/>
- <span class="co">
- <xsl:value-of select="count(preceding::co) + 1"/>
- </span>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.co.dingbats
-Renders a callout dingbat for each #{co} referenced in ${arearefs}
-$arearefs: A space-separated list of #{co} elements
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.co.dingbats">
- <xsl:param name="arearefs" select="@arearefs"/>
- <!-- FIXME -->
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.callout.css
-Outputs CSS that controls the appearance of callouts
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.callout.css">
-<xsl:text>
-span.co {
- margin-left: 0.2em; margin-right: 0.2em;
- padding-left: 0.4em; padding-right: 0.4em;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$db2html.co.border_color"/><xsl:text>;
- -moz-border-radius: 8px;
- background-color: </xsl:text>
- <xsl:value-of select="$db2html.co.background_color"/><xsl:text>;
- color: </xsl:text>
- <xsl:value-of select="$db2html.co.color"/><xsl:text>;
- font-size: 8px;
-}
-span.co:hover {
- border-color: </xsl:text>
- <xsl:value-of select="$db2html.co.border_color.hover"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$db2html.co.background_color.hover"/><xsl:text>;
- color: </xsl:text>
- <xsl:value-of select="$db2html.co.color.hover"/><xsl:text>;
-}
-span.co a { text-decoration: none; }
-span.co a:hover { text-decoration: none; }
-</xsl:text>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = co = -->
-<xsl:template match="co">
- <xsl:call-template name="db2html.co.dingbat"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-classsynopsis.xsl b/xslt/docbook/html/db2html-classsynopsis.xsl
deleted file mode 100644
index 8247a58..0000000
--- a/xslt/docbook/html/db2html-classsynopsis.xsl
+++ /dev/null
@@ -1,590 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Class Synopses
-:Requires: db2html-inline db2html-xref gettext
-
-REMARK: Describe this module. Implmentation note: for C++, we expect the first
-modifier to be the visibility
--->
-
-<xsl:variable name="cpp.tab" select="'&#160;&#160;&#160;&#160;'"/>
-<xsl:variable name="python.tab" select="'&#160;&#160;&#160;&#160;'"/>
-
-
-<!-- FIXME: document PI -->
-<!--@@==========================================================================
-db2html.classsynopsis.language
-The default programming language used to format #{classsynopsis} elements
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.classsynopsis.language">
- <xsl:choose>
- <xsl:when test="/processing-instruction('db2html.classsynopsis.language')">
- <xsl:value-of
- select="/processing-instruction('db2html.classsynopsis.language')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'cpp'"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = *synopsis = -->
-<xsl:template match="
- classsynopsis | constructorsynopsis | fieldsynopsis |
- methodsynopsis | destructorsynopsis ">
- <xsl:variable name="language">
- <xsl:choose>
- <xsl:when test="@language">
- <xsl:value-of select="@language"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.classsynopsis.language"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="first"
- select="not(preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])"/>
-
- <div>
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:text>block synopsis </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- <xsl:if test="$first">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- <xsl:value-of select="concat(' watermark-code-', $language)"/>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor"/>
- <pre class="{local-name(.)} classsynopsis-{$language}">
- <xsl:choose>
- <xsl:when test="$language = 'cpp'">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:when>
- <xsl:when test="$language = 'python'">
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No information about the language '</xsl:text>
- <xsl:value-of select="$language"/>
- <xsl:text>' for classsynopsis.</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </pre>
- </div>
-</xsl:template>
-
-<!-- = classsynopsisinfo = -->
-<xsl:template match="classsynopsisinfo">
- <xsl:apply-templates/>
- <!-- FIXME? -->
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = methodparam = -->
-<xsl:template match="methodparam">
- <span class="methodparam">
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </span>
-</xsl:template>
-
-<!-- = methodparam/parameter = -->
-<xsl:template match="methodparam/parameter">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="mono" select="true()"/>
- <xsl:with-param name="italic" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!--#* db2html.class.cpp.modifier -->
-<xsl:template name="db2html.class.cpp.modifier">
- <!-- For C++, we expect the first modifier to be the visibility -->
- <xsl:variable name="prec" select="self::*[../self::classsynopsis]/preceding-sibling::constructorsynopsis |
- self::*[../self::classsynopsis]/preceding-sibling::destructorsynopsis |
- self::*[../self::classsynopsis]/preceding-sibling::fieldsynopsis |
- self::*[../self::classsynopsis]/preceding-sibling::methodsynopsis "/>
- <xsl:choose>
- <xsl:when test="not($prec[modifier][last()][modifier[1] = current()/modifier[1]])">
- <xsl:if test="$prec"><xsl:text>&#x000A;</xsl:text></xsl:if>
- <xsl:apply-templates select="modifier[1]"/>
- <xsl:text>:&#x000A;</xsl:text>
- </xsl:when>
- <xsl:when test="$prec and (name($prec[last()]) != name(.))">
- <xsl:text>&#x000A;</xsl:text>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.class.cpp.mode
-
-REMARK: Describe this mode
--->
-<xsl:template mode="db2html.class.cpp.mode" match="*">
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = classsynopsis % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="classsynopsis">
- <!-- classsynopsis = element classsynopsis {
- attribute language { ... }?,
- attribute class { ... }?,
- ooclass+,
- (classsynopsisinfo | constructorsynopsis |
- destructorsynopsis | fieldsynopsis |
- methodsynopsis )
- }
- -->
- <xsl:if test="@class = 'class' or not(@class)">
- <span class="ooclass">
- <xsl:for-each select="ooclass[1]/modifier">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:text>class </xsl:text>
- <xsl:apply-templates mode="db2html.class.cpp.mode"
- select="ooclass[1]/classname"/>
- </span>
- <xsl:if test="ooclass[2]">
- <xsl:text> : </xsl:text>
- <xsl:for-each select="ooclass[position() != 1]">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- </xsl:if>
- <xsl:text>&#x000A;{&#x000A;</xsl:text>
- <xsl:apply-templates mode="db2html.class.cpp.mode"
- select="
- classsynopsisinfo |
- constructorsynopsis | destructorsynopsis |
- fieldsynopsis | methodsynopsis "/>
- <xsl:text>}&#x000A;</xsl:text>
- </xsl:if>
-</xsl:template>
-
-<!-- = constructorsynopsis % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="constructorsynopsis">
- <!-- constructorsynopsis = element constructorsynopsis {
- attribute language { ... }?,
- modifier+,
- methodname?,
- (methodparam+ | void?)
- }
- -->
- <xsl:call-template name="db2html.class.cpp.modifier"/>
- <xsl:value-of select="$cpp.tab"/>
- <xsl:for-each select="modifier[position() != 1]">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:choose>
- <xsl:when test="methodname">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="methodname"/>
- </xsl:when>
- <xsl:when test="../self::classsynopsis[ooclass]">
- <span class="methodname">
- <xsl:value-of select="../ooclass/classname"/>
- </span>
- </xsl:when>
- </xsl:choose>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- <xsl:text>);&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = destructorsynopsis % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="destructorsynopsis">
- <!-- destructorsynopsis = element destructorsynopsis {
- attribute language { ... }?,
- modifier+,
- methodname?,
- (methodparam+ | void?)
- }
- -->
- <xsl:call-template name="db2html.class.cpp.modifier"/>
- <xsl:value-of select="$cpp.tab"/>
- <xsl:for-each select="modifier[position() != 1]">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:choose>
- <xsl:when test="methodname">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="methodname"/>
- </xsl:when>
- <xsl:when test="../self::classsynopsis[ooclass]">
- <span class="methodname">
- <xsl:text>~</xsl:text>
- <xsl:value-of select="../ooclass/classname"/>
- </span>
- </xsl:when>
- </xsl:choose>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <!-- FIXME: should we do each methodparam on its own line? -->
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- <xsl:text>);&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = fieldsynopsis % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="fieldsynopsis">
- <!-- fieldsynopsis = element fieldsynopsis {
- attribute language { ... }?,
- modifier+,
- type,
- varname,
- initializer?
- }
- -->
- <xsl:call-template name="db2html.class.cpp.modifier"/>
- <xsl:value-of select="$cpp.tab"/>
- <xsl:for-each select="modifier[position() != 1]">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:if test="type">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="type"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="varname"/>
- <xsl:if test="initializer">
- <xsl:text> = </xsl:text>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="initializer"/>
- </xsl:if>
- <xsl:text>;&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = methodparam % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="methodparam">
- <span class="methodparam">
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:if test="self::initializer">
- <xsl:text>= </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- </span>
-</xsl:template>
-
-<!-- = methodsynopsis % db2html.class.cpp.mode = -->
-<xsl:template mode="db2html.class.cpp.mode" match="methodsynopsis">
- <!-- methodsynopsis = element methodsynopsis {
- attribute language { ... }?,
- modifier+,
- (type | void),
- methodname,
- (methodparam+ | void?)
- }
- -->
- <xsl:call-template name="db2html.class.cpp.modifier"/>
- <xsl:value-of select="$cpp.tab"/>
- <!-- Parens for document order -->
- <xsl:for-each select="(methodname/preceding-sibling::modifier)[position() != 1]">
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="type | methodname/preceding-sibling::void"/>
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="methodname"/>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:for-each select="methodname/following-sibling::modifier">
- <xsl:text> </xsl:text>
- <xsl:apply-templates mode="db2html.class.cpp.mode" select="."/>
- </xsl:for-each>
- <xsl:text>;&#x000A;</xsl:text>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.class.python.mode
-
-REMARK: Describe this mode
--->
-<xsl:template mode="db2html.class.python.mode" match="*">
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = classsynopsis % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="classsynopsis">
- <!-- classsynopsis = element classsynopsis {
- attribute language { ... }?,
- attribute class { ... }?,
- ooclass+,
- (classsynopsisinfo | constructorsynopsis |
- destructorsynopsis | fieldsynopsis |
- methodsynopsis )
- }
- -->
- <xsl:if test="@class = 'class' or not(@class)">
- <xsl:text>class </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="ooclass[1]"/>
- <xsl:if test="ooclass[2]">
- <xsl:text>(</xsl:text>
- <xsl:for-each select="ooclass[position() != 1]">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- </xsl:if>
- <xsl:text>:&#x000A;</xsl:text>
- <xsl:for-each select="classsynopsisinfo | constructorsynopsis |
- destructorsynopsis | fieldsynopsis |
- methodsynopsis ">
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- <xsl:if test="position() != last() and local-name(following-sibling::*[1]) != local-name(.)">
- <xsl:text>&#x000A;</xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
-</xsl:template>
-
-<!-- = constructorsynopsis % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="constructorsynopsis">
- <!-- constructorsynopsis = element constructorsynopsis {
- attribute language { ... }?,
- modifier+,
- methodname?,
- (methodparam+ | void?)
- }
- -->
- <xsl:variable name="tab">
- <xsl:if test="../self::classsynopsis">
- <xsl:value-of select="$python.tab"/>
- </xsl:if>
- </xsl:variable>
- <xsl:for-each select="modifier">
- <xsl:value-of select="$tab"/>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
- <xsl:value-of select="$tab"/>
- <xsl:choose>
- <xsl:when test="methodname">
- <xsl:apply-templates mode="db2html.class.python.mode" select="methodname"/>
- </xsl:when>
- <xsl:when test="../self::classsynopsis[ooclass]">
- <span class="methodname">
- <xsl:value-of select="../ooclass/classname"/>
- </span>
- </xsl:when>
- </xsl:choose>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:if test="type">
- <xsl:text> -&gt; </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="type"/>
- </xsl:if>
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = destructorsynopsis % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="destructorsynopsis">
- <!-- destructorsynopsis = element destructorsynopsis {
- attribute language { ... }?,
- modifier+,
- methodname?,
- (methodparam+ | void?)
- }
- -->
- <xsl:variable name="tab">
- <xsl:if test="../self::classsynopsis">
- <xsl:value-of select="$python.tab"/>
- </xsl:if>
- </xsl:variable>
- <xsl:for-each select="modifier">
- <xsl:value-of select="$tab"/>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
- <xsl:value-of select="$tab"/>
- <xsl:choose>
- <xsl:when test="methodname">
- <xsl:apply-templates mode="db2html.class.python.mode" select="methodname"/>
- </xsl:when>
- <xsl:otherwise>
- <span class="methodname">
- <xsl:text>__del__</xsl:text>
- </span>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:if test="type">
- <xsl:text> -&gt; </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="type"/>
- </xsl:if>
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = fieldsynopsis % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="fieldsynopsis">
- <!-- fieldsynopsis = element fieldsynopsis {
- attribute language { ... }?,
- modifier+,
- type,
- varname,
- initializer?
- }
- -->
- <xsl:variable name="tab">
- <xsl:if test="../self::classsynopsis">
- <xsl:value-of select="$python.tab"/>
- </xsl:if>
- </xsl:variable>
- <xsl:for-each select="modifier">
- <xsl:value-of select="$tab"/>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
- <xsl:value-of select="$tab"/>
- <xsl:apply-templates mode="db2html.class.python.mode" select="varname"/>
- <xsl:if test="initializer">
- <xsl:text>=</xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="initializer"/>
- </xsl:if>
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-<!-- = methodparam % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="methodparam">
- <span class="methodparam">
- <xsl:apply-templates mode="db2html.class.python.mode" select="parameter"/>
- <xsl:if test="modifier or type">
- <xsl:text>: </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="(modifier | type)[1]"/>
- <xsl:if test="initializer">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:if>
- <xsl:if test="initializer">
- <xsl:text>=</xsl:text>
- <xsl:if test="modifier or type">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.python.mode" select="initializer"/>
- </xsl:if>
- </span>
-</xsl:template>
-
-<!-- = methodsynopsis % db2html.class.python.mode = -->
-<xsl:template mode="db2html.class.python.mode" match="methodsynopsis">
- <!-- methodsynopsis = element methodsynopsis {
- attribute language { ... }?,
- modifier+,
- (type | void),
- methodname,
- (methodparam+ | void?)
- }
- -->
- <xsl:variable name="tab">
- <xsl:if test="../self::classsynopsis">
- <xsl:value-of select="$python.tab"/>
- </xsl:if>
- </xsl:variable>
- <xsl:for-each select="modifier">
- <xsl:value-of select="$tab"/>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
- <xsl:value-of select="$tab"/>
- <xsl:text>def </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="methodname"/>
- <xsl:text>(</xsl:text>
- <xsl:for-each select="methodparam">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="db2html.class.python.mode" select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:if test="type">
- <xsl:text> -&gt; </xsl:text>
- <xsl:apply-templates mode="db2html.class.python.mode" select="type"/>
- </xsl:if>
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-cmdsynopsis.xsl b/xslt/docbook/html/db2html-cmdsynopsis.xsl
deleted file mode 100644
index c8d2efb..0000000
--- a/xslt/docbook/html/db2html-cmdsynopsis.xsl
+++ /dev/null
@@ -1,524 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- xmlns:str="http://exslt.org/strings"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="set str"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Command Synopses
-:Requires: db-label db2html-xref gettext
-
-This module contains templates to process DocBook command synopsis elements.
--->
-
-
-<!--@@==========================================================================
-db2html.arg.choice
-The default value of the #{choice} parameter for #{arg} elements
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.arg.choice" select="'opt'"/>
-
-
-<!--@@==========================================================================
-db2html.arg.rep
-The default value of the #{rep} parameter for #{arg} elements
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.arg.rep" select="'norepeat'"/>
-
-
-<!--@@==========================================================================
-db2html.group.choice
-The default value of the #{choice} parameter for #{group} elements
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.group.choice" select="'opt'"/>
-
-
-<!--@@==========================================================================
-db2html.group.rep
-The default value of the #{rep} parameter for #{group} elements
-
-REMARK: Describe this param
--->
-<xsl:param name="db2html.group.rep" select="'norepeat'"/>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = arg = -->
-<xsl:template match="arg">
- <xsl:param name="sepchar">
- <xsl:choose>
- <xsl:when test="ancestor::cmdsynopsis[1][@sepchar]">
- <xsl:value-of select="ancestor::cmdsynopsis[1]/@sepchar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="choice">
- <xsl:choose>
- <xsl:when test="@choice">
- <xsl:value-of select="@choice"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.arg.choice"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="rep">
- <xsl:choose>
- <xsl:when test="@rep">
- <xsl:value-of select="@rep"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.arg.rep"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
-
- <span class="arg-punc">
- <xsl:choose>
- <xsl:when test="$choice = 'plain'"/>
- <xsl:when test="$choice = 'req'">
- <xsl:text>{</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>[</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <span class="arg">
- <xsl:for-each select="node()">
- <xsl:choose>
- <xsl:when test="self::sbr">
- <xsl:text>&#x000A;</xsl:text>
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode"
- select="ancestor::cmdsynopsis[1]">
- <xsl:with-param name="sbr" select="."/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select=".">
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </span>
- <xsl:if test="$rep = 'repeat'">
- <xsl:text>...</xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$choice = 'plain'"/>
- <xsl:when test="$choice = 'req'">
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>]</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </span>
-</xsl:template>
-
-<!-- = cmdsynopsis = -->
-<xsl:template match="cmdsynopsis">
- <xsl:param name="sepchar">
- <xsl:choose>
- <xsl:when test="@sepchar">
- <xsl:value-of select="@sepchar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <div>
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:text>synopsis cmdsynopsis block</xsl:text>
- <xsl:if test="not(preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(self::attribution) ])">
- <xsl:text> block-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="db2html.anchor"/>
- <pre class="cmdsynopsis">
- <xsl:for-each select="command | arg | group | sbr">
- <xsl:choose>
- <xsl:when test="position() = 1"/>
- <xsl:when test="self::sbr">
- <xsl:text>&#x000A;</xsl:text>
- <xsl:value-of select="str:padding(string-length(preceding-sibling::command[1]), ' ')"/>
- </xsl:when>
- <xsl:when test="self::command">
- <xsl:text>&#x000A;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$sepchar"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select=".">
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:for-each>
- <xsl:apply-templates select="synopfragment">
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </pre>
- </div>
-</xsl:template>
-
-<!-- = group = -->
-<xsl:template match="group">
- <xsl:param name="sepchar">
- <xsl:choose>
- <xsl:when test="ancestor::cmdsynopsis[1][@sepchar]">
- <xsl:value-of select="ancestor::cmdsynopsis[1]/@sepchar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="choice">
- <xsl:choose>
- <xsl:when test="@choice">
- <xsl:value-of select="@choice"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.group.choice"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="rep">
- <xsl:choose>
- <xsl:when test="@rep">
- <xsl:value-of select="@rep"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.group.rep"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:variable name="padding">
- <xsl:if test="sbr">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode"
- select="ancestor::cmdsynopsis[1]">
- <xsl:with-param name="sbr" select="sbr[1]"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:if>
- </xsl:variable>
-
- <span class="group-punc">
- <xsl:choose>
- <xsl:when test="$choice = 'plain'">
- <xsl:text>(</xsl:text>
- </xsl:when>
- <xsl:when test="$choice = 'req'">
- <xsl:text>{</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>[</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <span class="group">
- <xsl:for-each select="*">
- <xsl:choose>
- <xsl:when test="self::sbr">
- <xsl:text>&#x000A;</xsl:text>
- <xsl:value-of select="$padding"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select=".">
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:if test="position() != last()">
- <xsl:value-of select="concat($sepchar, '|', $sepchar)"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </span>
- <xsl:choose>
- <xsl:when test="$choice = 'plain'">
- <xsl:text>)</xsl:text>
- </xsl:when>
- <xsl:when test="$choice = 'req'">
- <xsl:text>}</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>]</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$rep = 'repeat'">
- <xsl:text>...</xsl:text>
- </xsl:if>
- </span>
-</xsl:template>
-
-<!-- = synopfragment = -->
-<xsl:template match="synopfragment">
- <xsl:param name="sepchar">
- <xsl:choose>
- <xsl:when test="ancestor::cmdsynopsis[1][@sepchar]">
- <xsl:value-of select="ancestor::cmdsynopsis[1]/@sepchar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <div class="synopfragment">
- <xsl:call-template name="db2html.anchor"/>
- <i><xsl:call-template name="db.label"/></i>
- <xsl:for-each select="*">
- <xsl:value-of select="$sepchar"/>
- <xsl:apply-templates select=".">
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
-</xsl:template>
-
-<!-- = synopfragmentref = -->
-<xsl:template match="synopfragmentref">
- <xsl:call-template name="db2html.xref"/>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.cmdsynopsis.sbr.padding.mode
-Outputs padding for elements leading up to an #{sbr} element
-$sbr: The #{sbr} element to pad up to
-$sepchar: The value of the #{sepchar} attribute on the enclosing #{cmdsynopsis}
-
-When processed in this mode, elements output whitespace to the length of the
-textual output they would normally produce. This allows options to be aligned
-when explicit line breaks are inserted with #{sbr} elements.
-
-To create the padding for a given #{sbr} element, this mode is called on the
-enclosing #{cmdsynopsis} element, passing the #{sbr} element. When processed
-in this mode, elements should only output padding for content the leads up to
-the #{sbr} element passed in the ${sbr} parameter. When processing children
-that don't contain the given #{sbr} element, the ${sbr} parameter should be
-set to #{false()} for those children. This avoids additional ancestor
-selectors, which are generally expensive to perform.
--->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="node()">
- <xsl:value-of select="str:padding(string-length(.), ' ')"/>
-</xsl:template>
-
-<!-- = cmdsynopsis % db2html.cmdsynopsis.sbr.padding.mode = -->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="cmdsynopsis">
- <xsl:param name="sbr"/>
- <xsl:param name="sepchar"/>
- <xsl:variable name="child" select="*[set:has-same-node(.|.//sbr, $sbr)][1]"/>
- <xsl:choose>
- <xsl:when test="$child/self::synopfragment">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select="$child">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <!-- Output padding for the preceding command -->
- <xsl:variable name="cmd" select="$child/preceding-sibling::command[1]"/>
- <xsl:value-of select="str:padding(string-length($cmd), ' ')"/>
- <xsl:value-of select="str:padding(string-length($sepchar), ' ')"/>
- <!-- Process all children that are between $cmd and $child, but
- after any sbr elements between $cmd and $child -->
- <xsl:for-each select="$cmd/following-sibling::*
- [set:has-same-node(following-sibling::*, $child)]
- [not(set:has-same-node(. | following-sibling::sbr,
- $child/preceding-sibling::sbr))]">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select=".">
- <xsl:with-param name="sbr" select="false()"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:value-of select="str:padding(string-length($sepchar), ' ')"/>
- </xsl:for-each>
- <!-- And process $child itself -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select="$child">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = arg % db2html.cmdsynopsis.sbr.padding.mode = -->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="arg">
- <xsl:param name="sbr"/>
- <xsl:param name="sepchar"/>
- <xsl:if test="@choice != 'plain'">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="not($sbr)">
- <!-- The sbr is outside this element. The total width an arg is whatever
- comes before an sbr plus whatever comes after an sbr plus possible
- punctuation spacing. -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode"
- select="node()[not(preceding-sibling::sbr)]">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode"
- select="sbr[last()]/following-sibling::node()">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:if test="@choice != 'plain'">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="child" select="*[set:has-same-node(.|.//sbr, $sbr)][1]"/>
- <!-- Process all children that are before $child, but after
- any sbr elements before $child. Process any children
- before the initial sbr before $child, if it exists. -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode"
- select="$child/preceding-sibling::sbr[last()]/preceding-sibling::node()
- | ($child/preceding-sibling::node())
- [not(set:has-same-node(. | following-sibling::sbr,
- $child/preceding-sibling::sbr))]">
- <xsl:with-param name="sbr" select="false()"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <!-- And process $child itself -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select="$child">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = group % db2html.cmdsynopsis.sbr.padding.mode = -->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="group">
- <xsl:param name="sbr"/>
- <xsl:param name="sepchar"/>
- <xsl:text> </xsl:text>
- <xsl:choose>
- <xsl:when test="not($sbr)">
- <!-- The sbr is outside this element. The total width a group is
- calculated by taking all children after the last sbr (or all
- children if there is no sbr), adding their widths, and adding
- width for joining punctuation for all but one of them. Add
- to this punctuation spacing for the group as a whole. -->
- <xsl:for-each select="*[not(following-sibling::sbr) and not(self::sbr)]">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select=".">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:if test="position() != 1">
- <xsl:value-of select="str:padding(2 * string-length($sepchar) + 1, ' ')"/>
- </xsl:if>
- </xsl:for-each>
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:when test="set:has-same-node(., $sbr/..)"/>
- <xsl:otherwise>
- <xsl:variable name="child" select="*[set:has-same-node(.|.//sbr, $sbr)][1]"/>
- <!-- Process all children that are before $child, but after
- any sbr elements before $child. Add joining punctuation
- padding for all but one of them. -->
- <xsl:for-each select="($child/preceding-sibling::*)
- [not(set:has-same-node(. | following-sibling::sbr,
- $child/preceding-sibling::sbr))]">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select=".">
- <xsl:with-param name="sbr" select="false()"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:if test="position() != 1">
- <xsl:value-of select="str:padding(2 * string-length($sepchar) + 1, ' ')"/>
- </xsl:if>
- </xsl:for-each>
- <!-- And process $child itself -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select="$child">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = synopfragment % db2html.cmdsynopsis.sbr.padding.mode = -->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="synopfragment">
- <xsl:param name="sbr"/>
- <xsl:param name="sepchar"/>
- <xsl:variable name="label">
- <xsl:call-template name="db.label"/>
- </xsl:variable>
- <xsl:value-of select="str:padding(string-length($label), ' ')"/>
- <xsl:value-of select="str:padding(string-length($sepchar), ' ')"/>
- <xsl:variable name="child" select="*[set:has-same-node(.|.//sbr, $sbr)][1]"/>
- <!-- Process all children that are before $child, but
- after any sbr elements before $child -->
- <xsl:for-each select="$child/preceding-sibling::*
- [not(set:has-same-node(. | following-sibling::sbr,
- $child/preceding-sibling::sbr))]">
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select=".">
- <xsl:with-param name="sbr" select="false()"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
- <xsl:value-of select="str:padding(string-length($sepchar), ' ')"/>
- </xsl:for-each>
- <!-- And process $child itself -->
- <xsl:apply-templates mode="db2html.cmdsynopsis.sbr.padding.mode" select="$child">
- <xsl:with-param name="sbr" select="$sbr"/>
- <xsl:with-param name="sepchar" select="$sepchar"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<!-- = synopfragmentref % db2html.cmdsynopsis.sbr.padding.mode = -->
-<xsl:template mode="db2html.cmdsynopsis.sbr.padding.mode" match="synopfragmentref">
- <xsl:variable name="label">
- <xsl:call-template name="db2html.xref"/>
- </xsl:variable>
- <xsl:value-of select="str:padding(string-length($label), ' ')"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-css.xsl b/xslt/docbook/html/db2html-css.xsl
deleted file mode 100644
index 8b0a80e..0000000
--- a/xslt/docbook/html/db2html-css.xsl
+++ /dev/null
@@ -1,501 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - CSS
-:Requires: db2html-footnote db2html-callout db2html-qanda gettext theme
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-db2html.css.file
-The file to output CSS to
-
-This parameter allows you to output the CSS to separate file which is referenced
-by each HTML file. If this parameter is blank, then the CSS is embedded inside
-a #{style} tag in the HTML instead.
--->
-<xsl:param name="db2html.css.file" select="''"/>
-
-
-<!--**==========================================================================
-db2html.css
-Outputs the CSS that controls the appearance of the entire document
-$css_file: Whether to create a CSS file when @{db2html.css.file} is set.
-
-This template outputs a #{style} or #{link} tag and calls *{db2html.css.content}
-to output the actual CSS directives. An external CSS file will only be created
-when ${css_file} is true. This is only set to true by the top-level chunk to
-avoid creating the same file multiple times.
--->
-<xsl:template name="db2html.css">
- <xsl:param name="css_file" select="false()"/>
- <xsl:choose>
- <xsl:when test="$db2html.css.file != ''">
- <xsl:if test="$css_file">
- <exsl:document href="{$db2html.css.file}" method="text">
- <xsl:call-template name="db2html.css.content"/>
- </exsl:document>
- </xsl:if>
- <link rel="stylesheet" type="text/css" href="{$db2html.css.file}"/>
- </xsl:when>
- <xsl:otherwise>
- <style type="text/css">
- <xsl:call-template name="db2html.css.content"/>
- </style>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.css.content
-Outputs the actual CSS directives
-
-This template is called by *{db2html.css} to output CSS content. It also calls
-templates from other modules to output CSS specific to the content addressed in
-those modules.
-
-This template calls *{db2html.css.custom} at the end. That template may be used
-by extension stylesheets to extend or override the CSS.
--->
-<xsl:template name="db2html.css.content">
- <xsl:variable name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:variable>
- <xsl:variable name="left">
- <xsl:call-template name="l10n.align.start">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="right">
- <xsl:call-template name="l10n.align.end">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:text>
-<!-- == common == -->
-html { height: 100%; }
-body {
- margin: 0px; padding: 12px;
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- min-height: 100%;
- direction: </xsl:text><xsl:value-of select="$direction"/><xsl:text>;
-}
-div, p, pre, blockquote { margin: 0; padding: 0; }
-p img { vertical-align: middle; }
-sub { font-size: 0.83em; }
-sub sub { font-size: 1em; }
-sup { font-size: 0.83em; }
-sup sup { font-size: 1em; }
-table { border-collapse: collapse; }
-table.table-pgwide { width: 100%; }
-td { vertical-align: top; }
-td { padding: 0.2em 0.83em 0.2em 0.83em; }
-th { padding: 0 0.83em 0 0.83em; }
-tr.tr-shade {
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
-}
-td.td-colsep { border-</xsl:text><xsl:value-of select="$right"/><xsl:text>: solid 1px; }
-td.td-rowsep { border-bottom: solid 1px; }
-thead { border-top: solid 2px; border-bottom: solid 2px; }
-tfoot { border-top: solid 2px; border-bottom: solid 2px; }
-div.body {
- padding: 1em;
- max-width: 60em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.body-sidebar {
- margin-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 13em;
-}
-div.division div.division { margin-top: 1.72em; }
-div.division div.division div.division { margin-top: 1.44em; }
-div.header {
- margin: 0;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- border-bottom: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-h1, h2, h3, h4, h5, h6, h7 {
- margin: 0; padding: 0;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-h1.title { font-size: 1.72em; }
-h2.title { font-size: 1.44em; }
-h3.title { font-size: 1.2em; }
-h4.title, h5.title, h6.title, h7.title { font-size: 1em; }
-.block { margin-top: 1em; }
-.block .block-first { margin-top: 0; }
-.block-indent {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text> left: 1.72em;
- margin-</xsl:text><xsl:value-of select="right"/><xsl:text>: 1em;
-}
-.block-indent .block-indent { margin-left: 0em; margin-right: 0em; }
-td .block-indent { margin-left: 0em; margin-right: 0em; }
-dd .block-indent { margin-left: 0em; margin-right: 0em; }
-.block-verbatim { white-space: pre; }
-div.title {
- margin-bottom: 0.2em;
- font-weight: bold;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.title-formal { padding-left: 0.2em; padding-right: 0.2em; }
-div.title-formal .label { font-weight: normal; }
-a {
- color: </xsl:text><xsl:value-of select="$theme.color.link"/><xsl:text>;
- text-decoration: none;
-}
-a:hover { text-decoration: underline; }
-a:visited { color: </xsl:text><xsl:value-of select="$theme.color.link_visited"/><xsl:text>; }
-ul, ol, dl { margin: 0; padding: 0; }
-li {
- margin-top: 1em;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 2.4em;
- padding: 0;
-}
-li.li-first { margin-top: 0; }
-dt { margin: 1em 0 0 0; }
-dt.dt-first { margin: 0; }
-dd {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
- margin-top: 0.5em;
-}
-dl.dl-compact dt { margin-top: 0; }
-dl.dl-compact dd { margin-top: 0; margin-bottom: 0; }
-
-<!-- == linktrail == -->
-ul.linktrail {
- display: block;
- margin: 0.2em 0 0 0;
- text-align: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
-}
-li.linktrail { display: inline; margin: 0; padding: 0; }
-<!-- FIXME: rtl? -->
-li.linktrail::before {
- content: '&#x00A0; /&#x00A0;&#x00A0;';
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-<!-- FIXME: rtl? -->
-li.linktrail-first::before, li.linktrail-only::before { content: ''; }
-
-<!-- == navbar == -->
-div.navbar {
- padding: 0.5em 1em 0.5em 1em;
- max-width: 60em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.navbar-top { margin-bottom: 1em; }
-div.navbar-bottom { margin-top: 1em; clear: both; }
-div.navbar img { border: 0; vertical-align: -0.4em; }
-table.navbar { width: 100%; margin: 0; border: none; }
-table.navbar td { padding: 0; border: none; }
-td.navbar-next {
- text-align: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
-}
-a.navbar-prev::before {
- <!-- FIXME: rtl -->
- content: '</xsl:text><xsl:choose>
- <xsl:when test="$left = 'left'"><xsl:text>&#x25C0;&#x00A0;&#x00A0;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text>&#x25B6;&#x00A0;&#x00A0;</xsl:text></xsl:otherwise>
- </xsl:choose><xsl:text>';
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-a.navbar-next::after {
- <!-- FIXME: rtl -->
- content: '</xsl:text><xsl:choose>
- <xsl:when test="$left = 'left'"><xsl:text>&#x00A0;&#x00A0;&#x25B6;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text>&#x00A0;&#x00A0;&#x25C0;</xsl:text></xsl:otherwise>
- </xsl:choose><xsl:text>';
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-
-<!-- == sidebar == -->
-div.sidebar {
- float: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
- padding: 0; margin: 0; width: 12em;
-}
-div.sidenav {
- padding: 0.5em 1em 0 1em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.sidenav div.autotoc {
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- border: none; padding: 0; margin: 0;
-}
-div.sidenav div.autotoc div.autotoc { margin-top: 0.5em; }
-div.sidenav div.autotoc li { margin-bottom: 0.5em; }
-div.sidenav div.autotoc div.autotoc div.autotoc {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
- margin-top: 0;
-}
-div.sidenav div.autotoc div.autotoc div.autotoc li { margin-bottom: 0; }
-
-<!-- == autotoc == -->
-div.autotoc {
- <!-- FIXME: hack -->
- display: table;
- margin-top: 1em;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
- padding: 0.5em 1em 0.5em 1em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.blue_background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
-}
-div.autotoc ul { margin: 0; padding: 0; }
-div.autotoc li { list-style-type: none; margin: 0; }
-div.autotoc div.autotoc-title { margin-bottom: 0.5em; }
-div.autotoc div.autotoc { border: none; padding: 0; margin-top: 0; margin-bottom: 0.5em; }
-div.autotoc div.autotoc div.autotoc { margin-bottom: 0; }
-
-<!-- == bibliography == -->
-span.bibliolabel {
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-
-<!-- == block == -->
-div.admonition {
- padding: 0.5em 6px 0.5em 6px;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- background-color: </xsl:text><xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
-}
-div.caution-inner, div.important-inner, div.note-inner, div.tip-inner, div.warning-inner {
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: </xsl:text>
- <xsl:value-of select="$theme.icon.admon.size + 12"/><xsl:text>px;
- background-position: </xsl:text><xsl:value-of select="$left"/><xsl:text> top;
- background-repeat: no-repeat;
- min-height: </xsl:text><xsl:value-of select="$theme.icon.admon.size"/><xsl:text>px;
-}
-div.caution-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.caution"/><xsl:text>"); }
-div.important-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.important"/><xsl:text>"); }
-div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.note"/><xsl:text>"); }
-div.note-bug div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.bug"/><xsl:text>"); }
-div.tip-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.tip"/><xsl:text>"); }
-div.warning-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.warning"/><xsl:text>"); }
-div.blockquote {
- <!-- FIXME: i18n -->
- background-image: url('</xsl:text>
- <xsl:value-of select="$theme.watermark.blockquote"/><xsl:text>');
- background-repeat: no-repeat;
- background-position: top </xsl:text><xsl:value-of select="$left"/><xsl:text>;
- padding: 0.5em;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 4em;
-}
-div.attribution {
- margin-top: 0.5em;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.attribution::before {
- <!-- FIXME: i18n -->
- content: '&#x2015; ';
-}
-div.epigraph {
- text-align: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 20%;
- margin-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 0;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.figure, div.informalfigure {
- <!-- FIXME: hack -->
- display: table;
- padding: 0.5em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.figure-inner, div.informalfigure-inner {
- padding: 0.5em;
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.caption { margin-top: 0.5em; }
-div.programlisting {
- padding: 0.5em;
- <!-- FIXME: watermark -->
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.screen {
- padding: 0.5em;
- <!-- FIXME: watermark -->
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.screen .prompt {
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.screen .userinput {
- font-weight: bold;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.programlisting .userinput {
- font-weight: bold;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-pre.linenumbering {
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- margin: 0;
- padding-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 1em;
- float: </xsl:text><xsl:value-of select="$left"/><xsl:text>;
- text-align: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
-}
-
-
-<!-- == unsorted == -->
-dl.index dt { margin-top: 0; }
-dl.index dd { margin-top: 0; margin-bottom: 0; }
-dl.indexdiv dt { margin-top: 0; }
-dl.indexdiv dd { margin-top: 0; margin-bottom: 0; }
-dl.setindex dt { margin-top: 0; }
-dl.setindex dd { margin-top: 0; margin-bottom: 0; }
-div.list div.title-formal span.title {
- border-bottom: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.simplelist {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
-}
-div.simplelist table { margin-left: 0; border: none; }
-div.simplelist td {
- padding: 0.5em;
- border-</xsl:text><xsl:value-of select="$left"/><xsl:text>: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.simplelist td.td-first {
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 0;
- border-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 0;
-}
-div.synopsis {
- padding: 0.5em;
- <!-- FIXME: watermarks -->
- background-color: </xsl:text><xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border-top: solid 2px </xsl:text><xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
- border-bottom: solid 2px </xsl:text><xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
-}
-div.synopsis div.synopsis {
- padding: 0;
- border: none;
-}
-div.synopsis div.block { margin-top: 0.2em; }
-div.synopsis div.block-first { margin-top: 0; }
-div.cmdsynopsis { font-family: monospace; }
-
-span.accel { text-decoration: underline; }
-span.acronym { font-family: sans-serif; }
-span.application { font-style: italic; }
-span.classname, span.exceptionname, span.interfacename { font-family: monospace; }
-span.code {
- font-family: monospace;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- padding-left: 0.2em;
- padding-right: 0.2em;
-}
-pre span.code { border: none; padding: 0; }
-span.command {
- font-family: monospace;
- border: solid 1px </xsl:text><xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- padding-left: 0.2em;
- padding-right: 0.2em;
-}
-pre span.command { border: none; padding: 0; }
-span.computeroutput { font-family: monospace; }
-<!-- FIXME: stderr red text -->
-span.constant { font-family: monospace; }
-span.database { font-family: monospace; }
-span.email { font-family: monospace; }
-span.emphasis { font-style: italic; }
-span.emphasis-bold { font-style: normal; font-weight: bold; }
-span.envar { font-family: monospace; }
-<!-- FIXME: error* red text -->
-span.filename { font-family: monospace; }
-span.firstterm { font-style: italic; }
-span.foreignphrase { font-style: italic; }
-span.function { font-family: monospace; }
-
-dt.glossterm span.glossterm { font-style: normal; }
-<!--
-dt.glossterm { margin-left: 0em; }
-dd + dt.glossterm { margin-top: 2em; }
-dd.glossdef, dd.glosssee, dd.glossseealso { margin-top: 0em; margin-bottom: 0; }
--->
-
-span.glossterm { font-style: italic; }
-
-span.guibutton, span.guilabel, span.guimenu, span.guimenuitem, span.guisubmenu, span.interface {
- font-weight: bold;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-span.keycap {
- font-weight: bold;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-span.lineannotation { font-style: italic; }
-span.literal { font-family: monospace; }
-span.markup { font-family: monospace; }
-span.medialabel { font-style: italic; }
-span.methodname { font-family: monospace; }
-span.ooclass, span.ooexception, span.oointerface { font-family: monospace; }
-span.option { font-family: monospace; }
-span.parameter { font-family: monospace; }
-span.paramdef span.parameter { font-style: italic; }
-span.prompt { font-family: monospace; }
-span.property { font-family: monospace; }
-span.replaceable { font-style: italic; }
-span.returnvalue { font-family: monospace; }
-span.sgmltag { font-family: monospace; }
-span.structfield, span.structname { font-family: monospace; }
-span.symbol { font-family: monospace; }
-span.systemitem { font-family: monospace; }
-span.token { font-family: monospace; }
-span.type { font-family: monospace; }
-span.uri { font-family: monospace; }
-span.userinput { font-family: monospace; }
-span.varname { font-family: monospace; }
-span.wordasword { font-style: italic; }
-<!-- FIXME below -->
-
-</xsl:text>
- <xsl:call-template name="db2html.footnote.css"/>
- <xsl:call-template name="db2html.callout.css"/>
- <xsl:call-template name="db2html.qanda.css"/>
-<xsl:call-template name="db2html.css.custom"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.css.custom
-Allows extension stylesheets to extend or override CSS
-:Stub: true
-
-This stub template has no content. Extension stylesheets can override this
-template to output extra CSS.
--->
-<xsl:template name="db2html.css.custom"/>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
deleted file mode 100644
index 68c7e9a..0000000
--- a/xslt/docbook/html/db2html-division.xsl
+++ /dev/null
@@ -1,1399 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Division Elements
-:Requires: db-chunk db-label db-title db-xref db2html-autotoc db2html-css db2html-footnote db2html-info db2html-xref gettext
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-db2html.linktrail
-Whether to place a link trail under the header
-
-This boolean parameter specifies whether a block containing links to
-ancestor elements should be included under the header.
--->
-<xsl:param name="db2html.linktrail" select="true()"/>
-
-<!--@@==========================================================================
-db2html.navbar.top
-Whether to place a navigation bar at the top of the page
-
-This boolean parameter specifies whether a block containing navigation
-links should be placed at the top of the page. The top navigation bar
-is inserted by *{db2html.division.top}, so this parameter may have no
-effect if that template has been overridden.
--->
-<xsl:param name="db2html.navbar.top" select="true()"/>
-
-<!--@@==========================================================================
-db2html.navbar.bottom
-Whether to place a navigation bar at the bottom of the page
-
-This boolean parameter specifies whether a block containing navigation
-links should be placed at the bottom of the page. The bottom navigation
-bar is inserted by *{db2html.division.bottom}, so this parameter may have
-no effect if that template has been overridden.
--->
-<xsl:param name="db2html.navbar.bottom" select="true()"/>
-
-<!--@@==========================================================================
-db2html.sidenav
-Whether to create a navigation sidebar
-
-This boolean parameter specifies whether a full navigation tree in a sidebar.
-The navigation sidebar is inserted by *{db2html.division.sidebar}, so this
-parameter may have no effect if that template has been overridden.
--->
-<xsl:param name="db2html.sidenav" select="true()"/>
-
-
-<!--**==========================================================================
-db2html.division.html
-Renders a complete HTML page for a division element
-$node: The element to create an HTML page for
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-
-REMARK: Put in a word about the chunk flow; talk about what templates get called
--->
-<xsl:template name="db2html.division.html">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:variable name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:variable name="next_node" select="key('idkey', $next_id)"/>
- <!-- FIXME -->
- <html>
- <head>
- <title>
- <xsl:variable name="title">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="normalize-space($title)"/>
- </title>
- <xsl:if test="string($prev_id) != ''">
- <link rel="previous">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$prev_id"/>
- <xsl:with-param name="target" select="$prev_node"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="$prev_node"/>
- </xsl:call-template>
- </xsl:attribute>
- </link>
- </xsl:if>
- <xsl:if test="string($next_id) != ''">
- <link rel="next">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$next_id"/>
- <xsl:with-param name="target" select="$next_node"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="$next_node"/>
- </xsl:call-template>
- </xsl:attribute>
- </link>
- </xsl:if>
- <xsl:if test="/*[1] != $node">
- <link rel="top">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="/*[1]/@id"/>
- <xsl:with-param name="target" select="/*[1]"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="/*[1]"/>
- </xsl:call-template>
- </xsl:attribute>
- </link>
- </xsl:if>
- <xsl:call-template name="db2html.css">
- <xsl:with-param name="css_file" select="$depth_of_chunk = 0"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.division.head.extra"/>
- </head>
- <body>
- <xsl:call-template name="db2html.division.top">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- <xsl:with-param name="template" select="$template"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- </xsl:call-template>
- <xsl:variable name="sidebar">
- <xsl:call-template name="db2html.division.sidebar">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- <xsl:with-param name="template" select="$template"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:copy-of select="$sidebar"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>body</xsl:text>
- <xsl:if test="$sidebar != ''">
- <xsl:text> body-sidebar</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$template = 'info'">
- <xsl:call-template name="db2html.info.div">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$node">
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <xsl:call-template name="db2html.division.bottom">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- <xsl:with-param name="template" select="$template"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- </xsl:call-template>
- </body>
- </html>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.div
-Renders the content of a division element, chunking children if necessary
-$node: The element to render the content of
-$info: The info child element of ${node}
-$title_node: The element containing the title of ${node}
-$subtitle_node: The element containing the subtitle of ${node}
-$title_content: The title for divisions lacking a #{title} tag
-$subtitle_content: The subtitle for divisions lacking a #{subtitle} tag
-$entries: The entry-style child elements
-$divisions: The division-level child elements
-$callback: Whether to process ${node} in %{db2html.division.div.content.mode}
-$depth_in_chunk: The depth of ${node} in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-$chunk_divisions: Whether to create new documents for ${divisions}
-$chunk_info: Whether to create a new document for a title page
-$autotoc_depth: How deep to create contents listings of ${divisions}
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-
-REMARK: Talk about some of the parameters
--->
-<xsl:template name="db2html.division.div">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="title_node"
- select="($node/title | $info/title)[last()]"/>
- <xsl:param name="subtitle_node"
- select="($node/subtitle | $info/subtitle)[last()]"/>
- <xsl:param name="title_content"/>
- <xsl:param name="subtitle_content"/>
- <xsl:param name="entries" select="/false"/>
- <xsl:param name="divisions" select="/false"/>
- <xsl:param name="callback" select="false()"/>
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <!-- FIXME: these two parameters don't make much sense now -->
- <xsl:param name="chunk_divisions"
- select="($depth_in_chunk = 0) and
- ($depth_of_chunk &lt; $db.chunk.max_depth)"/>
- <xsl:param name="chunk_info"
- select="($depth_of_chunk = 0) and
- ($depth_in_chunk = 0 and $info)"/>
- <xsl:param name="autotoc_depth" select="number(boolean($divisions))"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
-
- <div class="division {local-name($node)}">
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.header">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="title_node" select="$title_node"/>
- <xsl:with-param name="subtitle_node" select="$subtitle_node"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="generate_label" select="$depth_in_chunk != 0"/>
- <xsl:with-param name="title_content" select="$title_content"/>
- <xsl:with-param name="subtitle_content" select="$subtitle_content"/>
- </xsl:call-template>
- <xsl:if test="$db2html.linktrail and $depth_in_chunk = 0">
- <xsl:call-template name="db2html.linktrail">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$callback">
- <xsl:apply-templates mode="db2html.division.div.content.mode" select="$node">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="nots" select="$divisions | $entries | $title_node | $subtitle_node"/>
- <xsl:apply-templates select="*[not(set:has-same-node(., $nots))]">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- <xsl:if test="$entries">
- <div class="block">
- <dl class="{local-name($node)}">
- <xsl:apply-templates select="$entries">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </dl>
- </div>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$autotoc_depth != 0">
- <xsl:call-template name="db2html.autotoc">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="title" select="true()"/>
- <xsl:with-param name="divisions" select="$divisions"/>
- <xsl:with-param name="toc_depth" select="$autotoc_depth"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="not($chunk_divisions)">
- <xsl:apply-templates select="$divisions">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </xsl:if>
- <xsl:if test="$depth_in_chunk = 0">
- <xsl:call-template name="db2html.footnote.footer">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:if>
- </div>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.division.div.content.mode
-Renders the block-level content of a division element
-$depth_in_chunk: The depth of the context element in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-
-REMARK: Talk about how this works with #{callback}
--->
-<xsl:template mode="db2html.division.div.content.mode" match="*"/>
-
-
-<!--**==========================================================================
-db2html.header
-Generates a header with a title and optional subtitle
-$node: The element containing the title
-$title_node: The #{title} element to render
-$subtitle_node: The #{subtitle} element to render
-$depth_in_chunk: The depth of ${node} in the containing chunk
-$depth_of_chunk: The depth of the containing chunk in the document
-$generate_label: Whether to generate a label in the title
-$title_content: An optional string containing the title
-$subtitle_content: An optional string containing the subtitle
-
-REMARK: Talk about the different kinds of title blocks
--->
-<xsl:template name="db2html.header">
- <xsl:param name="node" select="."/>
- <xsl:param name="title_node" select="$node/title"/>
- <xsl:param name="subtitle_node" select="$node/subtitle"/>
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="generate_label" select="true()"/>
- <xsl:param name="title_content"/>
- <xsl:param name="subtitle_content"/>
-
- <xsl:variable name="title_h">
- <xsl:choose>
- <xsl:when test="$depth_in_chunk &lt; 7">
- <xsl:value-of select="concat('h', $depth_in_chunk + 1)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>h7</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="subtitle_h">
- <xsl:choose>
- <xsl:when test="$depth_in_chunk &lt; 6">
- <xsl:value-of select="concat('h', $depth_in_chunk + 2)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>h7</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <div class="header">
- <xsl:element name="{$title_h}" namespace="{$db2html.namespace}">
- <xsl:attribute name="class">
- <xsl:value-of select="concat(local-name($node), ' ', local-name($title_node))"/>
- </xsl:attribute>
- <span class="title">
- <xsl:if test="$title_node">
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$title_node"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$generate_label">
- <span class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="'header'"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- </xsl:call-template>
- </span>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$title_content">
- <xsl:value-of select="$title_content"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$title_node/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- </xsl:element>
- <xsl:if test="$subtitle_node or $subtitle_content">
- <xsl:element name="{$subtitle_h}" namespace="{$db2html.namespace}">
- <xsl:attribute name="class">
- <xsl:value-of select="concat(local-name($node), ' ', local-name($subtitle_node))"/>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$subtitle_content">
- <xsl:value-of select="$subtitle_content"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$subtitle_node/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:if>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.linktrail
-Generates links to pages from ancestor elements
-$node: The element to generate links for
-
-REMARK: Describe this
--->
-<xsl:template name="db2html.linktrail">
- <xsl:param name="node"/>
- <xsl:if test="$node/ancestor::*">
- <ul class="linktrail">
- <!-- The parens put the nodes back in document order -->
- <xsl:for-each select="($node/ancestor::*)">
- <li>
- <xsl:attribute name="class">
- <xsl:text>linktrail</xsl:text>
- <xsl:choose>
- <xsl:when test="last() = 1">
- <xsl:text> linktrail-only</xsl:text>
- </xsl:when>
- <xsl:when test="position() = 1">
- <xsl:text> linktrail-first</xsl:text>
- </xsl:when>
- <xsl:when test="position() = last()">
- <xsl:text> linktrail-last</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <a class="linktrail">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="db.titleabbrev">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </a>
- </li>
- </xsl:for-each>
- </ul>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.navbar
-Generates navigation links for a page
-$node: The element to generate links for
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-$position: Where the block is positioned on the pages, either 'top' or 'bottom'
-
-REMARK: Document this template
--->
-<xsl:template name="db2html.navbar">
- <xsl:param name="node"/>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <xsl:param name="position" select="'top'"/>
- <div class="navbar navbar-{$position}">
- <!-- FIXME: rtl -->
- <table class="navbar"><tr>
- <td class="navbar-prev">
- <xsl:if test="$prev_id != ''">
- <a class="navbar-prev">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$prev_id"/>
- <xsl:with-param name="target" select="$prev_node"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$prev_id = $db.chunk.info_basename">
- <xsl:variable name="text">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'About This Document'"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:attribute name="title">
- <xsl:value-of select="$text"/>
- </xsl:attribute>
- <xsl:value-of select="$text"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="$prev_id"/>
- <xsl:with-param name="target" select="$prev_node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="db.titleabbrev">
- <xsl:with-param name="node" select="$prev_node"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </xsl:if>
- </td>
- <td class="navbar-next">
- <xsl:if test="$next_id != ''">
- <a class="navbar-next">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$next_id"/>
- <xsl:with-param name="is_chunk" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="$next_id"/>
- <xsl:with-param name="target" select="$next_node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="db.titleabbrev">
- <xsl:with-param name="node" select="$next_node"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- </td>
- </tr></table>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.sidenav
-Generates a navigation sidebar
-$node: The currently-selected division element
-$template: The named template to call to create the page
-
-REMARK: Document this template
--->
-<xsl:template name="db2html.sidenav">
- <xsl:param name="node" select="."/>
- <xsl:param name="template"/>
- <div class="sidenav">
- <xsl:call-template name="db2html.autotoc">
- <xsl:with-param name="node" select="/"/>
- <xsl:with-param name="show_info" select="$db.chunk.info_chunk"/>
- <xsl:with-param name="is_info" select="$template = 'info'"/>
- <xsl:with-param name="selected" select="$node"/>
- <xsl:with-param name="divisions" select="/*"/>
- <xsl:with-param name="toc_depth" select="$db.chunk.max_depth + 1"/>
- <xsl:with-param name="labels" select="false()"/>
- <xsl:with-param name="titleabbrev" select="true()"/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.head.extra
-FIXME
-:Stub: true
-
-REMARK: Describe this stub template.
--->
-<xsl:template name="db2html.division.head.extra"/>
-
-
-<!--**==========================================================================
-db2html.division.top
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.division.top">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <xsl:if test="$db2html.navbar.top">
- <xsl:call-template name="db2html.navbar">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- <xsl:with-param name="position" select="'top'"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.sidebar
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.division.sidebar">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <xsl:if test="$db2html.sidenav">
- <div class="sidebar">
- <xsl:call-template name="db2html.sidenav">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="template" select="$template"/>
- </xsl:call-template>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.bottom
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.division.bottom">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <xsl:if test="$db2html.navbar.bottom">
- <xsl:call-template name="db2html.navbar">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- <xsl:with-param name="position" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-<!-- == Matched Templates % db.chunk.content.mode == -->
-
-<!--#% db.chunk.content.mode -->
-<xsl:template mode="db.chunk.content.mode" match="*">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = appendix % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="appendix">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="appendixinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = article % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="article">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="articleinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = bibliography % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="bibliography">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="bibliographyinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = book % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="book">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="bookinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = chapter % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="chapter">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="chapterinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = glossary % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="glossary">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="glossaryinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = part % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="part">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="partinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = preface % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="preface">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="prefaceinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = reference % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="reference">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="referenceinfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect1 % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="sect1">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sect1info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect2 % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="sect2">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sect2info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect3 % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="sect3">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sect3info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect4 % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="sect4">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sect4info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect5 % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="sect5">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sect5info"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = section % db.chunk.content.mode = -->
-<xsl:template mode="db.chunk.content.mode" match="section">
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="info" select="sectioninfo"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = appendix = -->
-<xsl:template match="appendix">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot | refentry |
- sect1 | section | simplesect | toc "/>
- <xsl:with-param name="info" select="appendixinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = article = -->
-<xsl:template match="article">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- appendix | bibliography | glossary | index | lot |
- refentry | sect1 | section | simplesect | toc "/>
- <xsl:with-param name="info" select="articleinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = book = -->
-<xsl:template match="book">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- appendix | article | bibliography | chapter |
- colophon | dedication | glossary | index |
- lot | part | preface | reference |
- setindex | toc "/>
- <xsl:with-param name="info" select="bookinfo"/>
- <!-- Unlike other elements in DocBook, title comes before bookinfo -->
- <xsl:with-param name="title_node"
- select="(title | bookinfo/title)[1]"/>
- <xsl:with-param name="subtitle_node"
- select="(subtitle | bookinfo/subtitle)[1]"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="autotoc_depth" select="2"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = chapter = -->
-<xsl:template match="chapter">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot | refentry |
- sect1 | section | simplesect | toc "/>
- <xsl:with-param name="info" select="chapterinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = dedication = -->
-<xsl:template match="dedication">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Dedication'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = glossary = -->
-<xsl:template match="glossary">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title) and not(glossaryinfo/title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="entries" select="glossentry"/>
- <xsl:with-param name="divisions" select="glossdiv | bibliography"/>
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Glossary'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="info" select="glossaryinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="entries" select="glossentry"/>
- <xsl:with-param name="divisions" select="glossdiv | bibliography"/>
- <xsl:with-param name="info" select="glossaryinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = glossdiv = -->
-<xsl:template match="glossdiv">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="entries" select="glossentry"/>
- <xsl:with-param name="divisions" select="bibliography"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = part = -->
-<xsl:template match="part">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- appendix | article | bibliography | chapter |
- glossary | index | lot | preface |
- refentry | reference | toc "/>
- <xsl:with-param name="info" select="partinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = preface = -->
-<xsl:template match="preface">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- refentry | simplesect | sect1 | section | toc |
- lot | index | glossary | bibliography "/>
- <xsl:with-param name="info" select="prefaceinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = reference = -->
-<xsl:template match="reference">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="refentry"/>
- <xsl:with-param name="info" select="referenceinfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect1 = -->
-<xsl:template match="sect1">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | sect2 | simplesect | toc "/>
- <xsl:with-param name="info" select="sect1info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect2 = -->
-<xsl:template match="sect2">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | sect3 | simplesect | toc "/>
- <xsl:with-param name="info" select="sect2info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect3 = -->
-<xsl:template match="sect3">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | sect4 | simplesect | toc "/>
- <xsl:with-param name="info" select="sect3info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect4 = -->
-<xsl:template match="sect4">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | sect5 | simplesect | toc "/>
- <xsl:with-param name="info" select="sect4info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect5 = -->
-<xsl:template match="sect5">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | simplesect | toc "/>
- <xsl:with-param name="info" select="sect5info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = section = -->
-<xsl:template match="section">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="
- bibliography | glossary | index | lot |
- refentry | section | simplesect | toc "/>
- <xsl:with-param name="info" select="sectioninfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = simplesect = -->
-<xsl:template match="simplesect">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-ebnf.xsl b/xslt/docbook/html/db2html-ebnf.xsl
deleted file mode 100644
index 73a1af3..0000000
--- a/xslt/docbook/html/db2html-ebnf.xsl
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - EBNF Elements
-:Requires: db2html-xref
-
-REMARK: Describe this module
--->
-
-<!-- FIXME: rhs/sbr -->
-
-<!-- == Matched Templates == -->
-
-<!-- = constraint = -->
-
-<!-- = constraintdef = -->
-
-<!-- = lhs = -->
-
-<!-- = nonterminal = -->
-
-<!-- = production = -->
-
-<!-- = productionrecap = -->
-
-<!-- = productionset = -->
-<xsl:template match="productionset">
- <div class="productionset">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="title"/>
- <table class="productionset">
- <xsl:apply-templates select="production | productionrecap"/>
- </table>
- </div>
-</xsl:template>
-
-<!-- = productionset/title = -->
-<!-- FIXME
-<xsl:template match="productionset/title">
- <xsl:call-template name="db2html.title.simple"/>
-</xsl:template>
--->
-
-<!-- = rhs = -->
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-footnote.xsl b/xslt/docbook/html/db2html-footnote.xsl
deleted file mode 100644
index d7a069c..0000000
--- a/xslt/docbook/html/db2html-footnote.xsl
+++ /dev/null
@@ -1,220 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Footnotes
-:Requires: db-chunk db-label
-
-FIXME: Describe this module
--->
-
-
-<!--**==========================================================================
-db2html.footnote.ref
-Generates a superscript link to a footnote
-$node: The #{footnote} element to process
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.footnote.ref">
- <xsl:param name="node" select="."/>
- <xsl:variable name="anchor">
- <xsl:text>-noteref-</xsl:text>
- <xsl:choose>
- <xsl:when test="$node/@id">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="generate-id($node)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="href">
- <xsl:text>#</xsl:text>
- <xsl:choose>
- <xsl:when test="$node/@id">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>-note-</xsl:text>
- <xsl:value-of select="generate-id($node)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <a name="{$anchor}"/>
- <sup>
- <a class="footnote" href="{$href}">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </a>
- </sup>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.footnote.note
-Generates a footnote
-$node: The #{footnote} element to process
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.footnote.note">
- <xsl:param name="node" select="."/>
- <xsl:variable name="anchor">
- <xsl:choose>
- <xsl:when test="$node/@id">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>-note-</xsl:text>
- <xsl:value-of select="generate-id($node)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="href">
- <xsl:text>#</xsl:text>
- <xsl:text>-noteref-</xsl:text>
- <xsl:choose>
- <xsl:when test="$node/@id">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="generate-id($node)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="footnote">
- <a name="{$anchor}"/>
- <span class="footnote-number">
- <a class="footnote-ref" href="{$href}">
- <xsl:call-template name="db.number">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </a>
- </span>
- <xsl:apply-templates select="$node/node()"/>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.footnote.footer
-Generates a foot containing all the footnotes in the chunk
-$node: The division element containing footnotes
-$depth_of_chunk: The depth of the containing chunk in the document
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.footnote.footer">
- <xsl:param name="node" select="."/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:variable name="notes" select="$node//footnote" />
- <xsl:if test="count($notes) != 0">
- <xsl:call-template name="db2html.footnote.footer.sibling">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="notes" select="$notes"/>
- <xsl:with-param name="pos" select="1"/>
- <xsl:with-param name="div" select="false()"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<!--#* db2html.footnote.footer.sibling -->
-<xsl:template name="db2html.footnote.footer.sibling">
- <xsl:param name="node"/>
- <xsl:param name="depth_of_chunk"/>
- <xsl:param name="notes"/>
- <xsl:param name="pos"/>
- <xsl:param name="div"/>
- <xsl:variable name="this" select="$notes[$pos]"/>
- <xsl:variable name="depth">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$this"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="($depth = $depth_of_chunk) and not($div)">
- <div class="footnotes">
- <xsl:call-template name="db2html.footnote.note">
- <xsl:with-param name="node" select="$this"/>
- </xsl:call-template>
- <xsl:if test="$pos &lt; count($notes)">
- <xsl:call-template name="db2html.footnote.footer.sibling">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="notes" select="$notes"/>
- <xsl:with-param name="pos" select="$pos + 1"/>
- <xsl:with-param name="div" select="true()"/>
- </xsl:call-template>
- </xsl:if>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$depth = $depth_of_chunk">
- <xsl:call-template name="db2html.footnote.note">
- <xsl:with-param name="node" select="$this"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$pos &lt; count($notes)">
- <xsl:call-template name="db2html.footnote.footer.sibling">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="notes" select="$notes"/>
- <xsl:with-param name="pos" select="$pos + 1"/>
- <xsl:with-param name="div" select="$div"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.footnote.css
-Outputs CSS that controls the appearance of footnotes
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.footnote.css">
-<xsl:text>
-div.footnotes { font-style: italic; font-size: 0.8em; }
-div.footnote { margin-top: 1.44em; }
-span.footnote-number { display: inline; padding-right: 0.83em; }
-span.footnote-number + p { display: inline; }
-a.footnote { text-decoration: none; font-size: 0.8em; }
-a.footnote-ref { text-decoration: none; }
-</xsl:text>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = footnote = -->
-<xsl:template match="footnote">
- <xsl:call-template name="db2html.footnote.ref"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-funcsynopsis.xsl b/xslt/docbook/html/db2html-funcsynopsis.xsl
deleted file mode 100644
index f83afca..0000000
--- a/xslt/docbook/html/db2html-funcsynopsis.xsl
+++ /dev/null
@@ -1,194 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Function Synopses
-:Requires: db2html-block db2html-inline
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-db2html.funcsynopsis.style
-How to render #{funcsynopsis} elements
-
-This parameter controls the indentation style used to render #{funcsynopsis}
-elements. Supported values are #{'KR'} and #{'ANSI'}. This value can also
-be set with the #{db2html.funcsynopsis.style} processing instruction at the
-top of the XML document. The same processing instruction or inside a
-#{funcsynopsis} element will override this setting for that synopsis.
--->
-<xsl:param name="db2html.funcsynopsis.style">
- <xsl:choose>
- <xsl:when test="/processing-instruction('db2html.funcsynopsis.style')">
- <xsl:value-of select="/processing-instruction('db2html.funcsynopsis.style')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'ANSI'"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = funcdef = -->
-<xsl:template match="funcdef">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = funcparams = -->
-<xsl:template match="funcparams">
- <xsl:text>(</xsl:text>
- <xsl:call-template name="db2html.inline"/>
- <xsl:text>)</xsl:text>
-</xsl:template>
-
-<!-- = funcprototype = -->
-<xsl:template match="funcprototype">
- <xsl:variable name="style">
- <xsl:choose>
- <xsl:when test="../processing-instruction('db2html.funcsynopsis.style')">
- <xsl:value-of select="../processing-instruction('db2html.funcsynopsis.style')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$db2html.funcsynopsis.style"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="funcdef/preceding-sibling::modifier">
- <xsl:apply-templates select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:apply-templates select="funcdef"/>
- <xsl:text> (</xsl:text>
- <xsl:choose>
- <xsl:when test="$style = 'KR'">
- <xsl:for-each select="void | varargs | paramdef">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="self::paramdef">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="children" select="parameter"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:for-each select="funcdef/following-sibling::modifier">
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- <xsl:text>;</xsl:text>
- <xsl:for-each select="paramdef">
- <xsl:text>&#x000A; </xsl:text>
- <xsl:apply-templates select="."/>
- <xsl:text>;</xsl:text>
- </xsl:for-each>
- </xsl:when>
- <!-- ANSI is the default -->
- <xsl:otherwise>
- <xsl:variable name="indent">
- <xsl:call-template name="_db2html.funcsynopsis.pad">
- <xsl:with-param name="nodes" select="funcdef | funcdef/preceding-sibling::modifier"/>
- </xsl:call-template>
- <xsl:value-of select="str:padding(count(funcdef/preceding-sibling::modifier) + 2)"/>
- </xsl:variable>
- <xsl:for-each select="void | varargs | paramdef">
- <xsl:if test="position() != 1">
- <xsl:text>,&#x000A;</xsl:text>
- <xsl:value-of select="$indent"/>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- <xsl:for-each select="funcdef/following-sibling::modifier">
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- <xsl:text>;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = funcsynopsis = -->
-<xsl:template match="funcsynopsis">
- <xsl:call-template name="db2html.pre">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="children" select="*"/>
- <xsl:with-param name="class" select="'synopsis'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = funcsynopsisinfo = -->
-<xsl:template match="funcsynopsisinfo">
- <xsl:call-template name="db2html.pre"/>
-</xsl:template>
-
-<!-- = initializer = -->
-<xsl:template match="initializer">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = modifier = -->
-<xsl:template match="modifier">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = paramdef = -->
-<xsl:template match="paramdef">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = varargs = -->
-<xsl:template match="varargs">
- <xsl:text>...</xsl:text>
-</xsl:template>
-
-<!-- = void = -->
-<xsl:template match="void">
- <xsl:text>void</xsl:text>
-</xsl:template>
-
-
-<!-- == Utility Templates == -->
-
-<!--#* _db2html.funcsynopsis.pad -->
-<xsl:template name="_db2html.funcsynopsis.pad">
- <xsl:param name="nodes"/>
- <xsl:value-of select="str:padding(string-length($nodes[1]))"/>
- <xsl:if test="$nodes[position() != 1]">
- <xsl:call-template name="_db2html.funcsynopsis.pad">
- <xsl:with-param name="nodes" select="$nodes[position() != 1]"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-index.xsl b/xslt/docbook/html/db2html-index.xsl
deleted file mode 100644
index 3f52821..0000000
--- a/xslt/docbook/html/db2html-index.xsl
+++ /dev/null
@@ -1,230 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns:set="http://exslt.org/sets"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="msg set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Indexes
-:Requires: db-chunk db2html-division gettext
-
-This module provides templates to process DocBook indexes.
--->
-
-<!-- FIXME:
-indexdiv
-seeie
-seealsoie
-indexterm (autoidx)
--->
-
-<!-- == Matched Templates == -->
-
-<!-- = suppress = -->
-<xsl:template match="primaryie"/>
-<xsl:template match="secondaryie"/>
-<xsl:template match="tertiaryie"/>
-
-<!-- = indexentry = -->
-<xsl:template match="indexentry">
- <dt class="primaryie">
- <xsl:apply-templates select="primaryie/node()"/>
- </dt>
- <xsl:variable name="pri_see"
- select="seeie[not(preceding-sibling::secondaryie)]"/>
- <xsl:variable name="pri_seealso"
- select="seealsoie[not(preceding-sibling::secondaryie)]"/>
- <xsl:if test="$pri_see">
- <dd class="see">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'seeie.format'"/>
- <xsl:with-param name="node" select="$pri_see"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </dd>
- </xsl:if>
- <xsl:if test="$pri_seealso">
- <dd class="seealso">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'seealsoie.format'"/>
- <xsl:with-param name="node" select="$pri_seealso"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </dd>
- </xsl:if>
- <xsl:for-each select="secondaryie">
- <dd class="seconary">
- <dl class="secondary">
- <dt class="secondaryie">
- <xsl:apply-templates/>
- </dt>
- <xsl:variable name="sec_see"
- select="following-sibling::seeie
- [set:has-same-node(preceding-sibling::secondaryie[1], current())]"/>
- <xsl:variable name="sec_seealso"
- select="following-sibling::seealsoie
- [set:has-same-node(preceding-sibling::secondaryie[1], current())]"/>
- <xsl:variable name="tertiary"
- select="following-sibling::tertiaryie
- [set:has-same-node(preceding-sibling::secondaryie[1], current())]"/>
- <xsl:if test="$sec_see">
- <dd class="see">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'seeie.format'"/>
- <xsl:with-param name="node" select="$sec_see"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </dd>
- </xsl:if>
- <xsl:if test="$sec_seealso">
- <dd class="seealso">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'seealsoie.format'"/>
- <xsl:with-param name="node" select="$sec_seealso"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </dd>
- </xsl:if>
- <xsl:if test="$tertiary">
- <!-- FIXME -->
- </xsl:if>
- </dl>
- </dd>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = index = -->
-<xsl:template match="index">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title) and not(indexinfo/title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="indexinfo"/>
- <xsl:with-param name="divisions" select="indexdiv"/>
- <xsl:with-param name="entries" select="indexentry"/>
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="indexinfo"/>
- <xsl:with-param name="divisions" select="indexdiv"/>
- <xsl:with-param name="entries" select="indexentry"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = setindex = -->
-<xsl:template match="setindex">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title) and not(setindexinfo/title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="setindexinfo"/>
- <xsl:with-param name="divisions" select="indexdiv"/>
- <xsl:with-param name="entries" select="indexentry"/>
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Index'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="setindexinfo"/>
- <xsl:with-param name="divisions" select="indexdiv"/>
- <xsl:with-param name="entries" select="indexentry"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--#% l10n.format.mode -->
-<xsl:template mode="l10n.format.mode" match="msg:seeie">
- <xsl:param name="node"/>
- <xsl:for-each select="$node">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:value-of select="."/>
-<!--
- <xsl:choose>
- <xsl:when test="@otherterm">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="@otherterm"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="@otherterm"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="normalize-space(.) != ''">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.xref.content">
- <xsl:with-param name="linkend" select="@otherterm"/>
- <xsl:with-param name="role" select="'glosssee'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
--->
- </xsl:for-each>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-info.xsl b/xslt/docbook/html/db2html-info.xsl
deleted file mode 100644
index 7df74ad..0000000
--- a/xslt/docbook/html/db2html-info.xsl
+++ /dev/null
@@ -1,789 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Title Pages
-:Requires: db-chunk db-common db2html-block db2html-division db2html-inline db2html-xref gettext
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-db2html.info.div
-Renders the contents of the title page of a division element
-$node: The division element to generate a title page for
-$info: The info child element of ${node}
-$depth_of_chunk: The depth of the containing chunk in the document
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.div">
- <xsl:param name="node" select="."/>
- <xsl:param name="info"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <div class="division {local-name($info)}">
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="name" select="local-name($info)"/>
- </xsl:call-template>
- <div class="header">
- <xsl:call-template name="db2html.info.title">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.subtitle">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- </div>
- <xsl:call-template name="db2html.info.authors">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.editors">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.collabs">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.translators">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.publishers">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.othercredits">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2html.info.copyrights">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:apply-templates mode="db2html.info.mode" select="$info/legalnotice"/>
- <xsl:apply-templates mode="db2html.info.mode" select="$info/revhistory"/>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.title
-Outputs the title of a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.title">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:choose>
- <xsl:when test="$info/title">
- <h1 class="title">
- <xsl:apply-templates mode="db2html.info.mode"
- select="$info/title/node()"/>
- </h1>
- </xsl:when>
- <xsl:when test="$node/title">
- <h1 class="title">
- <xsl:apply-templates mode="db2html.info.mode"
- select="$node/title/node()"/>
- </h1>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.subtitle
-Outputs the subtitle of a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.subtitle">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:choose>
- <xsl:when test="$info/subtitle">
- <h2 class="subtitle">
- <xsl:apply-templates mode="db2html.info.mode"
- select="$info/subtitle/node()"/>
- </h2>
- </xsl:when>
- <xsl:when test="$node/subtitle">
- <h2 class="subtitle">
- <xsl:apply-templates mode="db2html.info.mode"
- select="$node/subtitle/node()"/>
- </h2>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.authors
-Creates the author credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.authors">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:variable name="authors" select="
- $info/author | $info/authorgroup/author |
- $info/corpauthor | $info/authorgroup/corpauthor "/>
- <xsl:if test="$authors">
- <div class="division">
- <h2 class="title author">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Author'"/>
- <xsl:with-param name="number" select="count($authors)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$authors"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.editors
-Creates the editor credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.editors">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:variable name="editors" select="
- $info/editor | $info/authorgroup/editor"/>
- <xsl:if test="$editors">
- <div class="division">
- <h2 class="title editor">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Editor'"/>
- <xsl:with-param name="number" select="count($editors)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$editors"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.collabs
-Creates the collaborator credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.collabs">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:variable name="collabs" select="
- $info/collab | $info/authorgroup/collab"/>
- <xsl:if test="$collabs">
- <div class="division">
- <h2 class="title collab">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Collaborator'"/>
- <xsl:with-param name="number" select="count($collabs)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$collabs"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.translators
-Creates the translator credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.translators">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <!-- FIXME: new class attribute on credit -->
- <xsl:variable name="translators" select="
- $info/corpcredit[@role = 'translator'] |
- $info/othercredit[@role = 'translator'] |
- $info/authorgroup/corpcredit[@role = 'translator'] |
- $info/authorgroup/othercredit[@role = 'translator'] "/>
- <xsl:if test="$translators">
- <div class="division">
- <h2 class="title translator">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Translator'"/>
- <xsl:with-param name="number" select="count($translators)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$translators"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.publishers
-Creates the publisher credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.publishers">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:variable name="publishers" select="$info/publisher"/>
- <xsl:if test="$publishers">
- <div class="division">
- <h2 class="title publisher">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Publisher'"/>
- <xsl:with-param name="number" select="count($publishers)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$publishers"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.othercredits
-Creates all other credits in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.othercredits">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <!-- FIXME: new class attribute on credit -->
- <xsl:variable name="othercredits" select="
- $info/conbrib |
- $info/corpcredit[@role != 'translator'] |
- $info/othercredit[@role != 'translator'] |
- $info/authorgroup/corpcredit[@role != 'translator'] |
- $info/authorgroup/othercredit[@role != 'translator'] "/>
- <xsl:if test="$othercredits">
- <div class="division">
- <h2 class="title othercredit">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Other Contributor'"/>
- <xsl:with-param name="number" select="count($othercredits)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$othercredits"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.info.copyrights
-Creates the copyright statements in a title page
-$node: The division element for which a title page is being generated
-$info: The info child element of ${node}
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.info.copyrights">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="'FIXME'"/>
- <xsl:variable name="copyrights" select="$info/copyright"/>
- <xsl:if test="$copyrights">
- <div class="division">
- <h2 class="title copyright">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Copyright'"/>
- <xsl:with-param name="number" select="count($copyrights)"/>
- </xsl:call-template>
- </h2>
- <div class="block block-first">
- <dl class="dl-compact">
- <xsl:apply-templates mode="db2html.info.mode" select="$copyrights"/>
- </dl>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--%%==========================================================================
-db2html.info.mode
-FIXME
-
-REMARK: Describe this mode.
--->
-
-<!-- = affiliation % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="affiliation">
- <dd class="affiliation">
- <!-- FIXME: no style tags -->
- <i>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Affiliation'"/>
- </xsl:call-template>
- <xsl:text>: </xsl:text>
- </i>
- <xsl:apply-templates mode="db2html.info.mode" select="orgname"/>
- <!-- FIXME: orgdiv, jobtitle -->
- </dd>
-</xsl:template>
-
-<!-- = author % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="author">
- <dt class="author">
- <xsl:variable name="node" select="(. | personname)[last()]"/>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </dt>
- <xsl:apply-templates mode="db2html.info.mode"
- select="affiliation[orgname]"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="email | address/email"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="authorblurb | personblurb"/>
-</xsl:template>
-
-<!-- = authorgroup % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="authorgroup">
- <!-- This should never happen. We include it for clarity in the reports. -->
-</xsl:template>
-
-<!-- = authorblurb % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="authorblurb">
- <dd class="authorblurb">
- <xsl:apply-templates/>
- </dd>
-</xsl:template>
-
-<!-- = collab % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="collab">
- <dt class="collab">
- <xsl:apply-templates mode="db2html.info.mode" select="collabname"/>
- </dt>
- <xsl:apply-templates mode="db2html.info.mode"
- select="affiliation[orgname]"/>
-</xsl:template>
-
-<!-- = collabname % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="collabname">
- <span class="collabname">
- <xsl:apply-templates/>
- </span>
-</xsl:template>
-
-<!-- = corpauthor % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="corpauthor">
- <dt class="corpauthor">
- <!-- Can occur outside db2html.info.mode, so apply those templates -->
- <xsl:apply-templates select="."/>
- </dt>
-</xsl:template>
-
-<!-- = corpcredit % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="corpname">
- <dt>
- <xsl:attribute name="class">
- <xsl:choose>
- <!-- FIXME: new class attribute on credit -->
- <xsl:when test="@role = 'translator'">
- <xsl:text>translator</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>othercredit</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <!-- Can occur outside db2html.info.mode, so apply those templates -->
- <xsl:apply-templates select="."/>
- </dt>
-</xsl:template>
-
-<!-- = copyright % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="copyright">
- <dt class="copyright">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Copyright'"/>
- </xsl:call-template>
- <xsl:text>&#x00A0;</xsl:text>
- <xsl:call-template name="db.copyright"/>
- </dt>
-</xsl:template>
-
-<!-- = editor % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="date">
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = editor % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="editor">
- <dt class="editor">
- <xsl:variable name="node" select="(. | personname)[last()]"/>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </dt>
- <xsl:apply-templates mode="db2html.info.mode"
- select="affiliation[orgname]"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="email | address/email"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="authorblurb | personblurb"/>
-</xsl:template>
-
-<!-- = email % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="email">
- <dd class="affiliation">
- <!-- FIXME: no style tags -->
- <i>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Email'"/>
- </xsl:call-template>
- <xsl:text>: </xsl:text>
- </i>
- <!-- Can occur outside db2html.info.mode, so apply those templates -->
- <xsl:apply-templates select="."/>
- </dd>
-</xsl:template>
-
-<!-- = legalnotice % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="legalnotice">
- <div class="division legalnotice">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:if test="not(title)">
- <h2 class="title legalnotice">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Legal Notice'"/>
- </xsl:call-template>
- </h2>
- </xsl:if>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<!-- = orgname % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="orgname">
- <!-- Can occur outside db2html.info.mode, so apply those templates -->
- <xsl:apply-templates select="."/>
-</xsl:template>
-
-<!-- = othercredit % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="othercredit">
- <dt>
- <xsl:attribute name="class">
- <xsl:choose>
- <!-- FIXME: new class attribute on credit -->
- <xsl:when test="@role = 'translator'">
- <xsl:text>translator</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>othercredit</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:variable name="node" select="(. | personname)[last()]"/>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </dt>
- <xsl:apply-templates mode="db2html.info.mode"
- select="affiliation[orgname]"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="email | address/email"/>
- <xsl:apply-templates mode="db2html.info.mode"
- select="authorblurb | personblurb"/>
-</xsl:template>
-
-<!-- = personblurb % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="personblurb">
- <dd class="personblurb">
- <xsl:apply-templates/>
- </dd>
-</xsl:template>
-
-<!-- = publisher % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="publisher">
- <dt class="publisher">
- <xsl:apply-templates mode="db2html.info.mode"/>
- </dt>
-</xsl:template>
-
-<!-- = publishername % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="publishername">
- <span class="publishername">
- <xsl:apply-templates/>
- </span>
-</xsl:template>
-
-<!-- = revdescription % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="revdescription">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-<!-- = revhistory % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="revhistory">
- <div class="division revhistory">
- <xsl:call-template name="db2html.anchor"/>
- <h2 class="title revhistory">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Revision History'"/>
- </xsl:call-template>
- </h2>
- <xsl:apply-templates mode="db2html.info.mode"/>
- </div>
-</xsl:template>
-
-<!-- = revision % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="revision">
- <div class="block revision">
- <xsl:apply-templates mode="db2html.info.mode" select="date"/>
- <xsl:text>: </xsl:text>
- <xsl:apply-templates mode="db2html.info.mode" select="revnumber"/>
- <xsl:if test="revremark">
- <xsl:text>; </xsl:text>
- </xsl:if>
-<!--
- <xsl:apply-templates mode="db2html.info.mode"
- select="revremark | revdescription"/>
--->
- <xsl:if test="author | authorinitials | revdescription/para[@role='author']">
- <xsl:text> (</xsl:text>
- <xsl:for-each
- select="author | authorinitials | revdescription/para[@role='author']">
- <xsl:if test="position() != 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="self::para">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="self::authorinitials">
- <xsl:apply-templates select="."/>
- </xsl:when>
- <xsl:when test="personname">
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="personname"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </div>
-</xsl:template>
-
-<!-- = revnumber % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="revnumber">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = revremark % db2html.info.mode = -->
-<xsl:template mode="db2html.info.mode" match="revremark">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-
-<!--#% db.chunk.info.content.mode ========================================== -->
-<xsl:template mode="db.chunk.info.content.mode" match="*"/>
-
-<!-- = appendix % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="appendix">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="appendixinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = article % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="article">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="articleinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = book % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="book">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="bookinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- <xsl:with-param name="prev_id" select="''"/>
- <xsl:with-param name="next_id" select="@id"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = chapter % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="chapter">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="chapterinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = glossary % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="glossary">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="glossaryinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = part % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="part">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="partinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = preface % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="preface">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="prefaceinfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect1 % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="sect1">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sect1info"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect2 % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="sect2">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sect2info"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect3 % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="sect3">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sect3info"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect4 % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="sect4">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sect4info"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sect5 % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="sect5">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sect5info"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = section % db.chunk.info.content.mode = -->
-<xsl:template mode="db.chunk.info.content.mode" match="section">
- <xsl:call-template name="db2html.division.html">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="info" select="sectioninfo"/>
- <xsl:with-param name="template" select="'info'"/>
- </xsl:call-template>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = legalnotice/title = -->
-<xsl:template match="legalnotice/title">
- <h2 class="title legalnotice"><xsl:apply-templates/></h2>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-inline.xsl b/xslt/docbook/html/db2html-inline.xsl
deleted file mode 100644
index bf53f49..0000000
--- a/xslt/docbook/html/db2html-inline.xsl
+++ /dev/null
@@ -1,1148 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Inline Elements
-:Requires: db-common db2html-xref gettext
-
-REMARK: Describe this module
--->
-<!--#% l10n.format.mode -->
-
-
-<!--**==========================================================================
-db2html.inline
-Renders an inline element as an HTML #{span} element
-$node: The element to render
-$children: The child elements to process
-$class: The value of the #{class} attribute on the #{span} tag
-$bold: Whether to render the element in bold face
-$italic: Whether to render the element in italics
-$underline: Whether to underline the element
-$mono: Whether to render the element in a monospace font
-$sans: Whether to render the element in a sans-serif font
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-$ltr: Whether to default to #{ltr} if neither ${lang} nor ${dir} is specified
-
-REMARK: Document this template
--->
-<xsl:template name="db2html.inline">
- <xsl:param name="node" select="."/>
- <xsl:param name="children" select="false()"/>
- <xsl:param name="class" select="local-name($node)"/>
- <xsl:param name="bold" select="false()"/>
- <xsl:param name="italic" select="false()"/>
- <xsl:param name="underline" select="false()"/>
- <xsl:param name="mono" select="false()"/>
- <xsl:param name="sans" select="false()"/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:param name="ltr" select="false()"/>
-
- <!-- FIXME: do CSS classes, rather than inline styles -->
- <span class="{$class}">
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$ltr">
- <xsl:attribute name="dir">
- <xsl:text>ltr</xsl:text>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$bold or $italic or $mono or $underline or $sans">
- <xsl:variable name="style">
- <xsl:if test="$bold">
- <xsl:text>font-weight: bold; </xsl:text>
- </xsl:if>
- <xsl:if test="$italic">
- <xsl:text>font-style: italic; </xsl:text>
- </xsl:if>
- <xsl:if test="$underline">
- <xsl:text>text-decoration: underline; </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$mono">
- <xsl:text>font-family: monospace; </xsl:text>
- </xsl:when>
- <xsl:when test="$sans">
- <xsl:text>font-family: sans-serif; </xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="style">
- <xsl:value-of select="$style"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <xsl:choose>
- <xsl:when test="$children">
- <xsl:apply-templates select="$children"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="db2html.inline.content.mode" select="$node"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
-</xsl:template>
-
-
-<!--%%===========================================================================
-db2html.inline.content.mode
-FIXME
-
-FIXME
--->
-<xsl:template mode="db2html.inline.content.mode" match="*">
- <xsl:apply-templates/>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = abbrev = -->
-<xsl:template match="abbrev">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = accel = -->
-<xsl:template match="accel">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = acronym = -->
-<xsl:template match="acronym">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = action = -->
-<xsl:template match="action">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = artpagenums = -->
-<xsl:template match="artpagenums">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = application = -->
-<xsl:template match="application">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = authorinitials = -->
-<xsl:template match="authorinitials">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = bibkey-abbrev = -->
-<xsl:key name="bibkey-abbrev"
- match="biblioentry[@id and *[1]/self::abbrev] |
- bibliomixed[@id and *[1]/self::abbrev] "
- use="string(*[1])"/>
-
-<!-- = bibkey-label = -->
-<xsl:key name="bibkey-label"
- match="biblioentry[@id and @xreflabel] |
- bibliomixed[@id and @xreflabel] "
- use="string(@xreflabel)"/>
-
-<!-- = bibkey-id = -->
-<xsl:key name="bibkey-id"
- match="biblioentry[@id] | bibliomixed[@id]"
- use="string(@id)"/>
-
-<!-- = citation = -->
-<xsl:template match="citation">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = citation % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="citation">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'citation.format'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = citation % l10n.format.mode = -->
-<xsl:template mode="l10n.format.mode" match="msg:citation">
- <xsl:param name="node"/>
- <xsl:for-each select="$node[1]">
- <xsl:variable name="entry_abbrev" select="key('bibkey-abbrev', string($node))"/>
- <xsl:choose>
- <xsl:when test="$entry_abbrev">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="$entry_abbrev/@id"/>
- <xsl:with-param name="target" select="$entry_abbrev"/>
- <xsl:with-param name="content">
- <xsl:apply-templates select="node()"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="entry_label" select="key('bibkey-label', string($node))"/>
- <xsl:choose>
- <xsl:when test="$entry_label">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="$entry_label/@id"/>
- <xsl:with-param name="target" select="$entry_label"/>
- <xsl:with-param name="content">
- <xsl:apply-templates select="node()"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="entry_id" select="key('bibkey-id', string($node))"/>
- <xsl:choose>
- <xsl:when test="$entry_id">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="$entry_id/@id"/>
- <xsl:with-param name="target" select="$entry_id"/>
- <xsl:with-param name="content">
- <xsl:apply-templates select="node()"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = citetitle = -->
-<xsl:template match="citetitle">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = citetitle % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="citetitle">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'citetitle.format'"/>
- <xsl:with-param name="role" select="@pubwork"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = city = -->
-<xsl:template match="city">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = classname = -->
-<xsl:template match="classname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = code = -->
-<xsl:template match="code">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = command = -->
-<xsl:template match="command">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = computeroutput = -->
-<xsl:template match="computeroutput">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = constant = -->
-<xsl:template match="constant">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = corpauthor = -->
-<xsl:template match="corpauthor">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = corpcredit = -->
-<xsl:template match="corpcredit">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = country = -->
-<xsl:template match="country">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = database = -->
-<xsl:template match="database">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = date = -->
-<xsl:template match="date">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = edition = -->
-<xsl:template match="edition">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = email = -->
-<xsl:template match="email">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = email % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="email">
- <xsl:text>&lt;</xsl:text>
- <a>
- <xsl:attribute name="href">
- <xsl:text>mailto:</xsl:text>
- <xsl:value-of select="string(.)"/>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'email.tooltip'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="string" select="string(.)"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:apply-templates/>
- </a>
- <xsl:text>&gt;</xsl:text>
-</xsl:template>
-
-<!-- = emphasis = -->
-<xsl:template match="emphasis">
- <xsl:variable name="bold" select="@role = 'bold' or @role = 'strong'"/>
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="class">
- <xsl:text>emphasis</xsl:text>
- <xsl:if test="$bold">
- <xsl:text> emphasis-bold</xsl:text>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = envar = -->
-<xsl:template match="envar">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = errorcode = -->
-<xsl:template match="errorcode">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = errorname = -->
-<xsl:template match="errorname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = errortext = -->
-<xsl:template match="errortext">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = errortype = -->
-<xsl:template match="errortype">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = exceptionname = -->
-<xsl:template match="exceptionname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = fax = -->
-<xsl:template match="fax">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = filename = -->
-<xsl:template match="filename">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = firstname = -->
-<xsl:template match="firstname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = firstterm = -->
-<xsl:template match="firstterm">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = firstterm % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="firstterm">
- <xsl:choose>
- <xsl:when test="@linkend">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="@linkend"/>
- <xsl:with-param name="content">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = foreignphrase = -->
-<xsl:template match="foreignphrase">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = function = -->
-<xsl:template match="function">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = glosskey = -->
-<xsl:key name="glosskey" match="glossentry[@id]" use="string(glossterm)"/>
-
-<!-- = glossterm = -->
-<xsl:template match="glossterm">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = glossterm % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="glossterm">
- <xsl:choose>
- <xsl:when test="@linkend">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="@linkend"/>
- <xsl:with-param name="content">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="not(../self::glossentry)">
- <xsl:variable name="glossentry" select="key('glosskey', string(.))"/>
- <xsl:choose>
- <xsl:when test="$glossentry">
- <xsl:call-template name="db2html.xref">
- <xsl:with-param name="linkend" select="$glossentry/@id"/>
- <xsl:with-param name="target" select="$glossentry"/>
- <xsl:with-param name="content">
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = guibutton = -->
-<xsl:template match="guibutton">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = guiicon = -->
-<xsl:template match="guiicon">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = guilabel = -->
-<xsl:template match="guilabel">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = guimenu = -->
-<xsl:template match="guimenu">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = guimenuitem = -->
-<xsl:template match="guimenuitem">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = guisubmenu = -->
-<xsl:template match="guisubmenu">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = hardware = -->
-<xsl:template match="hardware">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = holder = -->
-<xsl:template match="holder">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = honorific = -->
-<xsl:template match="honorific">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = inlineequation = -->
-<xsl:template match="inlineequation">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = interface = -->
-<xsl:template match="interface">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = interfacename = -->
-<xsl:template match="interfacename">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = isbn = -->
-<xsl:template match="isbn">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = issn = -->
-<xsl:template match="issn">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = issuenum = -->
-<xsl:template match="issuenum">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = jobtitle = -->
-<xsl:template match="jobtitle">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = keycap = -->
-<xsl:template match="keycap">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = keycode = -->
-<xsl:template match="keycode">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = keycombo = -->
-<xsl:template match="keycombo">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = keycombo % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="keycombo">
- <xsl:variable name="joinchar">
- <xsl:choose>
- <xsl:when test="@action = 'seq'"><xsl:text> </xsl:text></xsl:when>
- <xsl:when test="@action = 'simul'">+</xsl:when>
- <xsl:when test="@action = 'press'">-</xsl:when>
- <xsl:when test="@action = 'click'">-</xsl:when>
- <xsl:when test="@action = 'double-click'">-</xsl:when>
- <xsl:when test="@action = 'other'">+</xsl:when>
- <xsl:otherwise>+</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:value-of select="$joinchar"/>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = keysym = -->
-<xsl:template match="keysym">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = lineage = -->
-<xsl:template match="lineage">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = lineannotation = -->
-<xsl:template match="lineannotation">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = literal = -->
-<xsl:template match="literal">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = markup = -->
-<xsl:template match="markup">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = mathphrase = -->
-<xsl:template match="mathphrase">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = medialabel = -->
-<xsl:template match="medialabel">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = menuchoice = -->
-<xsl:template match="menuchoice">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = menuchoice % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="menuchoice">
- <xsl:variable name="arrow">
- <xsl:variable name="ltr">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'default:LTR'"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$ltr = 'default:RTL'">
- <xsl:text>&#x25C2;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#x25B8;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="*[not(self::shortcut)]">
- <xsl:if test="position() != 1">
- <xsl:value-of select="concat('&#x00A0;', $arrow, ' ')"/>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- <xsl:if test="shortcut">
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="shortcut"/>
- </xsl:if>
-</xsl:template>
-
-<!-- = methodname = -->
-<xsl:template match="methodname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = mousebutton = -->
-<xsl:template match="mousebutton">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = option = -->
-<xsl:template match="option">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = optional = -->
-<xsl:template match="optional">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = optional % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="optional">
- <xsl:text>[</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>]</xsl:text>
-</xsl:template>
-
-<!-- = orgdiv = -->
-<xsl:template match="orgdiv">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = orgname = -->
-<xsl:template match="orgname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = othername = -->
-<xsl:template match="othername">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = pagenums = -->
-<xsl:template match="pagenums">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = parameter = -->
-<xsl:template match="parameter">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = personname = -->
-<xsl:template match="personname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = personname % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="personname">
- <xsl:call-template name="db.personname"/>
-</xsl:template>
-
-<!-- = phone = -->
-<xsl:template match="phone">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = phrase = -->
-<xsl:template match="phrase">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = pob = -->
-<xsl:template match="pob">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = postcode = -->
-<xsl:template match="postcode">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = productname = -->
-<xsl:template match="productname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = productname % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="productname">
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="@class = 'copyright'">&#x00A9;</xsl:when>
- <xsl:when test="@class = 'registered'">&#x00AE;</xsl:when>
- <xsl:when test="@class = 'trade'">&#x2122;</xsl:when>
- <xsl:when test="@class = 'service'">&#x2120;</xsl:when>
- </xsl:choose>
-</xsl:template>
-
-<!-- = productnumber = -->
-<xsl:template match="productnumber">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = prompt = -->
-<xsl:template match="prompt">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = property = -->
-<xsl:template match="property">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = pubdate = -->
-<xsl:template match="pubdate">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = publishername = -->
-<xsl:template match="publishername">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = ooclass = -->
-<xsl:template match="ooclass">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = ooclass % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="ooclass">
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = ooexception = -->
-<xsl:template match="ooexception">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = ooexception % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="ooexception">
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = oointerface = -->
-<xsl:template match="oointerface">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = oointerface % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="oointerface">
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = quote = -->
-<xsl:template match="quote">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = quote % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="quote">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'quote.format'"/>
- <xsl:with-param name="role">
- <xsl:choose>
- <xsl:when test="(count(ancestor::quote) mod 2) = 0">
- <xsl:text>outer</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>inner</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = replaceable = -->
-<xsl:template match="replaceable">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = returnvalue = -->
-<xsl:template match="returnvalue">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sgmltag = -->
-<xsl:template match="sgmltag">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="class">
- <xsl:text>sgmltag</xsl:text>
- <xsl:if test="@class">
- <xsl:value-of select="concat(' sgmltag-', @class)"/>
- </xsl:if>
- </xsl:with-param>
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = sgmltag % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="sgmltag">
- <xsl:choose>
- <xsl:when test="@class = 'attribute'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class = 'attvalue'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class = 'element'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class = 'emptytag'">
- <xsl:text>&lt;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>/&gt;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'endtag'">
- <xsl:text>&lt;/</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&gt;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'genentity'">
- <xsl:text>&amp;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'localname'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class = 'namespace'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@class = 'numcharref'">
- <xsl:text>&amp;#</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'paramentity'">
- <xsl:text>%</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'pi'">
- <xsl:text>&lt;?</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&gt;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'prefix'">
- <xsl:apply-templates/>
- <xsl:text>:</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'sgmlcomment'">
- <xsl:text>&lt;!--</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>--&gt;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'starttag'">
- <xsl:text>&lt;</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>&gt;</xsl:text>
- </xsl:when>
- <xsl:when test="@class = 'xmlpi'">
- <xsl:text>&lt;?</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>?&gt;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = shortcut = -->
-<xsl:template match="shortcut">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = shortcut % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="shortcut">
- <xsl:text>(</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>)</xsl:text>
-</xsl:template>
-
-<!-- = state = -->
-<xsl:template match="state">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = street = -->
-<xsl:template match="street">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = structfield = -->
-<xsl:template match="structfield">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = structname = -->
-<xsl:template match="structname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = subscript = -->
-<xsl:template match="subscript">
- <sub class="subscript">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates/>
- </sub>
-</xsl:template>
-
-<!-- = superscript = -->
-<xsl:template match="superscript">
- <sup class="superscript">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates/>
- </sup>
-</xsl:template>
-
-<!-- = surname = -->
-<xsl:template match="surname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = symbol = -->
-<xsl:template match="symbol">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = systemitem = -->
-<xsl:template match="systemitem">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = token = -->
-<xsl:template match="token">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = trademark = -->
-<xsl:template match="trademark">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = trademark % db2html.inline.content.mode = -->
-<xsl:template mode="db2html.inline.content.mode" match="trademark">
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="@class = 'copyright'">&#x00A9;</xsl:when>
- <xsl:when test="@class = 'registered'">&#x00AE;</xsl:when>
- <xsl:when test="@class = 'service'">&#x2120;</xsl:when>
- <xsl:otherwise>&#x2122;</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = type = -->
-<xsl:template match="type">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = uri = -->
-<xsl:template match="uri">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = userinput = -->
-<xsl:template match="userinput">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = varname = -->
-<xsl:template match="varname">
- <xsl:call-template name="db2html.inline">
- <xsl:with-param name="ltr" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = volumenum = -->
-<xsl:template match="volumenum">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = wordasword = -->
-<xsl:template match="wordasword">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = year = -->
-<xsl:template match="year">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-l10n.xsl b/xslt/docbook/html/db2html-l10n.xsl
deleted file mode 100644
index f203505..0000000
--- a/xslt/docbook/html/db2html-l10n.xsl
+++ /dev/null
@@ -1,163 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="msg"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Localization Formatters
-
-REMARK: Document this module
--->
-
-<!--**==========================================================================
-l10n.format.span
-FIXME
-$node: The node in the original document being processed
-$span: The #{msg:span} element in the localized formatter
-$font_family: The font family to render the text in
-$font_style: The font style, generally used for #{italic}
-$font_variant: The font variant, generally used for #{small-caps}
-$font_stretch: The amount to stretch the font
-$font_size: The size of the text
-$text_decoration: The decoration on the text, generally used for #{underline}
-
-REMARK: Talk a lot about this, including a specification of what each of
-the parameters can do.
--->
-<xsl:template name="l10n.format.span">
- <xsl:param name="node"/>
- <xsl:param name="span" select="."/>
- <xsl:param name="font_family" select="string($span/@font-family)"/>
- <xsl:param name="font_style" select="string($span/@font-style)"/>
- <xsl:param name="font_variant" select="string($span/@font-variant)"/>
- <xsl:param name="font_weight" select="string($span/@font-weight)"/>
- <xsl:param name="font_stretch" select="string($span/@font-stretch)"/>
- <xsl:param name="font_size" select="string($span/@font-size)"/>
- <xsl:param name="text_decoration" select="string($span/@text-decoration)"/>
- <span>
- <xsl:attribute name="style">
- <xsl:if test="$font_family != ''">
- <xsl:value-of select="concat('font-family: ', $font_family, '; ')"/>
- </xsl:if>
- <xsl:if test="$font_style != ''">
- <xsl:value-of select="concat('font-style: ', $font_style, '; ')"/>
- </xsl:if>
- <xsl:if test="$font_variant != ''">
- <xsl:value-of select="concat('font-variant: ', $font_variant, '; ')"/>
- </xsl:if>
- <xsl:if test="$font_weight != ''">
- <xsl:value-of select="concat('font-weight: ', $font_weight, '; ')"/>
- </xsl:if>
- <xsl:if test="$font_stretch != ''">
- <xsl:value-of select="concat('font-stretch: ', $font_stretch, '; ')"/>
- </xsl:if>
- <!-- FIXME: make font size able to use our 1.2 scale? -->
- <xsl:if test="$font_size != ''">
- <xsl:value-of select="concat('font-size: ', $font_size, '; ')"/>
- </xsl:if>
- <xsl:if test="$text_decoration != ''">
- <xsl:value-of select="concat('text-decoration: ', $text-decoration, '; ')"/>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="l10n.format.mode">
- <xsl:with-param name="node" select="$node"/>
- </xsl:apply-templates>
- </span>
-</xsl:template>
-
-<!--#% l10n.format.mode ==================================================== -->
-
-<xsl:template mode="l10n.format.mode" match="msg:span">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="span" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:b">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="font_weight" select="'bold'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:big">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="font_size" select="'1.2em'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:i">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="font_style" select="'italic'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:sub">
- <xsl:param name="node"/>
- <sub>
- <xsl:apply-templates mode="l10n.format.mode">
- <xsl:with-param name="node" select="$node"/>
- </xsl:apply-templates>
- </sub>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:sup">
- <xsl:param name="node"/>
- <sup>
- <xsl:apply-templates mode="l10n.format.mode">
- <xsl:with-param name="node" select="$node"/>
- </xsl:apply-templates>
- </sup>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:small">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="font_size" select="'0.83em'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:tt">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="font_family" select="'monospace'"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template mode="l10n.format.mode" match="msg:u">
- <xsl:param name="node"/>
- <xsl:call-template name="l10n.format.span">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="text_decoration" select="'underline'"/>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-list.xsl b/xslt/docbook/html/db2html-list.xsl
deleted file mode 100644
index fdd9eae..0000000
--- a/xslt/docbook/html/db2html-list.xsl
+++ /dev/null
@@ -1,564 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Lists
-:Requires: db-common db2html-inline db2html-xref gettext
-
-REMARK: Describe this module
--->
-
-
-<!-- == Matched Templates == -->
-
-<!-- = variablelist = -->
-<xsl:template match="glosslist">
- <div class="block list glosslist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="title"/>
- <dl class="glosslist">
- <xsl:apply-templates select="glossentry"/>
- </dl>
- </div>
-</xsl:template>
-
-<!-- = itemizedlist = -->
-<xsl:template match="itemizedlist">
- <div class="block list itemizedlist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="*[not(self::listitem)]"/>
- <ul class="itemizedlist">
- <xsl:if test="@mark">
- <xsl:attribute name="style">
- <xsl:text>list-style-type: </xsl:text>
- <xsl:choose>
- <xsl:when test="@mark = 'bullet'">disc</xsl:when>
- <xsl:when test="@mark = 'box'">square</xsl:when>
- <xsl:otherwise><xsl:value-of select="@mark"/></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@spacing = 'compact'">
- <xsl:attribute name="compact">
- <xsl:value-of select="@spacing"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="listitem"/>
- </ul>
- </div>
-</xsl:template>
-
-<!-- = itemizedlist/listitem = -->
-<xsl:template match="itemizedlist/listitem">
- <xsl:variable name="first"
- select="not(preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and not(self::titleabbrev)])"/>
- <li>
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$first">
- <xsl:attribute name="class">
- <xsl:text>li-first</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@override">
- <xsl:attribute name="style">
- <xsl:text>list-style-type: </xsl:text>
- <xsl:choose>
- <xsl:when test="@override = 'bullet'">disc</xsl:when>
- <xsl:when test="@override = 'box'">square</xsl:when>
- <xsl:otherwise><xsl:value-of select="@override"/></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates/>
- </li>
-</xsl:template>
-
-<!-- = member = -->
-<xsl:template match="member">
- <!-- Do something trivial, and rely on simplelist to do the rest -->
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = orderedlist = -->
-<xsl:template match="orderedlist">
- <xsl:variable name="start">
- <xsl:choose>
- <xsl:when test="@continuation = 'continues'">
- <xsl:call-template name="db.orderedlist.start"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- FIXME: auto-numeration for nested lists -->
- <div class="block list orderedlist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="*[not(self::listitem)]"/>
- <ol class="orderedlist">
- <xsl:if test="@numeration">
- <xsl:attribute name="type">
- <xsl:choose>
- <xsl:when test="@numeration = 'arabic'">1</xsl:when>
- <xsl:when test="@numeration = 'loweralpha'">a</xsl:when>
- <xsl:when test="@numeration = 'lowerroman'">i</xsl:when>
- <xsl:when test="@numeration = 'upperalpha'">A</xsl:when>
- <xsl:when test="@numeration = 'upperroman'">I</xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$start != '1'">
- <xsl:attribute name="start">
- <xsl:value-of select="$start"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@spacing = 'compact'">
- <xsl:attribute name="compact">
- <xsl:value-of select="@spacing"/>
- </xsl:attribute>
- </xsl:if>
- <!-- FIXME: @inheritnum -->
- <xsl:apply-templates select="listitem"/>
- </ol>
- </div>
-</xsl:template>
-
-<!-- = orderedlist/listitem = -->
-<xsl:template match="orderedlist/listitem">
- <xsl:variable name="first"
- select="not(preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and not(self::titleabbrev)])"/>
- <li>
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$first">
- <xsl:attribute name="class">
- <xsl:text>li-first</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@override">
- <xsl:attribute name="value">
- <xsl:value-of select="@override"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates/>
- </li>
-</xsl:template>
-
-<!-- = procedure = -->
-<xsl:template match="procedure">
- <div class="block list procedure">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="*[not(self::step)]"/>
- <xsl:choose>
- <xsl:when test="count(step) = 1">
- <ul class="procedure">
- <xsl:apply-templates select="step"/>
- </ul>
- </xsl:when>
- <xsl:otherwise>
- <ol class="procedure">
- <xsl:apply-templates select="step"/>
- </ol>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
-<!-- = seg = -->
-<xsl:template match="seg">
- <xsl:variable name="position" select="count(preceding-sibling::seg) + 1"/>
- <p class="block seg">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$position = 1">
- <xsl:attribute name="class">
- <xsl:text>segfirst</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="../../segtitle[position() = $position]"/>
- <xsl:apply-templates/>
- </p>
-</xsl:template>
-
-<!-- = seglistitem = -->
-<xsl:template match="seglistitem">
- <xsl:param name="position" select="count(preceding-sibling::seglistitem) + 1"/>
- <div class="block seglistitem">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <div>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="($position mod 2) = 1">
- <xsl:value-of select="'odd'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'even'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:apply-templates/>
- </div>
- </div>
-</xsl:template>
-
-<!-- FIXME: Implement tabular segmentedlists -->
-<!-- = segmentedlist = -->
-<xsl:template match="segmentedlist">
- <div class="block list segmentedlist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="title"/>
- <xsl:apply-templates select="seglistitem"/>
- </div>
-</xsl:template>
-
-<!-- = segtitle = -->
-<xsl:template match="segtitle">
- <!-- FIXME: no style tags -->
- <b>
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- <!-- FIXME: i18n -->
- <xsl:text>: </xsl:text>
- </b>
-</xsl:template>
-
-<!-- = simplelist = -->
-<xsl:template match="simplelist">
- <xsl:variable name="columns">
- <xsl:choose>
- <xsl:when test="@columns">
- <xsl:value-of select="@columns"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="@type = 'inline'">
- <span class="simplelist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:for-each select="member">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </span>
- </xsl:when>
- <xsl:when test="@type = 'horiz'">
- <div class="block list simplelist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <table class="simplelist">
- <xsl:for-each select="member[$columns = 1 or position() mod $columns = 1]">
- <tr>
- <td class="td-first">
- <xsl:apply-templates select="."/>
- </td>
- <xsl:for-each select="following-sibling::member[
- position() &lt; $columns]">
- <td>
- <xsl:apply-templates select="."/>
- </td>
- </xsl:for-each>
- <xsl:variable name="fcount" select="count(following-sibling::member)"/>
- <xsl:if test="$fcount &lt; ($columns - 1)">
- <td colspan="{$columns - $fcount - 1}"/>
- </xsl:if>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div class="block list simplelist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:variable name="rows" select="ceiling(count(member) div $columns)"/>
- <table class="simplelist">
- <xsl:for-each select="member[position() &lt;= $rows]">
- <tr>
- <td class="td-first">
- <xsl:apply-templates select="."/>
- </td>
- <xsl:for-each select="following-sibling::member[
- position() mod $rows = 0]">
- <td>
- <xsl:apply-templates select="."/>
- </td>
- </xsl:for-each>
- <xsl:if test="position() = $rows">
- <xsl:variable name="fcount"
- select="count(following-sibling::member[position() mod $rows = 0])"/>
- <xsl:if test="$fcount &lt; ($columns - 1)">
- <td colspan="{$columns - $fcount - 1}"/>
- </xsl:if>
- </xsl:if>
- </tr>
- </xsl:for-each>
- </table>
- </div>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- FIXME: Do something with @performance -->
-<!-- = step = -->
-<xsl:template match="step">
- <xsl:variable name="first"
- select="not(preceding-sibling::*
- [not(self::blockinfo) and not(self::title) and not(self::titleabbrev)])"/>
- <li>
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$first">
- <xsl:attribute name="class">
- <xsl:text>li-first</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </li>
-</xsl:template>
-
-<!-- FIXME: Do something with @performance -->
-<!-- = substeps = -->
-<xsl:template match="substeps">
- <xsl:variable name="depth" select="count(ancestor::substeps)"/>
- <div class="block list substeps">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <ol class="substeps">
- <xsl:attribute name="type">
- <xsl:choose>
- <xsl:when test="$depth mod 3 = 0">a</xsl:when>
- <xsl:when test="$depth mod 3 = 1">i</xsl:when>
- <xsl:when test="$depth mod 3 = 2">1</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <xsl:apply-templates/>
- </ol>
- </div>
-</xsl:template>
-
-<!-- = term = -->
-<xsl:template match="term">
- <dt>
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="../@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="../@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:attribute name="class">
- <xsl:text>term</xsl:text>
- <xsl:if test="not(../preceding-sibling::varlistentry)">
- <xsl:text> dt-first</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:if test="../varlistentry/@id and not(preceding-sibling::term)">
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select=".."/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates/>
- </dt>
-</xsl:template>
-
-<!-- = variablelist = -->
-<xsl:template match="variablelist">
- <div class="block list variablelist">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="*[not(self::varlistentry)]"/>
- <dl class="variablelist">
- <xsl:apply-templates select="varlistentry"/>
- </dl>
- </div>
-</xsl:template>
-
-<!-- = varlistentry = -->
-<xsl:template match="varlistentry">
- <xsl:apply-templates select="term"/>
- <xsl:apply-templates select="listitem"/>
-</xsl:template>
-
-<!-- = varlistentry/listitem = -->
-<xsl:template match="varlistentry/listitem">
- <dd>
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="../@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="../@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates/>
- </dd>
-</xsl:template>
-
-
-<!--
-FIXME: are these still necessary with block-first?
-These templates strip the p tag around single-paragraph list items to avoid
-introducing extra spacing. We don't do this for list items in varlistentry
-elements because it adds a non-negligable amount of processing time for
-non-trivial documents.
--->
-<xsl:template match="itemizedlist/listitem/para[
- not(preceding-sibling::* or following-sibling::*) and
- not(../preceding-sibling::listitem[count(*) != 1]) and
- not(../following-sibling::listitem[count(*) != 1]) ]">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-<xsl:template match="orderedlist/listitem/para[
- not(preceding-sibling::* or following-sibling::*) and
- not(../preceding-sibling::listitem[count(*) != 1]) and
- not(../following-sibling::listitem[count(*) != 1]) ]">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-media.xsl b/xslt/docbook/html/db2html-media.xsl
deleted file mode 100644
index 18d2371..0000000
--- a/xslt/docbook/html/db2html-media.xsl
+++ /dev/null
@@ -1,244 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Images and Media
-:Requires: db2html-block db2html-xref
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-db2html.imagedata
-Renders an #{imagedata} element into an #{img} element
-$node: The element to render
-
-This template creates an #{img} element in the HTML output. This named template
-is called not only for #{imagedata} elements, but also for #{graphic} and
-#{inlinegraphic} elements. Note that #{graphic} and #{inlinegraphic} are
-deprecated and should not be used in any newly-written DocBook files. Use
-#{mediaobject} instead.
-
-REMARK: calls db2html.imagedata.src, how other attrs are gotten
--->
-<xsl:template name="db2html.imagedata">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="$node/@format = 'SVG'">
- <!--
- We don't really ever want to embed external SVGs, because there's
- no guarantee they exist at build time. But Yelp 2.30 launches an
- external viewer when it encounters an <object> tag, so this is
- the only option. When this was added, gnome-doc-utils and Yelp 2
- are in maintenance (and hacks) mode. This works for some Ubuntu
- docs that need SVG.
- -->
- <xsl:choose>
- <xsl:when test="$db2html.namespace = ''">
- <object type="image/svg+xml">
- <xsl:attribute name="data">
- <xsl:call-template name="db2html.imagedata.src">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:copy-of select="@width"/>
- <xsl:copy-of select="@height"/>
- </object>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="svg" select="document($node/@fileref)"/>
- <xsl:copy-of select="$svg"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <img>
- <xsl:attribute name="src">
- <xsl:call-template name="db2html.imagedata.src">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$node/@scale">
- <xsl:attribute name="width">
- <xsl:value-of select="concat($node/@scale, '%')"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$node/@width">
- <xsl:attribute name="width">
- <xsl:value-of select="$node/@width"/>
- </xsl:attribute>
- <xsl:if test="$node/@height">
- <xsl:attribute name="height">
- <xsl:value-of select="$node/@height"/>
- </xsl:attribute>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$node/@align">
- <xsl:attribute name="align">
- <xsl:value-of select="$node/@align"/>
- </xsl:attribute>
- </xsl:if>
-<!-- FIXME
- <xsl:if test="$textobject/phrase">
- <xsl:attribute name="alt">
- <xsl:value-of select="phrase[1]"/>
- </xsl:attribute>
- </xsl:if>
--->
- <!-- FIXME: longdesc -->
- </img>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.imagedata.src
-Outputs the content of the #{src} attribute for an #{img} element
-$node: The element to render
-
-This template is called by *{db2html.imagedata.src} for the content of the
-#{src} attribute of an #{img} element.
--->
-<xsl:template name="db2html.imagedata.src">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="$node/@fileref">
- <!-- FIXME: do this less stupidly, or not at all -->
- <xsl:choose>
- <xsl:when test="$node/@format = 'PNG' and
- (substring($node/@fileref, string-length($node/@fileref) - 3)
- != '.png')">
- <xsl:value-of select="concat($node/@fileref, '.png')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$node/@fileref"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$node/@entityref">
- <xsl:value-of select="unparsed-entity-uri($node/@entityref)"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.mediaobject
-Outputs HTML for a #{mediaobject} element
-$node: The element to render
-
-This template processes a #{mediaobject} element and outputs the appropriate
-HTML. DocBook allows multiple objects to be listed in a #{mediaobject} element.
-Processing tools are expected to choose the earliest suitable object. Currently,
-this template only chooses the first suitable #{imageobject} element. Support
-for #{videobject} and #{audioobject} should be added in future versions, as well
-as a text-only mode.
--->
-<xsl:template name="db2html.mediaobject">
- <xsl:param name="node" select="."/>
- <xsl:choose>
-<!-- FIXME
- <xsl:when test="$text_only">
- <xsl:apply-templates select="textobject[1]"/>
- </xsl:when>
--->
- <xsl:when test="$node/imageobject[imagedata/@format = 'PNG']">
- <xsl:apply-templates
- select="$node/imageobject[imagedata/@format = 'PNG'][1]">
- <xsl:with-param name="textobject" select="$node/textobject[1]"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="$node/imageobjectco[imageobject/imagedata/@format = 'PNG']">
- <xsl:apply-templates
- select="$node/imageobjectco[imageobject/imagedata/@format = 'PNG'][1]">
- <xsl:with-param name="textobject" select="$node/textobject[1]"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="($node/imageobject | $node/imageobjectco)[1]">
- <xsl:with-param name="textobject" select="$node/textobject[1]"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = graphic = -->
-<xsl:template match="graphic">
- <div class="graphic">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.imagedata"/>
- </div>
-</xsl:template>
-
-<!-- = imagedata = -->
-<xsl:template match="imagedata">
- <xsl:call-template name="db2html.imagedata"/>
-</xsl:template>
-
-<!-- = imageobject = -->
-<xsl:template match="imageobject">
- <xsl:apply-templates select="imagedata"/>
-</xsl:template>
-
-<!-- = inlinegraphic = -->
-<xsl:template match="inlinegraphic">
- <span class="inlinegraphic">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.imagedata"/>
- </span>
-</xsl:template>
-
-<!-- = inlinemediaobject = -->
-<xsl:template match="inlinemediaobject">
- <span class="inlinemediaobject">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.mediaobject"/>
- </span>
-</xsl:template>
-
-<!-- = mediaojbect = -->
-<xsl:template match="mediaobject">
- <div class="mediaobject">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:call-template name="db2html.mediaobject"/>
- <!-- When a figure contains only a single mediaobject, it eats the caption -->
- <xsl:if test="not(../self::figure or ../self::informalfigure) or
- ../*[not(self::blockinfo) and not(self::title) and
- not(self::titleabbrev) and not(. = current()) ]">
- <xsl:apply-templates select="caption"/>
- </xsl:if>
- </div>
-</xsl:template>
-
-<!-- = screenshot = -->
-<xsl:template match="screenshot">
- <xsl:call-template name="db2html.block"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-qanda.xsl b/xslt/docbook/html/db2html-qanda.xsl
deleted file mode 100644
index 3122660..0000000
--- a/xslt/docbook/html/db2html-qanda.xsl
+++ /dev/null
@@ -1,156 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Question and Answer Sets
-:Requires: db-chunk db-label db2html-division gettext
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-db2html.qanda.css
-Outputs CSS that controls the appearance of question and answer elements
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.qanda.css">
-<xsl:text>
-dt.question { margin-left: 0em; }
-dt.question div.label { float: left; }
-dd + dt.question { margin-top: 1em; }
-dd.answer {
- margin-top: 1em;
- margin-left: 2em;
- margin-right: 1em;
-}
-dd.answer div.label { float: left; }
-</xsl:text>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = answer = -->
-<xsl:template match="answer">
- <dd class="answer">
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="../@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="../@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <div class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="role" select="'header'"/>
- </xsl:call-template>
- </div>
- <xsl:apply-templates/>
- </dd>
-</xsl:template>
-
-<!-- = qandadiv = -->
-<xsl:template match="qandadiv">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="blockinfo"/>
- <xsl:with-param name="entries" select="qandaentry"/>
- <xsl:with-param name="divisions" select="qandadiv"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- <xsl:with-param name="chunk_info" select="false()"/>
- <xsl:with-param name="autotoc_divisions" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = qandaentry = -->
-<xsl:template match="qandaentry">
- <xsl:apply-templates/>
-</xsl:template>
-
-<!-- = qandaset = -->
-<xsl:template match="qandaset">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="info" select="blockinfo"/>
- <xsl:with-param name="entries" select="qandaentry"/>
- <xsl:with-param name="divisions" select="qandadiv"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- <xsl:with-param name="chunk_info" select="false()"/>
- <xsl:with-param name="autotoc_divisions" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = question = -->
-<xsl:template match="question">
- <!-- FIXME: dt-first -->
- <dt class="question">
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="../@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="../@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <div class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="role" select="'header'"/>
- </xsl:call-template>
- </div>
- <xsl:apply-templates/>
- </dt>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-refentry.xsl b/xslt/docbook/html/db2html-refentry.xsl
deleted file mode 100644
index 109f7c1..0000000
--- a/xslt/docbook/html/db2html-refentry.xsl
+++ /dev/null
@@ -1,228 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:set="http://exslt.org/sets"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="set"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Reference Pages
-:Requires: db-chunk db-title db2html-inline db2html-division db2html-xref gettext
-
-REMARK: Describe this module. Talk about refenty and friends
--->
-
-<!--#% db2html.division.div.content.mode -->
-
-
-<!-- == Matched Templates == -->
-
-<!-- = manvolnum = -->
-<xsl:template match="manvolnum">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'manvolnum.format'"/>
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refentry = -->
-<xsl:template match="refentry">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="title_content">
- <xsl:call-template name="db.title">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="divisions" select="refsynopsisdiv | refsection | refsect1"/>
- <xsl:with-param name="callback" select="true()"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refentry % db2html.division.div.content.mode = -->
-<xsl:template mode="db2html.division.div.content.mode" match="refentry">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <div class="refnamedivs">
- <xsl:apply-templates select="refnamediv">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:apply-templates>
- </div>
-</xsl:template>
-
-<!-- = refdescriptor = -->
-<xsl:template match="refdescriptor">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = refname = -->
-<xsl:template match="refname">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = refnamediv = -->
-<xsl:template match="refnamediv">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <div class="block refnamediv">
- <xsl:call-template name="db2html.anchor"/>
- <xsl:choose>
- <xsl:when test="refdescriptor">
- <xsl:apply-templates select="refdescriptor"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="refname">
- <xsl:if test="position() != 1">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="', '"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="' — '"/>
- </xsl:call-template>
- <xsl:apply-templates select="refpurpose"/>
- </div>
- <!-- FIXME: what to do with refclass? -->
-</xsl:template>
-
-<!-- = refpurpose = -->
-<xsl:template match="refpurpose">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-<!-- = refsect1 = -->
-<xsl:template match="refsect1">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="refsect2"/>
- <xsl:with-param name="info" select="refsect1info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refsect2 = -->
-<xsl:template match="refsect2">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="refsect3"/>
- <xsl:with-param name="info" select="refsect2info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refsect3 = -->
-<xsl:template match="refsect3">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="/false"/>
- <xsl:with-param name="info" select="refsect3info"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refsection = -->
-<xsl:template match="refsection">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="divisions" select="refsection"/>
- <xsl:with-param name="info" select="refsectioninfo"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- <xsl:with-param name="chunk_divisions" select="false()"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = refsynopsisdiv = -->
-<xsl:template match="refsynopsisdiv">
- <xsl:param name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk"/>
- </xsl:param>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="not(title)">
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="title_content">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Synopsis'"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.division.div">
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-suppressed.xsl b/xslt/docbook/html/db2html-suppressed.xsl
deleted file mode 100644
index 3926dd4..0000000
--- a/xslt/docbook/html/db2html-suppressed.xsl
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<!--
-If you add a template to this stylesheet, put it under an appropriate header
-that states why this element is suppressed. Some elements are simply not
-supported, while other elements are expected only to be processed in certain
-modes because of the DocBook content model.
--->
-
-<!-- Not rendered directly -->
-<xsl:template match="titleabbrev"/>
-
-<!-- Not yet supported -->
-<xsl:template match="remark"/>
-
-<!-- Suppressed by processing expectations -->
-<xsl:template match="screeninfo"/>
-
-<!-- Not supported -->
-<xsl:template match="alt"/>
-<xsl:template match="beginpage"/>
-<xsl:template match="bibliocoverage"/>
-<xsl:template match="bridgehead"/>
-
-<!-- Explicitly matched by parent -->
-<xsl:template match="listitem"/>
-<xsl:template match="sbr"/>
-
-<!-- Index elements, not yet supported -->
-<xsl:template match="indexterm"/>
-<xsl:template match="primary"/>
-<xsl:template match="primaryie"/>
-<xsl:template match="secondary"/>
-<xsl:template match="secondaryie"/>
-<xsl:template match="see"/>
-<xsl:template match="seeie"/>
-<xsl:template match="seealso"/>
-<xsl:template match="seealsoie"/>
-<xsl:template match="tertiary"/>
-<xsl:template match="tertiaryie"/>
-
-<!-- Unmatched info elements, supported indirectly -->
-<xsl:template match="appendixinfo"/>
-<xsl:template match="blockinfo"/>
-<xsl:template match="articleinfo"/>
-<xsl:template match="bibliographyinfo"/>
-<xsl:template match="bookinfo"/>
-<xsl:template match="chapterinfo"/>
-<xsl:template match="glossaryinfo"/>
-<xsl:template match="partinfo"/>
-<xsl:template match="prefaceinfo"/>
-<xsl:template match="refentryinfo"/>
-<xsl:template match="referenceinfo"/>
-<xsl:template match="refmeta"/>
-<xsl:template match="refmiscinfo"/>
-<xsl:template match="refsect1divinfo"/>
-<xsl:template match="refsect2divinfo"/>
-<xsl:template match="refsect3divinfo"/>
-<xsl:template match="refsectiondivinfo"/>
-<xsl:template match="refsynopsisdivinfo"/>
-<xsl:template match="sect1info"/>
-<xsl:template match="sect2info"/>
-<xsl:template match="sect3info"/>
-<xsl:template match="sect4info"/>
-<xsl:template match="sect5info"/>
-<xsl:template match="sectioninfo"/>
-
-<!-- Only occur in db2html.info.mode -->
-<xsl:template match="affiliation"/>
-<xsl:template match="author"/>
-<xsl:template match="authorblurb"/>
-<xsl:template match="authorgroup"/>
-<xsl:template match="collab"/>
-<xsl:template match="collabname"/>
-<xsl:template match="copyright"/>
-<xsl:template match="editor"/>
-<xsl:template match="legalnotice"/>
-<xsl:template match="othercredit"/>
-<xsl:template match="personblurb"/>
-<xsl:template match="publisher"/>
-<xsl:template match="revdescription"/>
-<xsl:template match="revhistory"/>
-<xsl:template match="revision"/>
-<xsl:template match="revnumber"/>
-<xsl:template match="revremark"/>
-
-<!-- Handled specially, so we can apply-templates -->
-<xsl:template match="label"/>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-table.xsl b/xslt/docbook/html/db2html-table.xsl
deleted file mode 100644
index 7eb8304..0000000
--- a/xslt/docbook/html/db2html-table.xsl
+++ /dev/null
@@ -1,1131 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Tables
-:Requires: db2html-block db2html-inline db2html-xref gettext
-
-REMARK: This needs lots of talk about CALS
--->
-
-
-<!--**==========================================================================
-db2html.row
-Creates a #{tr} element for a #{row} element
-$row: The #{row} element to process
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$colsep: Whether column separators are currently enabled
-$rowsep: Whether column separators are currently enabled
-$spanstr: The string representation of the row spans
-
-FIXME
--->
-<xsl:template name="db2html.row">
- <xsl:param name="row" select="."/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colsep" select="''"/>
- <xsl:param name="rowsep" select="''"/>
- <xsl:param name="spanstr"/>
- <tr>
- <xsl:if test="$row/../self::tbody and (count($row/preceding-sibling::row) mod 2 = 1)">
- <xsl:attribute name="class">
- <xsl:text>tr-shade</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$row/*[1]">
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$row/*[1]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep">
- <xsl:choose>
- <xsl:when test="$row/@rowsep">
- <xsl:value-of select="$row/@rowsep"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$rowsep"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:if>
- </tr>
- <xsl:variable name="following" select="$row/following-sibling::row[1]"/>
- <xsl:if test="$following">
- <xsl:call-template name="db2html.row">
- <xsl:with-param name="row" select="$following"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="spanstr">
- <xsl:call-template name="db2html.spanstr">
- <xsl:with-param name="row" select="$row"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.entry
-Creates a #{td} element for an #{entry} element
-$entry: The #{entry} element to process
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$colsep: Whether column separators are currently enabled
-$rowsep: Whether column separators are currently enabled
-$colpos: The output column position currently being considered
-$colnum: The actual column number of ${entry}
-$spanstr: The string representation of the row spans
-
-This template processes a single #{entry} element and generates #{td} elements
-as needed. It then calls itself on the following #{entry} element, adjusting
-parameters as necessary. Under certain conditions, this template may not be
-able to output a #{td} element immediately. In these cases, it makes whatever
-adjustments are needed and calls itself or *{db2html.entry.implicit} (which,
-in turn, calls this template again when it's finished).
-
-Three parameters are used to determine whether a #{td} element can be output.
-The ${spanstr} parameter provides infomation about row spans in effect from
-entries in previous rows; the ${colpos} parameter specifies which column we
-would output to if we created a #{td}; and the ${colnum} parameter specifies
-which column this #{entry} should be in, according to any relevant #{colspec}
-or #{spanspec} elemets.
-
-There are two conditions that cause this template not to output a #{td} element
-immediately: if the ${spanstr} parameter does not start with #{0:}, and if the
-${colpos} parameter is less than the ${colnum} parameter.
-
-The ${spanstr} parameter specifies the row spans in effect from entries in
-previous rows. As this template iterates over the #{entry} elements, it strips
-off parts of ${spanstr} so that only the parts relevant to the #{entry} are
-present. If ${spanstr} does not start with #{0:}, then an entry in a previous
-row occupies this column position. In this case, that value is removed from
-${spanstr}, the ${colpos} parameter is incremented, and *{db2html.entry} is
-called again. Additionally, since *{db2html.entry.colnum} doesn't consider
-row spans, the ${colnum} parameter may be incremented as well.
-
-If the ${colpos} parameter is less than the ${colnum} parameter, then the
-document has skipped entries by explicitly referencing a column. This is
-allowed in CALS tables, but not in HTML. To fill the blank spaces, we call
-*{db2html.entry.implicit}, which outputs an empty #{td} element spanning as
-many columns as necessary to fill in the blanks. The *{db2html.entry.implicit}
-template then calls this template again with appropriate parameter values.
-
-When this template is finally able to output a #{td} element, it calculates
-appropriate values for the #{style} and #{class} attribute based on DocBook
-attributes on the #{entry}, the relevant #{colspec} or #{spanspec}, and any
-relevant ancestor elements. It then calls itself on the following #{entry}
-element to output the next #{td}.
--->
-<xsl:template name="db2html.entry">
- <xsl:param name="entry" select="."/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colsep" select="''"/>
- <xsl:param name="rowsep" select="''"/>
- <xsl:param name="colpos" select="1"/>
- <xsl:param name="colnum">
- <xsl:call-template name="db2html.entry.colnum">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colpos" select="$colpos"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="spanstr"/>
- <xsl:variable name="colspan">
- <xsl:choose>
- <xsl:when test="$entry/@spanname or $entry/@namest">
- <xsl:call-template name="db2html.entry.colspan">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <!-- Another entry has a rowspan that covers this column position -->
- <xsl:when test="$spanstr != '' and not(starts-with($spanstr, '0:'))">
- <xsl:choose>
- <xsl:when test="$colnum = $colpos">
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos + 1"/>
- <xsl:with-param name="colnum" select="$colnum + 1"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos + 1"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- We need to insert implicit td elements to cover blank space -->
- <xsl:when test="$colnum &gt; $colpos">
- <xsl:call-template name="db2html.entry.implicit">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="1"/>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:when>
- <!-- We can output the td for this entry -->
- <xsl:otherwise>
- <xsl:if test="$colnum &lt; $colpos">
- <xsl:message>Column positions are not aligned.</xsl:message>
- </xsl:if>
- <xsl:variable name="element">
- <xsl:choose>
- <xsl:when test="$entry/../../self::thead or $entry/../../self::tfoot">th</xsl:when>
- <xsl:otherwise>td</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="rowspan">
- <xsl:choose>
- <xsl:when test="$entry/@morerows">
- <xsl:value-of select="$entry/@morerows + 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="align">
- <xsl:choose>
- <xsl:when test="$entry/@align">
- <xsl:value-of select="$entry/@align"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@colname]/@align">
- <xsl:value-of select="$colspecs[@colname = $entry/@colname]/@align"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@namest]/@align">
- <xsl:value-of select="$colspecs[@colname = $entry/@namest]/@align"/>
- </xsl:when>
- <xsl:when test="$spanspecs[@spanname = $entry/@spanname]/@align">
- <xsl:value-of select="$spanspecs[@spanname = $entry/@spanname]/@align"/>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@align">
- <xsl:value-of select="$colspecs[position() = $colnum]/@align"/>
- </xsl:when>
- <xsl:when test="$entry/../../../@align">
- <xsl:value-of select="$entry/../../../@align"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="valign">
- <xsl:choose>
- <xsl:when test="$entry/@valign">
- <xsl:value-of select="$entry/@valign"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@colname]/@valign">
- <xsl:value-of
- select="$colspecs[@colname = $entry/@colname]/@valign"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@namest]/@valign">
- <xsl:value-of select="$colspecs[@colname = $entry/@namest]/@valign"/>
- </xsl:when>
- <xsl:when test="$spanspecs[@spanname = $entry/@spanname]/@valign">
- <xsl:value-of select="$spanspecs[@spanname = $entry/@spanname]/@valign"/>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@valign">
- <xsl:value-of select="$colspecs[position() = $colnum]/@valign"/>
- </xsl:when>
- <xsl:when test="$entry/../@valign">
- <xsl:value-of select="$entry/../@valign"/>
- </xsl:when>
- <xsl:when test="$entry/../../@valign">
- <xsl:value-of select="$entry/../../@valign"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="char">
- <xsl:choose>
- <xsl:when test="$align != 'char'"/>
- <xsl:when test="$entry/@char">
- <xsl:value-of select="$entry/@char"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@colname]/@char">
- <xsl:value-of select="$colspecs[@colname = $entry/@colname]/@char"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@namest]/@char">
- <xsl:value-of select="$colspecs[@colname = $entry/@namest]/@char"/>
- </xsl:when>
- <xsl:when test="$spanspecs[@spanname = $entry/@spanname]/@char">
- <xsl:value-of select="$spanspecs[@spanname = $entry/@spanname]/@char"/>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@char">
- <xsl:value-of select="$colspecs[position() = $colnum]/@char"/>
- </xsl:when>
- <xsl:when test="$entry/../../../@char">
- <xsl:value-of select="$entry/../../@char"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="charoff">
- <xsl:choose>
- <xsl:when test="$align != 'char'"/>
- <xsl:when test="$entry/@charoff">
- <xsl:value-of select="$entry/@charoff"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@colname]/@charoff">
- <xsl:value-of select="$colspecs[@colname = $entry/@colname]/@charoff"/>
- </xsl:when>
- <xsl:when test="$colspecs[@colname = $entry/@namest]/@charoff">
- <xsl:value-of select="$colspecs[@colname = $entry/@namest]/@charoff"/>
- </xsl:when>
- <xsl:when test="$spanspecs[@spanname = $entry/@spanname]/@charoff">
- <xsl:value-of select="$spanspecs[@spanname = $entry/@spanname]/@charoff"/>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@charoff">
- <xsl:value-of select="$colspecs[position() = $colnum]/@charoff"/>
- </xsl:when>
- <xsl:when test="$entry/../../../@charoff">
- <xsl:value-of select="$entry/../../@charoff"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="style">
- <xsl:if test="$align != ''">
- <xsl:value-of select="concat('text-align: ', $align, ';')"/>
- </xsl:if>
- <xsl:if test="$valign != ''">
- <xsl:value-of select="concat('vertical-align: ', $valign, ';')"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="class">
- <!-- td-colsep: whether to show a column separator -->
- <xsl:choose>
- <!-- FIXME: we need to handle @cols better -->
- <xsl:when test="number($colpos) + number($colspan) &gt; number($entry/ancestor::tgroup[1]/@cols)"/>
- <xsl:when test="$entry/@colsep">
- <xsl:if test="$entry/@colsep = '1'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@spanname and $spanspecs[@spanname = $entry/@spanname]/@colsep">
- <xsl:if test="$spanspecs[@spanname = $entry/@spanname]/@colsep = '1'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@colname and $colspecs[@colname = $entry/@colname]/@colsep">
- <xsl:if test="$colspecs[@colname = $entry/@colname]/@colsep = '1'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@nameend and $colspecs[@colname = $entry/@nameend]/@colsep">
- <xsl:if test="$colspecs[@colname = $entry/@nameend]/@colsep = '1'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@colsep">
- <xsl:if test="$colspecs[position() = $colnum]/@colsep = '1'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$colsep = '0'"/>
- <xsl:otherwise>
- <xsl:text> td-colsep</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <!-- td-rowsep: whether to show a row separator -->
- <xsl:choose>
- <xsl:when test="count($entry/../following-sibling::row) &lt; number($rowspan)"/>
- <xsl:when test="$entry/@rowsep">
- <xsl:if test="$entry/@rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@spanname and $spanspecs[@spanname = $entry/@spanname]/@rowsep">
- <xsl:if test="$spanspecs[@spanname = $entry/@spanname]/@rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@colname and $colspecs[@colname = $entry/@colname]/@rowsep">
- <xsl:if test="$colspecs[@colname = $entry/@colname]/@rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$entry/@nameend and $colspecs[@colname = $entry/@nameend]/@rowsep">
- <xsl:if test="$colspecs[@colname = $entry/@nameend]/@rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$colspecs[position() = $colnum]/@rowsep">
- <xsl:if test="$colspecs[position() = $colnum]/@rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$rowsep = '1'">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <!-- Finally, output the td or th element -->
- <xsl:element name="{$element}" namespace="{$db2html.namespace}">
- <xsl:choose>
- <xsl:when test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="../@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="../@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$style != ''">
- <xsl:attribute name="style">
- <xsl:value-of select="normalize-space($style)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$class != ''">
- <xsl:attribute name="class">
- <xsl:value-of select="normalize-space($class)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="number($rowspan) &gt; 1">
- <xsl:attribute name="rowspan">
- <xsl:value-of select="$rowspan"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$colspan &gt; 1">
- <xsl:attribute name="colspan">
- <xsl:value-of select="$colspan"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$char != ''">
- <xsl:attribute name="char">
- <xsl:value-of select="$char"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$charoff != ''">
- <xsl:attribute name="charoff">
- <xsl:value-of select="$charoff"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="$entry/node()"/>
- </xsl:element>
- <!-- And process the next entry -->
- <xsl:variable name="following" select="$entry/following-sibling::*[1]"/>
- <xsl:if test="$following">
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$following"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos + $colspan"/>
- <xsl:with-param name="spanstr">
- <xsl:call-template name="db2html.spanstr.pop">
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.entry.implicit
-Creates an implicit #{td} element to fill up unoccupied columns
-$entry: The #{entry} element currently being processed
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$colsep: Whether column separators are currently enabled
-$rowsep: Whether column separators are currently enabled
-$colpos: The output column position currently being considered
-$colnum: The actual column number of ${entry}
-$colspan: How many columns the implicit #{td} currently spans
-$spanstr: The string representation of the row spans
-
-CALS tables in DocBook don't need to have #{entry} elements for each column
-in each row, even when the column is not covered by a row-spanning entry from
-a previous row. An #{entry} can explicitly specify which column it's in, and
-any previous unfilled columns are considered blank. Since HTML tables don't
-have this mechanism, we have to insert blank #{td} elements to fill the gaps.
-
-When *{db2html.entry} detects a blank entry, it will call this template with
-the approprite parameters. This template then calls itself recursively, each
-time adjusting the ${colpos}, ${colspan}, and ${spanstr} parameters, until it
-comes across the last column that needs to be filled. It then outputs a #{td}
-element with an appropriate #{colspan} attribute.
-
-Finally, this template calls *{db2html.entry} again on ${entry}. With the
-values of ${colpos} and ${spanstr} suitably adjusted, that template is then
-able to output the #{td} for the #{entry} element.
--->
-<xsl:template name="db2html.entry.implicit">
- <xsl:param name="entry"/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colsep" select="''"/>
- <xsl:param name="rowsep" select="''"/>
- <xsl:param name="colpos" select="1"/>
- <xsl:param name="colnum">
- <xsl:call-template name="db2html.entry.colnum">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colpos" select="$colpos"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="colspan"/>
- <xsl:param name="spanstr"/>
-
- <xsl:variable name="element">
- <xsl:choose>
- <xsl:when test="$entry/../../self::thead or $entry/../../self::tfoot">th</xsl:when>
- <xsl:otherwise>td</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="class">
- <xsl:if test="$colsep != '0'">
- <xsl:text> td-colsep</xsl:text>
- </xsl:if>
- <xsl:if test="$rowsep = '1' and $entry/../following-sibling::row">
- <xsl:text> td-rowsep</xsl:text>
- </xsl:if>
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="$spanstr != '' and not(starts-with($spanstr, '0:'))">
- <xsl:element name="{$element}" namespace="{$db2html.namespace}">
- <xsl:if test="$class != ''">
- <xsl:attribute name="class">
- <xsl:value-of select="normalize-space($class)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:attribute name="colspan">
- <xsl:value-of select="$colspan - 1"/>
- </xsl:attribute>
- <xsl:text>&#160;</xsl:text>
- </xsl:element>
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$colnum - $colpos = 1">
- <xsl:element name="{$element}" namespace="{$db2html.namespace}">
- <xsl:if test="$class != ''">
- <xsl:attribute name="class">
- <xsl:value-of select="normalize-space($class)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:attribute name="colspan">
- <xsl:value-of select="$colspan"/>
- </xsl:attribute>
- <xsl:text>&#160;</xsl:text>
- </xsl:element>
- <xsl:call-template name="db2html.entry">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos + 1"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.entry.implicit">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- <xsl:with-param name="colpos" select="$colpos + 1"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="$colspan + 1"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.entry.colnum
-Calculates the actual column number for an #{entry} element
-$entry: The #{entry} element to process
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$colpos: The column position, as passed by the preceding #{entry}
-
-FIXME
--->
-<xsl:template name="db2html.entry.colnum">
- <xsl:param name="entry" select="."/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colpos" select="0"/>
- <xsl:choose>
- <xsl:when test="$entry/@spanname">
- <xsl:variable name="spanspec"
- select="$spanspecs[@spanname = $entry/@spanname]"/>
- <xsl:variable name="colspec"
- select="$colspecs[@colname = $spanspec/@namest]"/>
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec" select="$colspec"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$entry/@colname">
- <xsl:variable name="colspec"
- select="$colspecs[@colname = $entry/@colname]"/>
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec" select="$colspec"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$entry/@namest">
- <xsl:variable name="colspec"
- select="$colspecs[@colname = $entry/@namest]"/>
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec" select="$colspec"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colpos"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.colspec.colnum
-Calculates the column number for a #{colspec} element
-$colspec: The #{colspec} element to process
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-
-FIXME
--->
-<xsl:template name="db2html.colspec.colnum">
- <xsl:param name="colspec" select="."/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:choose>
- <xsl:when test="$colspec/@colnum">
- <xsl:value-of select="$colspec/@colnum"/>
- </xsl:when>
- <xsl:when test="$colspec/preceding-sibling::colspec">
- <xsl:variable name="prec.colspec.colnum">
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec"
- select="$colspec/preceding-sibling::colspec[1]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="$prec.colspec.colnum + 1"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.entry.colspan
-Calculates the #{colspan} for an #{entry} element
-$entry: The #{entry} element to process
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-
-This template calculates how many columns an #{entry} element should span.
-In CALS tables, column spanning is done by specifying starting and ending
-#{colspec} elements, or by specifying a #{spanspec} element which specifies
-starting and ending #{colspec} elements.
--->
-<xsl:template name="db2html.entry.colspan">
- <xsl:param name="entry" select="."/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:variable name="namest">
- <xsl:choose>
- <xsl:when test="$entry/@spanname">
- <xsl:value-of
- select="$spanspecs[@spanname = $entry/@spanname]/@namest"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$entry/@namest"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="nameend">
- <xsl:choose>
- <xsl:when test="$entry/@spanname">
- <xsl:value-of
- select="$spanspecs[@spanname = $entry/@spanname]/@nameend"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$entry/@nameend"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="colnumst">
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec" select="$colspecs[@colname = $namest]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="colnumend">
- <xsl:call-template name="db2html.colspec.colnum">
- <xsl:with-param name="colspec" select="$colspecs[@colname = $nameend]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$namest = '' or $nameend = ''">1</xsl:when>
- <xsl:when test="$colnumend &gt; $colnumst">
- <xsl:value-of select="$colnumend - $colnumst + 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$colnumst - $colnumend + 1"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-
-
-<!-- FIXME below -->
-
-
-<!--**==========================================================================
-db2html.spanstr
-Generates a string specifying the row spans in effect
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$spanstr: The ${spanstr} parameter used by the previous row
-
-REMARK: This template needs to be explained in detail, but I forgot how it works.
--->
-<xsl:template name="db2html.spanstr">
- <xsl:param name="row" select="."/>
- <xsl:param name="entry" select="$row/*[1]"/>
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="spanstr"/>
- <xsl:param name="colpos" select="1"/>
- <xsl:param name="colnum">
- <xsl:call-template name="db2html.entry.colnum">
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="colspan">
- <xsl:choose>
- <xsl:when test="$entry/@spanname or $entry/@namest">
- <xsl:call-template name="db2html.entry.colspan">
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="entry" select="$entry"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:variable name="following.spanstr">
- <xsl:call-template name="db2html.spanstr.pop">
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- <xsl:with-param name="spanstr" select="$spanstr"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$spanstr != '' and not(starts-with($spanstr, '0:'))">
- <xsl:value-of select="substring-before($spanstr, ':') - 1"/>
- <xsl:text>:</xsl:text>
- <xsl:call-template name="db2html.spanstr">
- <xsl:with-param name="row" select="$row"/>
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- <xsl:with-param name="colpos" select="$colpos + 1"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$colnum &gt; $colpos">
- <xsl:text>0:</xsl:text>
- <xsl:call-template name="db2html.spanstr">
- <xsl:with-param name="row" select="$row"/>
- <xsl:with-param name="entry" select="$entry"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="spanstr" select="$following.spanstr"/>
- <xsl:with-param name="colpos" select="$colpos + $colspan"/>
- <xsl:with-param name="colnum" select="$colnum"/>
- <xsl:with-param name="colspan" select="$colspan"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="copy-string">
- <xsl:with-param name="count" select="$colspan"/>
- <xsl:with-param name="string">
- <xsl:choose>
- <xsl:when test="$entry/@morerows">
- <xsl:value-of select="$entry/@morerows"/>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- <xsl:text>:</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:choose>
- <xsl:when test="$entry/following-sibling::*[1]">
- <xsl:call-template name="db2html.spanstr">
- <xsl:with-param name="row" select="$row"/>
- <xsl:with-param name="entry" select="$entry/following-sibling::*[1]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="spanstr" select="$following.spanstr"/>
- <xsl:with-param name="colpos" select="$colpos + $colspan"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$following.spanstr != ''">
- <xsl:call-template name="db2html.spanstr.decrement">
- <xsl:with-param name="spanstr" select="$following.spanstr"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.spanstr.pop
-Calculates the remaining spans after an #{entry} element
-$colspecs: The #{colspec} elements currently in scope
-$spanspecs: The #{spanspec} elements currently in scope
-$colspan: The number of columns to pop
-$spanstr: The string representation of the column spans
-
-REMARK: This template needs to be explained in detail, but I forgot how it works.
--->
-<xsl:template name="db2html.spanstr.pop">
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colspan" select="1"/>
- <xsl:param name="spanstr" select="''"/>
- <xsl:choose>
- <xsl:when test="$colspan &gt; 0">
- <xsl:call-template name="db2html.spanstr.pop">
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colspan" select="$colspan - 1"/>
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$spanstr"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--#* db2html.spanstr.decrement -->
-<xsl:template name="db2html.spanstr.decrement">
- <xsl:param name="spanstr"/>
- <xsl:if test="$spanstr != ''">
- <xsl:choose>
- <xsl:when test="starts-with($spanstr, '0:')">
- <xsl:text>0:</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="span" select="substring-before($spanstr, ':')"/>
- <xsl:value-of select="$span - 1"/>
- <xsl:text>:</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="db2html.spanstr.decrement">
- <xsl:with-param name="spanstr" select="substring-after($spanstr, ':')"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<!--#* copy-string -->
-<!-- FIXME: replace with str:padding? -->
-<xsl:template name="copy-string">
- <xsl:param name="count" select="1"/>
- <xsl:param name="string"/>
- <xsl:if test="$count &gt; 0">
- <xsl:value-of select="$string"/>
- <xsl:call-template name="copy-string">
- <xsl:with-param name="count" select="$count - 1"/>
- <xsl:with-param name="string" select="$string"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-
-
-
-
-
-<!-- = table = -->
-<xsl:template match="table | informaltable">
- <div class="table block block-indent">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="db2html.anchor"/>
- <xsl:apply-templates select="title"/>
- <!-- FIXME: I have no idea what I'm supposed to do with textobject -->
- <xsl:choose>
- <xsl:when test="graphic | mediaobject">
- <xsl:apply-templates select="graphic | mediaobject"/>
- </xsl:when>
- <xsl:when test="tgroup">
- <xsl:apply-templates select="tgroup"/>
- </xsl:when>
- <xsl:when test="tr">
- <xsl:apply-templates select="col | colgroup | tr"/>
- <xsl:apply-templates select="caption"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="thead"/>
- <xsl:apply-templates select="tbody"/>
- <xsl:apply-templates select="tfoot"/>
- <xsl:apply-templates select="caption"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
-<!-- = tgroup = -->
-<xsl:template match="tgroup">
- <xsl:variable name="colsep">
- <xsl:choose>
- <xsl:when test="@colsep">
- <xsl:value-of select="string(@colsep)"/>
- </xsl:when>
- <xsl:when test="not(.//*[@colsep][1])"/>
- <xsl:otherwise>
- <xsl:text>0</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="rowsep">
- <xsl:choose>
- <xsl:when test="@rowsep">
- <xsl:value-of select="string(@rowsep)"/>
- </xsl:when>
- <xsl:when test="not(//*[@rowsep][1])"/>
- <xsl:otherwise>
- <xsl:text>0</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="style">
- <xsl:if test="../@frame = 'all' or not(../@frame)">
- <xsl:text>border: solid 1px; </xsl:text>
- </xsl:if>
- <xsl:if test="../@frame = 'none'">
- <xsl:text>border: none; </xsl:text>
- </xsl:if>
- <xsl:if test="../@frame = 'bottom' or ../@frame = 'topbot'">
- <xsl:text>border-bottom: solid 1px; </xsl:text>
- </xsl:if>
- <xsl:if test="../@frame = 'top' or ../@frame = 'topbot'">
- <xsl:text>border-top: solid 1px; </xsl:text>
- </xsl:if>
- <xsl:if test="../@frame = 'sides'">
- <xsl:text>border-left: solid 1px; border-right: solid 1px; </xsl:text>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="class">
- <xsl:if test="../@pgwide = '1'">
- <xsl:text>table-pgwide</xsl:text>
- </xsl:if>
- </xsl:variable>
- <table>
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="../title">
- <xsl:attribute name="summary">
- <xsl:value-of select="../title"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$style != ''">
- <xsl:attribute name="style">
- <xsl:value-of select="normalize-space($style)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$class != ''">
- <xsl:attribute name="class">
- <xsl:value-of select="normalize-space($class)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="thead">
- <xsl:with-param name="colspecs" select="colspec"/>
- <xsl:with-param name="spanspecs" select="spanspec"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="tbody">
- <xsl:with-param name="colspecs" select="colspec"/>
- <xsl:with-param name="spanspecs" select="spanspec"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="tfoot">
- <xsl:with-param name="colspecs" select="colspec"/>
- <xsl:with-param name="spanspecs" select="spanspec"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- </xsl:apply-templates>
- </table>
-</xsl:template>
-
-<!-- = tbody | tfoot | thead = -->
-<xsl:template match="tbody | tfoot | thead">
- <xsl:param name="colspecs"/>
- <xsl:param name="spanspecs"/>
- <xsl:param name="colsep" select="''"/>
- <xsl:param name="rowsep" select="''"/>
- <xsl:element name="{local-name(.)}" namespace="{$db2html.namespace}">
- <xsl:if test="@lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="@lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@valign">
- <xsl:attribute name="valign">
- <xsl:value-of select="@valign"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="tr">
- <xsl:apply-templates select="tr"/>
- </xsl:when>
- <xsl:when test="colspec">
- <xsl:call-template name="db2html.row">
- <xsl:with-param name="row" select="row[1]"/>
- <xsl:with-param name="colspecs" select="colspec"/>
- <xsl:with-param name="spanspecs" select="spanspec"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db2html.row">
- <xsl:with-param name="row" select="row[1]"/>
- <xsl:with-param name="colspecs" select="$colspecs"/>
- <xsl:with-param name="spanspecs" select="$spanspecs"/>
- <xsl:with-param name="colsep" select="$colsep"/>
- <xsl:with-param name="rowsep" select="$rowsep"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
-</xsl:template>
-
-<!-- = table/title = -->
-<xsl:template match="table/title">
- <xsl:call-template name="db2html.block.title">
- <xsl:with-param name="node" select=".."/>
- <xsl:with-param name="title" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!--
-This template strips the p tag around single-paragraph table entries to avoid
-introducing extra spacing.
--->
-<xsl:template match="entry/para[
- not(preceding-sibling::* or following-sibling::*)]">
- <xsl:call-template name="db2html.inline"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-title.xsl b/xslt/docbook/html/db2html-title.xsl
deleted file mode 100644
index beaca5c..0000000
--- a/xslt/docbook/html/db2html-title.xsl
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Titles and Subtitles
-:Requires: db-chunk db-label db2html-xref gettext
-
-This stylesheet is going away
--->
-
-
-<!--**==========================================================================
-db2html.title.block
-Generates a labeled block title
-$node: The element to generate a title for
-$referent: The element that ${node} is a title for
-$lang: The locale of the text in ${node}
-$dir: The text direction, either #{ltr} or #{rtl}
-
-REMARK: Talk about the different kinds of title blocks
--->
-<xsl:template name="db2html.title.block">
- <xsl:param name="node" select="."/>
- <xsl:param name="referent" select="$node/.."/>
- <xsl:param name="lang" select="$node/@lang"/>
- <xsl:param name="dir" select="false()"/>
- <xsl:variable name="depth_in_chunk">
- <xsl:call-template name="db.chunk.depth-in-chunk">
- <xsl:with-param name="node" select="$referent"/>
- </xsl:call-template>
- </xsl:variable>
- <div class="block block-first {local-name($node)}">
- <xsl:choose>
- <xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$lang">
- <xsl:attribute name="dir">
- <xsl:call-template name="l10n.direction">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <span class="{local-name($node)}">
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- <span class="label">
- <xsl:call-template name="db.label">
- <xsl:with-param name="node" select="$referent"/>
- <xsl:with-param name="role" select="'header'"/>
- <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
- </xsl:call-template>
- </span>
- <xsl:apply-templates select="$node/node()"/>
- </span>
- </div>
-</xsl:template>
-
-<!--**==========================================================================
-db2html.title.header
-This template is going away
-
-This template is going away
--->
-<xsl:template name="db2html.title.header"/>
-
-
-
-
-<!-- == Matched Templates == -->
-
-<!-- = subtitle = -->
-<!-- Handled in db2html.title.header -->
-<xsl:template match="subtitle"/>
-
-
-<!-- = equation/title = -->
-<xsl:template match="equation/title">
- <xsl:call-template name="db2html.title.block"/>
-</xsl:template>
-
-<!-- = msg/title = -->
-<xsl:template match="msg/title">
- <xsl:call-template name="db2html.title.block"/>
-</xsl:template>
-
-<!-- = msgrel/title = -->
-<xsl:template match="msgrel/title">
- <xsl:call-template name="db2html.title.block"/>
-</xsl:template>
-
-<!-- = msgset/title = -->
-<xsl:template match="msgset/title">
- <xsl:call-template name="db2html.title.block"/>
-</xsl:template>
-
-<!-- = msgsub/title = -->
-<xsl:template match="msgsub/title">
- <xsl:call-template name="db2html.title.block"/>
-</xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-xref.xsl b/xslt/docbook/html/db2html-xref.xsl
deleted file mode 100644
index b7f0a31..0000000
--- a/xslt/docbook/html/db2html-xref.xsl
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-DocBook to HTML - Links and Cross References
-:Requires: db-xref
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-db2html.anchor
-Generates an anchor point for an element
-$node: The element to generate an anchor for
-$name: The text to use for the #{name} attribute
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.anchor" match="anchor">
- <xsl:param name="node" select="."/>
- <xsl:param name="name" select="$node/@id"/>
- <xsl:if test="$name"><a name="{$name}"/></xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.link
-Generates a hyperlink from a #{link} element
-$linkend: The id of the element being linked to
-$target: The element being linked to
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.link" match="link">
- <xsl:param name="linkend" select="@linkend"/>
- <xsl:param name="target" select="key('idkey', $linkend)"/>
- <a class="link">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$linkend"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="$linkend"/>
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="normalize-space(.) != ''">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:when test="@endterm">
- <xsl:apply-templates select="key('idkey', @endterm)/node()"/>
- </xsl:when>
- </xsl:choose>
- </a>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.ulink
-Generates a hyperlink from a #{ulink} element
-$url: The URL to link to
-$content: Optional content to use for the text of the link
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.ulink" match="ulink">
- <xsl:param name="url" select="@url"/>
- <xsl:param name="content" select="false()"/>
- <a class="ulink" href="{$url}">
- <xsl:attribute name="title">
- <xsl:call-template name="db.ulink.tooltip"/>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$content">
- <xsl:copy-of select="$content"/>
- </xsl:when>
- <xsl:when test="string-length(normalize-space(node())) != 0">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$url"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.xref
-Generates a hyperlink from an #{xref} element
-$linkend: The id of the element being linked to
-$target: The element being linked to
-$endterm: The id of an element whose contents will be used for the link text
-$xrefstyle: The style of cross reference text to use
-$content: Optional content to use for the text of the link
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.xref" match="xref">
- <xsl:param name="linkend" select="@linkend"/>
- <xsl:param name="target" select="key('idkey', $linkend)"/>
- <xsl:param name="endterm" select="@endterm"/>
- <xsl:param name="xrefstyle" select="@xrefstyle"/>
- <xsl:param name="content" select="false()"/>
- <a class="xref">
- <xsl:attribute name="href">
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="$linkend"/>
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="db.xref.tooltip">
- <xsl:with-param name="linkend" select="$linkend"/>
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$content">
- <xsl:copy-of select="$content"/>
- </xsl:when>
- <xsl:when test="$endterm">
- <xsl:apply-templates select="key('idkey', $endterm)/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.xref.content">
- <xsl:with-param name="linkend" select="$linkend"/>
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </a>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html.xsl b/xslt/docbook/html/db2html.xsl
deleted file mode 100644
index 6a07ad5..0000000
--- a/xslt/docbook/html/db2html.xsl
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:html="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<xsl:import href="../../gettext/gettext.xsl"/>
-
-<!--#@ db.chunk.doctype_public -->
-<xsl:param name="db.chunk.doctype_public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
-
-<!--#@ db.chunk.doctype_system -->
-<xsl:param name="db.chunk.doctype_system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
-
-<xsl:output method="html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
-<xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default"/>
-
-<!--#@ db2html.namespace -->
-<xsl:param name="db2html.namespace" select="''"/>
-
-<!--!!==========================================================================
-DocBook to HTML
--->
-
-<!--#@ db.chunk.extension -->
-<xsl:param name="db.chunk.extension" select="'.html'"/>
-
-<xsl:include href="../../common/theme.xsl"/>
-
-<xsl:include href="../common/db-chunk.xsl"/>
-<xsl:include href="../common/db-common.xsl"/>
-<xsl:include href="../common/db-label.xsl"/>
-<xsl:include href="../common/db-title.xsl"/>
-<xsl:include href="../common/db-xref.xsl"/>
-
-<xsl:include href="db2html-autotoc.xsl"/>
-<xsl:include href="db2html-bibliography.xsl"/>
-<xsl:include href="db2html-block.xsl"/>
-<xsl:include href="db2html-callout.xsl"/>
-<xsl:include href="db2html-classsynopsis.xsl"/>
-<xsl:include href="db2html-cmdsynopsis.xsl"/>
-<xsl:include href="db2html-css.xsl"/>
-<xsl:include href="db2html-division.xsl"/>
-<xsl:include href="db2html-ebnf.xsl"/>
-<xsl:include href="db2html-funcsynopsis.xsl"/>
-<xsl:include href="db2html-index.xsl"/>
-<xsl:include href="db2html-info.xsl"/>
-<xsl:include href="db2html-inline.xsl"/>
-<xsl:include href="db2html-l10n.xsl"/>
-<xsl:include href="db2html-media.xsl"/>
-<xsl:include href="db2html-list.xsl"/>
-<xsl:include href="db2html-qanda.xsl"/>
-<xsl:include href="db2html-refentry.xsl"/>
-<xsl:include href="db2html-suppressed.xsl"/>
-<xsl:include href="db2html-table.xsl"/>
-<xsl:include href="db2html-title.xsl"/>
-<xsl:include href="db2html-xref.xsl"/>
-<xsl:include href="db2html-footnote.xsl"/>
-
-<xsl:template match="*">
- <xsl:message>
- <xsl:text>Unmatched element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates select="node()"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2xhtml.xsl b/xslt/docbook/html/db2xhtml.xsl
deleted file mode 100644
index d043983..0000000
--- a/xslt/docbook/html/db2xhtml.xsl
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<xsl:import href="../../gettext/gettext.xsl"/>
-
-<!--#@ db.chunk.doctype_public -->
-<xsl:param name="db.chunk.doctype_public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
-
-<!--#@ db.chunk.doctype_system -->
-<xsl:param name="db.chunk.doctype_system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
-
-<xsl:output method="xml"
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
-
-<!--#@ db2html.namespace -->
-<xsl:param name="db2html.namespace" select="'http://www.w3.org/1999/xhtml'"/>
-
-<!--!!==========================================================================
-DocBook to XHTML
--->
-
-<!--#@ db.chunk.extension -->
-<xsl:param name="db.chunk.extension" select="'.xhtml'"/>
-
-<xsl:include href="../../common/theme.xsl"/>
-
-<xsl:include href="../common/db-chunk.xsl"/>
-<xsl:include href="../common/db-common.xsl"/>
-<xsl:include href="../common/db-label.xsl"/>
-<xsl:include href="../common/db-title.xsl"/>
-<xsl:include href="../common/db-xref.xsl"/>
-
-<xsl:include href="db2html-autotoc.xsl"/>
-<xsl:include href="db2html-bibliography.xsl"/>
-<xsl:include href="db2html-block.xsl"/>
-<xsl:include href="db2html-callout.xsl"/>
-<xsl:include href="db2html-classsynopsis.xsl"/>
-<xsl:include href="db2html-cmdsynopsis.xsl"/>
-<xsl:include href="db2html-css.xsl"/>
-<xsl:include href="db2html-division.xsl"/>
-<xsl:include href="db2html-ebnf.xsl"/>
-<xsl:include href="db2html-funcsynopsis.xsl"/>
-<xsl:include href="db2html-index.xsl"/>
-<xsl:include href="db2html-info.xsl"/>
-<xsl:include href="db2html-inline.xsl"/>
-<xsl:include href="db2html-l10n.xsl"/>
-<xsl:include href="db2html-media.xsl"/>
-<xsl:include href="db2html-list.xsl"/>
-<xsl:include href="db2html-qanda.xsl"/>
-<xsl:include href="db2html-refentry.xsl"/>
-<xsl:include href="db2html-suppressed.xsl"/>
-<xsl:include href="db2html-table.xsl"/>
-<xsl:include href="db2html-title.xsl"/>
-<xsl:include href="db2html-xref.xsl"/>
-<xsl:include href="db2html-footnote.xsl"/>
-
-<xsl:template match="*">
- <xsl:message>
- <xsl:text>Unmatched element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates select="node()"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/html/elements b/xslt/docbook/html/elements
deleted file mode 100644
index a1987e8..0000000
--- a/xslt/docbook/html/elements
+++ /dev/null
@@ -1,406 +0,0 @@
-abbrev
-abstract
-accel
-ackno
-acronym
-action
-address
-affiliation
-alt
-anchor
-answer
-appendix
-appendixinfo
-application
-area
-areaset
-areaspec
-arg
-article
-articleinfo
-artpagenums
-attribution
-audiodata
-audioobject
-author
-authorblurb
-authorgroup
-authorinitials
-beginpage
-bibliocoverage
-bibliodiv
-biblioentry
-bibliography
-bibliographyinfo
-biblioid
-bibliolist
-bibliomisc
-bibliomixed
-bibliomset
-bibliorelation
-biblioset
-bibliosource
-blockinfo
-blockquote
-book
-bookinfo
-bridgehead
-callout
-calloutlist
-caption
-caution
-chapter
-chapterinfo
-citation
-citebiblioid
-citerefentry
-citetitle
-city
-classname
-classsynopsis
-classsynopsisinfo
-cmdsynopsis
-co
-code
-col
-colgroup
-collab
-collabname
-colophon
-colspec
-command
-computeroutput
-confdates
-confgroup
-confnum
-confsponsor
-conftitle
-constant
-constraint
-constraintdef
-constructorsynopsis
-contractnum
-contractsponsor
-contrib
-copyright
-coref
-corpauthor
-corpcredit
-corpname
-country
-database
-date
-dedication
-destructorsynopsis
-edition
-editor
-email
-emphasis
-entry
-entrytbl
-envar
-epigraph
-equation
-errorcode
-errorname
-errortext
-errortype
-example
-exceptionname
-fax
-fieldsynopsis
-figure
-filename
-firstname
-firstterm
-footnote
-footnoteref
-foreignphrase
-formalpara
-funcdef
-funcparams
-funcprototype
-funcsynopsis
-funcsynopsisinfo
-function
-glossary
-glossaryinfo
-glossdef
-glossdiv
-glossentry
-glosslist
-glosssee
-glossseealso
-glossterm
-graphic
-graphicco
-group
-guibutton
-guiicon
-guilabel
-guimenu
-guimenuitem
-guisubmenu
-hardware
-highlights
-holder
-honorific
-imagedata
-imageobject
-imageobjectco
-important
-index
-indexdiv
-indexentry
-indexinfo
-indexterm
-informalequation
-informalexample
-informalfigure
-informaltable
-initializer
-inlineequation
-inlinegraphic
-inlinemediaobject
-interface
-interfacename
-invpartnumber
-isbn
-issn
-issuenum
-itemizedlist
-itermset
-jobtitle
-keycap
-keycode
-keycombo
-keysym
-keyword
-keywordset
-label
-legalnotice
-lhs
-lineage
-lineannotation
-link
-listitem
-literal
-literallayout
-lot
-lotentry
-manvolnum
-markup
-medialabel
-mediaobject
-mediaobjectco
-member
-menuchoice
-methodname
-methodparam
-methodsynopsis
-modespec
-modifier
-mousebutton
-msg
-msgaud
-msgentry
-msgexplan
-msginfo
-msglevel
-msgmain
-msgorig
-msgrel
-msgset
-msgsub
-msgtext
-nonterminal
-note
-objectinfo
-olink
-ooclass
-ooexception
-oointerface
-option
-optional
-orderedlist
-orgdiv
-orgname
-otheraddr
-othercredit
-othername
-pagenums
-para
-paramdef
-parameter
-part
-partinfo
-partintro
-personblurb
-personname
-phone
-phrase
-pob
-postcode
-preface
-prefaceinfo
-primary
-primaryie
-printhistory
-procedure
-production
-productionrecap
-productionset
-productname
-productnumber
-programlisting
-programlistingco
-prompt
-property
-pubdate
-publisher
-publishername
-pubsnumber
-qandadiv
-qandaentry
-qandaset
-question
-quote
-refclass
-refdescriptor
-refentry
-refentryinfo
-refentrytitle
-reference
-referenceinfo
-refmeta
-refmiscinfo
-refname
-refnamediv
-refpurpose
-refsect1
-refsect1info
-refsect2
-refsect2info
-refsect3
-refsect3info
-refsection
-refsectioninfo
-refsynopsisdiv
-refsynopsisdivinfo
-releaseinfo
-remark
-replaceable
-returnvalue
-revdescription
-revhistory
-revision
-revnumber
-revremark
-rhs
-row
-sbr
-screen
-screenco
-screeninfo
-screenshot
-secondary
-secondaryie
-sect1
-sect1info
-sect2
-sect2info
-sect3
-sect3info
-sect4
-sect4info
-sect5
-sect5info
-section
-sectioninfo
-see
-seealso
-seealsoie
-seeie
-seg
-seglistitem
-segmentedlist
-segtitle
-seriesvolnums
-set
-setindex
-setindexinfo
-setinfo
-sgmltag
-shortaffil
-shortcut
-sidebar
-sidebarinfo
-simpara
-simplelist
-simplemsgentry
-simplesect
-spanspec
-state
-step
-stepalternatives
-street
-structfield
-structname
-subject
-subjectset
-subjectterm
-subscript
-substeps
-subtitle
-superscript
-surname
-symbol
-synopfragment
-synopfragmentref
-synopsis
-systemitem
-table
-task
-taskprerequisites
-taskrelated
-tasksummary
-tbody
-td
-term
-tertiary
-tertiaryie
-textdata
-textobject
-tfoot
-tgroup
-th
-thead
-tip
-title
-titleabbrev
-toc
-tocback
-tocchap
-tocentry
-tocfront
-toclevel
-tocpart
-token
-tr
-trademark
-type
-ulink
-uri
-userinput
-varargs
-variablelist
-varlistentry
-varname
-videodata
-videoobject
-void
-volumenum
-warning
-wordasword
-xref
-year
diff --git a/xslt/docbook/html/report.sh b/xslt/docbook/html/report.sh
deleted file mode 100755
index 1a704de..0000000
--- a/xslt/docbook/html/report.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-echo "<_report>"
-for element in `cat elements`; do
- echo "<_element name='"$element"'/>"
-done;
-for file in db2html*.xsl; do
- echo "<_file href='"$file"'>";
- xml sel -t \
- -m "//xsl:template[@match and not(@mode)]" \
- -e _template -a match -v "@match" \
- $file;
- xml sel -t \
- -m "//xsl:template[@match and @mode]" \
- -e _template -a match -v "@match" --break -a mode -v "@mode" \
- $file;
- echo "</_file>";
-done;
-echo "</_report>"
diff --git a/xslt/docbook/html/report.xslt b/xslt/docbook/html/report.xslt
deleted file mode 100644
index 99c376b..0000000
--- a/xslt/docbook/html/report.xslt
+++ /dev/null
@@ -1,196 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:template match="/report">
- <html>
- <head>
- <title>Stylesheet Report</title>
- <style type="text/css">
- body { font-family: sans-serif; }
- th { text-align: left; }
- td { vertical-align: top; padding: 0.2em; }
- tr[class="odd"] { background-color: #EEEEEE; }
- span[class="file"] { color: #102070; }
- span[class="mode"] { color: #702010; }
- a { color: #945904; text-decoration: none; }
- a:hover { text-decoration: underline; }
- </style>
- </head>
- <body>
- <p>
- <xsl:variable name="total" select="count(element)"/>
- <xsl:variable name="matched"
- select="count(element[@name =
- /report/file/template[not(@mode)]/@match])"/>
- <xsl:variable name="unmatched" select="$total - $matched"/>
-
- <xsl:value-of select="$unmatched"/>
- <xsl:text> unmatched elements</xsl:text>
- <br/>
- <xsl:value-of select="$matched"/>
- <xsl:text> matched elements</xsl:text>
- <br/>
- <xsl:value-of select="$total"/>
- <xsl:text> total elements</xsl:text>
- <br/>
- <xsl:number value="($matched div $total) * 100"/>
- <xsl:text>% of elements matched</xsl:text>
- </p>
- <table>
- <tr>
- <th>Element</th>
- <th>Simple Matches</th>
- <th>Mode Matches</th>
- </tr>
- <xsl:for-each select="element">
- <tr>
- <xsl:if test="position() mod 2 = 1">
- <xsl:attribute name="class">
- <xsl:text>odd</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <td>
- <span class="element">
- <a href="{concat('http://www.docbook.org/tdg/en/html/',
- @name, '.html')}">
- <xsl:value-of select="@name"/>
- </a>
- </span>
- </td>
- <td>
- <xsl:for-each select="
- /report/file/template[not(@mode)][@match=current()/@name]">
- <xsl:if test="position() != 1">
- <br/>
- </xsl:if>
- <span class="file">
- <xsl:value-of select="../@href"/>
- </span>
- </xsl:for-each>
- </td>
- <td>
- <xsl:for-each select="
- /report/file/template[@mode][@match=current()/@name]">
- <xsl:if test="position() != 1">
- <br/>
- </xsl:if>
- <span class="file">
- <xsl:value-of select="../@href"/>
- </span>
- <xsl:text> in </xsl:text>
- <span class="mode">
- <xsl:value-of select="@mode"/>
- </span>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="/_report">
- <report>
- <xsl:apply-templates/>
- </report>
-</xsl:template>
-
-<xsl:template match="_element">
- <element name="{@name}"/>
-</xsl:template>
-
-<xsl:template match="_file">
- <file href="{@href}">
- <xsl:apply-templates/>
- </file>
-</xsl:template>
-
-<xsl:template match="_template">
- <xsl:call-template name="tokenize.template">
- <xsl:with-param name="string" select="normalize-space(@match)"/>
- <xsl:with-param name="mode" select="@mode"/>
- </xsl:call-template>
-</xsl:template>
-
-<xsl:template name="tokenize.template">
- <xsl:param name="mode" select="false()"/>
- <xsl:param name="depth" select="0"/>
- <xsl:param name="before" select="''"/>
- <xsl:param name="string"/>
- <xsl:variable name="firstchar">
- <xsl:choose>
- <xsl:when test="contains($string, '[') and
- not(contains(substring-before($string, '['), '|')) and
- not(contains(substring-before($string, '['), ']')) ">
- <xsl:text>[</xsl:text>
- </xsl:when>
- <xsl:when test="contains($string, ']') and
- not(contains(substring-before($string, ']'), '|')) and
- not(contains(substring-before($string, ']'), '[')) ">
- <xsl:text>]</xsl:text>
- </xsl:when>
- <xsl:when test="contains($string, '|') and
- not(contains(substring-before($string, '|'), '[')) and
- not(contains(substring-before($string, '|'), ']')) ">
- <xsl:text>|</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text></xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="not(contains($string, '|'))">
- <template match="{normalize-space(concat($before, $string))}">
- <xsl:if test="$mode">
- <xsl:attribute name="mode">
- <xsl:value-of select="$mode"/>
- </xsl:attribute>
- </xsl:if>
- </template>
- </xsl:when>
- <xsl:when test="$firstchar = '['">
- <xsl:call-template name="tokenize.template">
- <xsl:with-param name="mode" select="$mode"/>
- <xsl:with-param name="depth" select="$depth + 1"/>
- <xsl:with-param name="before"
- select="concat($before,
- substring-before($string, '['),
- '[')"/>
- <xsl:with-param name="string" select="substring-after($string, '[')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$depth != 0">
- <xsl:call-template name="tokenize.template">
- <xsl:with-param name="mode" select="$mode"/>
- <xsl:with-param name="depth" select="$depth - 1"/>
- <xsl:with-param name="before"
- select="concat($before,
- substring-before($string, ']'),
- ']')"/>
- <xsl:with-param name="string" select="substring-after($string, ']')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <template match="{normalize-space(
- concat($before, substring-before($string, '|')))}">
- <xsl:if test="$mode">
- <xsl:attribute name="mode">
- <xsl:value-of select="$mode"/>
- </xsl:attribute>
- </xsl:if>
- </template>
- <xsl:call-template name="tokenize.template">
- <xsl:with-param name="mode" select="$mode"/>
- <xsl:with-param name="depth" select="0"/>
- <xsl:with-param name="before" select="''"/>
- <xsl:with-param name="string" select="substring-after($string, '|')"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/omf/Makefile.am b/xslt/docbook/omf/Makefile.am
deleted file mode 100644
index a5620b9..0000000
--- a/xslt/docbook/omf/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/docbook/omf
-
-xsl_DATA = db2omf.xsl
-
-EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/docbook/omf/db2omf.xsl b/xslt/docbook/omf/db2omf.xsl
deleted file mode 100644
index f76512e..0000000
--- a/xslt/docbook/omf/db2omf.xsl
+++ /dev/null
@@ -1,672 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:output method="xml" encoding="utf-8" indent="yes"/>
-
-<xsl:include href="../common/db-common.xsl"/>
-
-<!--!!==========================================================================
-DocBook to ScrollKeeper OMF
-:Requires: db-common
--->
-
-
-<!--@@==========================================================================
-db2omf.basename
-The basename of the referenced document
-
-REMARK: Document what a basename is
--->
-<xsl:param name="db2omf.basename"/>
-
-
-<!--@@==========================================================================
-db2omf.format
-The format of the referenced document
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.format"/>
-
-
-<!--@@==========================================================================
-db2omf.mime
-The MIME type of the referenced document
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.mime" select="'text/xml'"/>
-
-
-<!--@@==========================================================================
-db2omf.dtd
-The FPI of the DocBook version used
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.dtd"/>
-
-
-<!--@@==========================================================================
-db2omf.lang
-The written language of the referenced document
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.lang" select="/*/@lang | /*/@xml:lang"/>
-
-
-<!--@@==========================================================================
-db2omf.omf_dir
-The top-level ScrollKeeper OMF directory
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.omf_dir"/>
-
-
-<!--@@==========================================================================
-db2omf.help_dir
-The top-level directory where documentation is installed
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.help_dir"/>
-
-
-<!--@@==========================================================================
-db2omf.omf_in
-Path to the OMF input file containing common fields
-
-REMARK: Document this
--->
-<xsl:param name="db2omf.omf_in"/>
-<xsl:variable name="omf_in" select="document($db2omf.omf_in)"/>
-
-
-<!--@@==========================================================================
-db2omf.scrollkeeper_cl
-The path to the installed scrollkeeper_cl.xml file
-
-REMARK: Document what this is for
--->
-<xsl:param name="db2omf.scrollkeeper_cl" select="false()"/>
-
-
-<!--**==========================================================================
-db2omf.omf
-Generates the top-level #{omf} and all its children
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf" match="/*">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <omf>
- <resource>
- <xsl:call-template name="db2omf.omf.creator">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.maintainer">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.contributor">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.title">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.date">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.version">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.subject">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.description">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.type">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.format">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.identifier">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.language">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.relation">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- <xsl:call-template name="db2omf.omf.rights">
- <xsl:with-param name="info" select="$info"/>
- </xsl:call-template>
- </resource>
- </omf>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.creator
-Generates all the #{creator} elements for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.creator">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="creators"
- select="$info/author | $info/authorgroup/author |
- $info/corpauthor | $info/authorgroup/corpauthor"/>
- <xsl:if test="not($creators)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF creator element.&#x000A;</xsl:text>
- <xsl:text> Add an author element to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:if>
- <xsl:for-each select="$creators">
- <creator>
- <xsl:if test="email">
- <xsl:value-of select="email"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:text>(</xsl:text>
- <xsl:choose>
- <xsl:when test="self::corpauthor">
- <xsl:value-of select="."/>
- </xsl:when>
- <xsl:when test="personname">
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="personname"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.personname"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>)</xsl:text>
- </creator>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.maintainer
-Generates all the #{maintainer} elements for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.maintainer">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="maintainers"
- select="$info/author[@role='maintainer'] |
- $info/corpauthor[@role='maintainer'] |
- $info/editor[@role='maintainer'] |
- $info/othercredit[@role='maintainer'] |
- $info/publisher[@role='maintainer'] |
- $info/authorgroup/*[@role='maintainer'] "/>
- <xsl:if test="not($maintainers)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF maintainer element.&#x000A;</xsl:text>
- <xsl:text> Add an author, corpauthor, editor, othercredit, or publisher&#x000A;</xsl:text>
- <xsl:text> element with the role attribute set to "maintainer" to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:if>
- <xsl:for-each select="$maintainers">
- <maintainer>
- <xsl:choose>
- <xsl:when test="email">
- <xsl:value-of select="email"/>
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:when test="address/email">
- <xsl:value-of select="addressemail"/>
- <xsl:text> </xsl:text>
- </xsl:when>
- </xsl:choose>
- <xsl:text>(</xsl:text>
- <xsl:choose>
- <xsl:when test="self::publisher">
- <xsl:value-of select="publishername"/>
- </xsl:when>
- <xsl:when test="self::corpauthor">
- <xsl:value-of select="."/>
- </xsl:when>
- <xsl:when test="personname">
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="personname"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.personname"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>)</xsl:text>
- </maintainer>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.contributor
-Generates all the #{contributor} elements for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.contributor">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="contributors"
- select="$info/editor | $info/authorgroup/editor |
- $info/othercredit | $info/authorgroup/othercredit "/>
- <xsl:for-each select="$contributors">
- <contributor>
- <xsl:if test="email">
- <xsl:value-of select="email"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:text>(</xsl:text>
- <xsl:choose>
- <xsl:when test="self::corpauthor">
- <xsl:value-of select="."/>
- </xsl:when>
- <xsl:when test="personname">
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="personname"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.personname"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>)</xsl:text>
- </contributor>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.title
-Generates the #{title} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.title">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="title" select="($info/title | title)[1]"/>
- <xsl:if test="not($title)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF title element.&#x000A;</xsl:text>
- <xsl:text> Add a title element to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:if>
- <title>
- <xsl:value-of select="$title"/>
- </title>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.date
-Generates the #{date} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.date">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="revision"
- select="$info/revhistory/revision[revnumber and date]"/>
- <xsl:choose>
- <xsl:when test="$revision">
- <date>
- <xsl:value-of select="$revision[last()]/date"/>
- </date>
- </xsl:when>
- <xsl:when test="$info/pubdate">
- <date>
- <xsl:value-of select="$info/pubdate[1]"/>
- </date>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF date element.&#x000A;</xsl:text>
- <xsl:text> Add either a revision element with revnumber and date,&#x000A;</xsl:text>
- <xsl:text> or a pubdate element to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.version
-Generates the #{version} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this, add the @description attr of version
--->
-<xsl:template name="db2omf.omf.version">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="revision"
- select="$info/revhistory/revision[revnumber and date]"/>
- <xsl:choose>
- <xsl:when test="$revision">
- <xsl:variable name="revnumber" select="$revision[last()]/revnumber"/>
- <xsl:variable name="date" select="$revision[last()]/date"/>
- <version>
- <xsl:attribute name="identifier">
- <xsl:value-of select="$revnumber"/>
- </xsl:attribute>
- <xsl:attribute name="date">
- <xsl:value-of select="$date"/>
- </xsl:attribute>
- </version>
- </xsl:when>
- <xsl:when test="$info/edition and $info/pubdate">
- <version>
- <xsl:attribute name="identifier">
- <xsl:value-of select="$info/edition[1]"/>
- </xsl:attribute>
- <xsl:attribute name="date">
- <xsl:value-of select="$info/pubdate[1]"/>
- </xsl:attribute>
- </version>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF version element.&#x000A;</xsl:text>
- <xsl:text> Add either a revision element with revnumber and date,&#x000A;</xsl:text>
- <xsl:text> or date and edition elements to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.subject
-Generates the #{subject} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.subject">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="subject" select="$omf_in/omf/resource/subject"/>
- <xsl:if test="not($subject)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF subject element.&#x000A;</xsl:text>
- <xsl:text> Add a subject element to </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- <xsl:if test="$db2omf.scrollkeeper_cl">
- <xsl:variable name="sk_cl" select="document($db2omf.scrollkeeper_cl)"/>
- <xsl:for-each select="$subject">
- <xsl:variable name="code" select="translate(@category, '|', '')"/>
- <xsl:if test="not($sk_cl//sect[@categorycode = $code])">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Invalid subject code "</xsl:text>
- <xsl:value-of select="@category"/>
- <xsl:text>" in </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- <xsl:copy-of select="$subject"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.description
-Generates the #{description} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.description">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="description" select="$info/abstract[@role = 'description']"/>
- <xsl:if test="not($description)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF description element.&#x000A;</xsl:text>
- <xsl:text> Add an abstract with the role attribute set to "description"&#x000A;</xsl:text>
- <xsl:text> to </xsl:text>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>.xml.</xsl:text>
- </xsl:message>
- </xsl:if>
- <description>
- <!-- FIXME: a smarter textification would be good -->
- <xsl:value-of select="$description"/>
- </description>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.type
-Generates the #{type} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.type">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="type" select="$omf_in/omf/resource/type"/>
- <xsl:if test="not($type)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF type element.&#x000A;</xsl:text>
- <xsl:text> Add a type element to </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- <type>
- <xsl:value-of select="$type"/>
- </type>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.format
-Generates the #{format} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.format">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <format>
- <xsl:attribute name="mime">
- <xsl:value-of select="$db2omf.mime"/>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$db2omf.mime = 'text/xml'">
- <xsl:attribute name="dtd">
- <xsl:value-of select="$db2omf.dtd"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:when test="$db2omf.mime = 'text/html'"/>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Unknown value of db2omf.mime: "</xsl:text>
- <xsl:value-of select="$db2omf.mime"/>
- <xsl:text>".</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </format>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.identifier
-Generates the #{identifier} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.identifier">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <identifier>
- <xsl:attribute name="url">
- <xsl:text>file://</xsl:text>
- <xsl:value-of select="$db2omf.help_dir"/>
- <xsl:if test="not(substring($db2omf.help_dir,
- string-length($db2omf.help_dir)) = '/')">
- <xsl:text>/</xsl:text>
- </xsl:if>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:text>/</xsl:text>
- <xsl:value-of select="$db2omf.lang"/>
- <xsl:if test="not(substring($db2omf.lang,
- string-length($db2omf.lang)) = '/')">
- <xsl:text>/</xsl:text>
- </xsl:if>
- <xsl:value-of select="$db2omf.basename"/>
- <xsl:choose>
- <xsl:when test="$db2omf.format = 'docbook'">
- <xsl:text>.xml</xsl:text>
- </xsl:when>
- <xsl:when test="$db2omf.format = 'html'">
- <xsl:text>.html</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Unknown value of db2omf.format: "</xsl:text>
- <xsl:value-of select="$db2omf.format"/>
- <xsl:text>".</xsl:text>
- </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </identifier>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.language
-Generates the #{language} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.language">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <language code="{$db2omf.lang}"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.relation
-Generates the #{relation} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.relation">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="relation" select="$omf_in/omf/resource/relation"/>
- <xsl:if test="not($relation)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF relation element.&#x000A;</xsl:text>
- <xsl:text> Add a relation element to </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- <xsl:copy-of select="$relation"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2omf.omf.rights
-Generates the #{rights} element for an OMF file
-$info: The info element containing metadata
-
-REMARK: Document this
--->
-<xsl:template name="db2omf.omf.rights">
- <xsl:param name="info"
- select="*[substring(local-name(.), string-length(local-name(.)) - 3)
- = 'info']"/>
- <xsl:variable name="rights" select="$omf_in/omf/resource/rights"/>
- <xsl:if test="not($rights)">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Could not construct the OMF rights element.&#x000A;</xsl:text>
- <xsl:text> Add a rights element to </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- <xsl:copy-of select="$rights"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/utils/Makefile.am b/xslt/docbook/utils/Makefile.am
deleted file mode 100644
index 0f5acb1..0000000
--- a/xslt/docbook/utils/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/docbook/utils
-
-xsl_DATA = chunks.xsl credits.xsl figures.xsl graphics.xsl ids.xsl
-
-EXTRA_DIST=$(xsl_DATA)
-
diff --git a/xslt/docbook/utils/chunks.xsl b/xslt/docbook/utils/chunks.xsl
deleted file mode 100644
index a893744..0000000
--- a/xslt/docbook/utils/chunks.xsl
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:output method="text" encoding="utf-8"/>
-
-<xsl:include href="../common/db-chunk.xsl"/>
-<xsl:include href="../common/db-xref.xsl"/>
-
-<xsl:template match="/">
- <xsl:apply-templates>
- <xsl:with-param name="depth_of_chunk" select="0"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template match="
- appendix | article | bibliography | book |
- chatper | colophon | dedication | glossary |
- glossdiv | index | lot | part |
- preface | refentry | reference | sect1 |
- sect2 | sect3 | sect4 | sect5 |
- section | setindex | simplesect | toc ">
- <xsl:param name="depth_of_chunk" select="0"/>
- <xsl:call-template name="db.xref.target">
- <xsl:with-param name="linkend" select="@id"/>
- <xsl:with-param name="target" select="."/>
- </xsl:call-template>
- <xsl:text>&#x000A;</xsl:text>
-
- <xsl:if test="$depth_of_chunk &lt; $db.chunk.max_depth">
- <xsl:apply-templates>
- <xsl:with-param name="depth_of_chunk"
- select="$depth_of_chunk + 1"/>
- </xsl:apply-templates>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="node()"/>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/utils/credits.xsl b/xslt/docbook/utils/credits.xsl
deleted file mode 100644
index fb44aa6..0000000
--- a/xslt/docbook/utils/credits.xsl
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:output method="text" encoding="utf-8"/>
-
-<xsl:include href="../common/db-common.xsl"/>
-
-<xsl:template match="/">
- <xsl:for-each select="/*/*//author">
- <xsl:choose>
- <xsl:when test="personnname">
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="personname"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.personname">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="email">
- <xsl:text> &lt;</xsl:text>
- <xsl:value-of select="email"/>
- <xsl:text>&gt;</xsl:text>
- </xsl:if>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/utils/figures.xsl b/xslt/docbook/utils/figures.xsl
deleted file mode 100644
index 69aeba1..0000000
--- a/xslt/docbook/utils/figures.xsl
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:output method="text" encoding="utf-8"/>
-
-<xsl:include href="../html/db2html-media.xsl"/>
-
-<xsl:template match="/">
- <xsl:for-each select="//mediaobject">
- <xsl:call-template name="db2html.mediaobject">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </xsl:for-each>
-</xsl:template>
-
-<xsl:template match="imageobjectco">
- <xsl:apply-templates select="imageobject"/>
-</xsl:template>
-
-<xsl:template match="imageobject">
- <xsl:call-template name="db2html.imagedata.src">
- <xsl:with-param name="node" select="imagedata"/>
- </xsl:call-template>
- <xsl:text>&#x000A;</xsl:text>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/utils/graphics.xsl b/xslt/docbook/utils/graphics.xsl
deleted file mode 100644
index 0906d3f..0000000
--- a/xslt/docbook/utils/graphics.xsl
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:import href="../../gettext/gettext.xsl"/>
-
-<xsl:output method="text" encoding="utf-8"/>
-
-<xsl:template match="/">
- <xsl:if test="//note[@role = 'bug'][1]">
- <xsl:text>admon-bug.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//caution[1]">
- <xsl:text>admon-caution.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//important[1]">
- <xsl:text>admon-important.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//note[not(@role) or @role != 'bug'][1]">
- <xsl:text>admon-note.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//tip[1]">
- <xsl:text>admon-tip.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//warning[1]">
- <xsl:text>admon-warning.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//blockquote[1]">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'blockquote-watermark-201C.png'"/>
- </xsl:call-template>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//classsynopsis[@language = 'cpp'][1] or //programlisting[@language = 'cpp']">
- <xsl:text>watermark-code-cpp.png&#x000A;</xsl:text>
- </xsl:if>
- <xsl:if test="//classsynopsis[@language = 'python'][1] or //programlisting[@language = 'python']">
- <xsl:text>watermark-code-python.png&#x000A;</xsl:text>
- </xsl:if>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/docbook/utils/ids.xsl b/xslt/docbook/utils/ids.xsl
deleted file mode 100644
index 68609a9..0000000
--- a/xslt/docbook/utils/ids.xsl
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
-<xsl:output method="text" encoding="utf-8"/>
-
-<xsl:include href="../common/db-common.xsl"/>
-
-<xsl:template match="/">
- <xsl:for-each select="//@id">
- <xsl:value-of select="."/>
- <xsl:text>&#x000A;</xsl:text>
- </xsl:for-each>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/gettext/.gitignore b/xslt/gettext/.gitignore
deleted file mode 100644
index 18e6e67..0000000
--- a/xslt/gettext/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-l10n.xml
diff --git a/xslt/gettext/Makefile.am b/xslt/gettext/Makefile.am
deleted file mode 100644
index be7e5ab..0000000
--- a/xslt/gettext/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
-# Not using INTLTOOL_XML_RULE because of it causes l10n.xml to be rebuilt
-# in the tarball, which causes docs to be rebuilt, which causes translated
-# docs to be rebuilt, which requires xml2po, which breaks --disable-build-utils
-l10n.xml: l10n.xml.in $(wildcard $(top_srcdir)/po/*.po)
- LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
- xmllint --noout $@ || (mv $@ $@.broken && false)
-
-xsldir=$(datadir)/xml/gnome/xslt/gettext
-
-xsl_DATA = \
- gettext.xsl \
- l10n-numbers.xsl \
- l10n.xml
-
-EXTRA_DIST=$(xsl_DATA) l10n.xml.in
-
-CLEANFILES = l10n.xml
diff --git a/xslt/gettext/gettext.xsl b/xslt/gettext/gettext.xsl
deleted file mode 100644
index daec15a..0000000
--- a/xslt/gettext/gettext.xsl
+++ /dev/null
@@ -1,1015 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- version="1.0">
-
-<!--!!==========================================================================
-Localized Strings
--->
-
-<xsl:variable name="l10n" select="document('l10n.xml')"/>
-<xsl:key name="msg" match="msg:msgset/msg:msg"
- use="concat(../msg:msgid, '__LC__', @xml:lang)"/>
-
-
-<!--@@==========================================================================
-l10n.locale
-The top-level locale of the document
--->
-<xsl:param name="l10n.locale">
- <xsl:choose>
- <xsl:when test="/*/@xml:lang">
- <xsl:value-of select="/*/@xml:lang"/>
- </xsl:when>
- <xsl:when test="/*/@lang">
- <xsl:value-of select="/*/@lang"/>
- </xsl:when>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-l10n.language
-The language part of the top-level locale of the document
--->
-<xsl:param name="l10n.language">
- <xsl:choose>
- <xsl:when test="contains($l10n.locale, '_')">
- <xsl:value-of select="substring-before($l10n.locale, '_')"/>
- </xsl:when>
- <xsl:when test="contains($l10n.locale, '@')">
- <xsl:value-of select="substring-before($l10n.locale, '@')"/>
- </xsl:when>
- <xsl:when test="contains($l10n.locale, '_')">
- <xsl:value-of select="substring-before($l10n.locale, '@')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$l10n.locale"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-l10n.region
-The region part of the top-level locale of the document
--->
-<xsl:param name="l10n.region">
- <xsl:variable name="aft" select="substring-after($l10n.locale, '_')"/>
- <xsl:choose>
- <xsl:when test="contains($aft, '@')">
- <xsl:value-of select="substring-before($aft, '@')"/>
- </xsl:when>
- <xsl:when test="contains($aft, '.')">
- <xsl:value-of select="substring-before($aft, '.')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$aft"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-l10n.variant
-The variant part of the top-level locale of the document
--->
-<xsl:param name="l10n.variant">
- <xsl:variable name="aft" select="substring-after($l10n.locale, '@')"/>
- <xsl:choose>
- <xsl:when test="contains($aft, '.')">
- <xsl:value-of select="substring-before($aft, '.')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$aft"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
-l10n.charset
-The charset part of the top-level locale of the document
--->
-<xsl:param name="l10n.charset">
- <xsl:if test="contains($l10n.locale, '.')">
- <xsl:value-of select="substring-after($l10n.locale, '.')"/>
- </xsl:if>
-</xsl:param>
-
-
-<!--**==========================================================================
-l10n.gettext
-Looks up the translation for a string
-$msgid: The id of the string to look up, often the string in the C locale
-$lang: The locale to use when looking up the translated string
-$lang_language: The language portion of the ${lang}
-$lang_region: The region portion of ${lang}
-$lang_variant: The variant portion of ${lang}
-$lang_charset: The charset portion of ${lang}
-$number: The cardinality for plural-form lookups
-$form: The form name for plural-form lookups
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.gettext">
- <xsl:param name="msgid"/>
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:param name="lang_language">
- <xsl:call-template name="l10n.language">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_region">
- <xsl:call-template name="l10n.region">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_variant">
- <xsl:call-template name="l10n.variant">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_charset">
- <xsl:call-template name="l10n.charset">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="number"/>
- <xsl:param name="form">
- <xsl:if test="$number">
- <xsl:call-template name="l10n.plural.form">
- <xsl:with-param name="number" select="$number"/>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="lang_language" select="$lang_language"/>
- <xsl:with-param name="lang_region" select="$lang_region"/>
- <xsl:with-param name="lang_variant" select="$lang_variant"/>
- <xsl:with-param name="lang_charset" select="$lang_charset"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:param>
- <xsl:param name="node" select="."/>
- <xsl:param name="role" select="''"/>
- <xsl:param name="string"/>
- <xsl:param name="format" select="false()"/>
-
- <xsl:for-each select="$l10n">
- <xsl:choose>
- <!-- fe_fi@fo.fum -->
- <xsl:when test="($lang_region and $lang_variant and $lang_charset) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '@', $lang_variant,
- '.', $lang_charset))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '@', $lang_variant,
- '.', $lang_charset))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe_fi@fo -->
- <xsl:when test="($lang_region and $lang_variant) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '@', $lang_variant))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '@', $lang_variant))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe@fo.fum -->
- <xsl:when test="($lang_variant and $lang_charset) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '@', $lang_variant,
- '.', $lang_charset))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '@', $lang_variant,
- '.', $lang_charset))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe@fo -->
- <xsl:when test="($lang_variant) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '@', $lang_variant))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '@', $lang_variant))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe_fi.fum -->
- <xsl:when test="($lang_region and $lang_charset) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '.', $lang_charset))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region,
- '.', $lang_charset))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe_fi -->
- <xsl:when test="($lang_region) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '_', $lang_region))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe.fum -->
- <xsl:when test="($lang_charset) and
- key('msg', concat($msgid, '__LC__',
- $lang_language, '.', $lang_charset))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__',
- $lang_language, '.', $lang_charset))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- fe -->
- <xsl:when test="key('msg', concat($msgid, '__LC__', $lang_language))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg"
- select="key('msg', concat($msgid, '__LC__', $lang_language))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- "C" -->
- <xsl:when test="key('msg', concat($msgid, '__LC__C'))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg" select="key('msg', concat($msgid, '__LC__C'))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- not() -->
- <xsl:when test="key('msg', concat($msgid, '__LC__'))">
- <xsl:call-template name="l10n.gettext.msg">
- <xsl:with-param
- name="msg" select="key('msg', concat($msgid, '__LC__'))"/>
- <xsl:with-param name="form" select="$form"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>
- <xsl:text>No translation available for string '</xsl:text>
- <xsl:value-of select="$msgid"/>
- <xsl:text>'.</xsl:text>
- </xsl:message>
- <xsl:value-of select="$msgid"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-</xsl:template>
-
-<!--#* l10n.gettext.msg -->
-<xsl:template name="l10n.gettext.msg">
- <xsl:param name="msg"/>
- <xsl:param name="form" select="''"/>
- <xsl:param name="node" select="."/>
- <xsl:param name="role" select="''"/>
- <xsl:param name="string"/>
- <xsl:param name="format" select="false()"/>
- <xsl:choose>
- <xsl:when test="not($msg/msg:msgstr)">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr" select="$msg"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <!-- FIXME: OPTIMIZE: this needs to be faster -->
- <xsl:when test="$form != '' and $role != ''">
- <xsl:variable name="msgstr_form" select="$msg/msg:msgstr[@form = $form]"/>
- <xsl:choose>
- <xsl:when test="$msgstr_form">
- <xsl:choose>
- <xsl:when test="msgstr_form[@role = $role]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="msgstr_form[@role = $role][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="msgstr_form[not(@role)]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="msgstr_form[not(@role)][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="msgstr_form[1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$msg/msg:msgstr[@role = $role]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[@role = $role][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$msg/msg:msgstr[not(@role)]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[not(@role)][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$form != ''">
- <xsl:choose>
- <xsl:when test="$msg/msg:msgstr[@form = $form]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[@form = $form][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$msg/msg:msgstr[not(@form)]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[not(@form)][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr" select="$msg/msg:msgstr[1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$role != ''">
- <xsl:choose>
- <xsl:when test="$msg/msg:msgstr[@role = $role]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[@role = $role][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$msg/msg:msgstr[not(@role)]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[not(@role)][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr" select="$msg/msg:msgstr[1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$msg/msg:msgstr[not(@role)]">
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr"
- select="$msg/msg:msgstr[not(@role)][1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.gettext.msgstr">
- <xsl:with-param name="msgstr" select="$msg/msg:msgstr[1]"/>
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="role" select="$role"/>
- <xsl:with-param name="string" select="$string"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--#* l10n.gettext.msgstr -->
-<xsl:template name="l10n.gettext.msgstr">
- <xsl:param name="msgstr"/>
- <xsl:param name="node" select="."/>
- <xsl:param name="role"/>
- <xsl:param name="string"/>
- <xsl:param name="format" select="false()"/>
- <xsl:choose>
- <xsl:when test="$format">
- <xsl:apply-templates mode="l10n.format.mode" select="$msgstr/node()">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="string" select="$string"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$msgstr"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.plural.form
-Extracts he plural form string for a given cardinality
-$number: The cardinality of the plural form
-$lang: The locale to use when looking up the translated string
-$lang_language: The language portion of the ${lang}
-$lang_region: The region portion of ${lang}
-$lang_variant: The variant portion of ${lang}
-$lang_charset: The charset portion of ${lang}
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.plural.form">
- <xsl:param name="number" select="1"/>
- <xsl:param name="lang" select="$l10n.locale"/>
- <xsl:param name="lang_language">
- <xsl:call-template name="l10n.language">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_region">
- <xsl:call-template name="l10n.region">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_variant">
- <xsl:call-template name="l10n.variant">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_charset">
- <xsl:call-template name="l10n.charset">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
-
- <xsl:choose>
- <!--
- Keep variants first!
- When adding new languages, make sure the tests are in a format that
- can be extracted by the plurals.sh script in the i18n directory.
- -->
-
- <!-- == pt_BR == -->
- <xsl:when test="concat($lang_language, '_', $lang_region) = 'pt_BR'">
- <xsl:choose>
- <xsl:when test="$number &gt; 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>1</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == ar == -->
- <xsl:when test="$lang_language = 'ar'">
- <xsl:choose>
- <xsl:when test="$number = 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:when test="$number = 2">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:when test="$number &gt;= 3 and $number &lt; 10">
- <xsl:text>2</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>3</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == be bs cs ru sr uk == -->
- <xsl:when test="($lang_language = 'be') or ($lang_language = 'bs') or
- ($lang_language = 'cs') or ($lang_language = 'ru') or
- ($lang_language = 'sr') or ($lang_language = 'uk') ">
- <xsl:choose>
- <xsl:when test="($number mod 10 = 1) and ($number mod 100 != 11)">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:when test="($number mod 10 &gt;= 2) and ($number mod 10 &lt;= 4) and
- (($number mod 100 &lt; 10) or ($number mod 100 &gt;= 20))">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>2</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == cy == -->
- <xsl:when test="$lang_language = 'cy'">
- <xsl:choose>
- <xsl:when test="$number != 2">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>1</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == fa hu ja ko th tr vi zh == -->
- <xsl:when test="($lang_language = 'fa') or ($lang_language = 'hu') or
- ($lang_language = 'ja') or ($lang_language = 'ko') or
- ($lang_language = 'th') or ($lang_language = 'tr') or
- ($lang_language = 'vi') or ($lang_language = 'zh') ">
- <xsl:text>0</xsl:text>
- </xsl:when>
-
- <!-- == fr nso wa == -->
- <xsl:when test="($lang_language = 'fr') or ($lang_language = 'nso') or
- ($lang_language = 'wa') ">
- <xsl:choose>
- <xsl:when test="$number &gt; 1">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>0</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == ga == -->
- <xsl:when test="$lang_language = 'ga'">
- <xsl:choose>
- <xsl:when test="$number = 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:when test="$number = 2">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>2</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == sk == -->
- <xsl:when test="$lang_language = 'sk'">
- <xsl:choose>
- <xsl:when test="$number = 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:when test="($number &gt;= 2) and ($number &lt;= 4)">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>2</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == sl == -->
- <xsl:when test="$lang_language = 'sl'">
- <xsl:choose>
- <xsl:when test="$number mod 100 = 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:when test="$number mod 100 = 2">
- <xsl:text>1</xsl:text>
- </xsl:when>
- <xsl:when test="($number mod 100 = 3) or ($number mod 100 = 4)">
- <xsl:text>2</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>3</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
- <!-- == C == -->
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$number = 1">
- <xsl:text>0</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>1</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.direction
-Determines the text direction for the language of the document
-$lang: The locale to use to determine the text direction
-$lang_language: The language portion of the ${lang}
-$lang_region: The region portion of ${lang}
-$lang_variant: The variant portion of ${lang}
-$lang_charset: The charset portion of ${lang}
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.direction">
- <xsl:param name="lang" select="$l10n.locale"/>
- <xsl:param name="lang_language">
- <xsl:call-template name="l10n.language">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_region">
- <xsl:call-template name="l10n.region">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_variant">
- <xsl:call-template name="l10n.variant">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="lang_charset">
- <xsl:call-template name="l10n.charset">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:variable name="direction">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'default:LTR'"/>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="lang_language" select="$lang_language"/>
- <xsl:with-param name="lang_region" select="$lang_region"/>
- <xsl:with-param name="lang_variant" select="$lang_variant"/>
- <xsl:with-param name="lang_charset" select="$lang_charset"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$direction = 'default:RTL'">
- <xsl:text>rtl</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>ltr</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.align.start
-Determines the start alignment
-$direction: The text direction
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.align.start">
- <xsl:param name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$direction = 'rtl'">
- <xsl:text>right</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>left</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.align.end
-Determines the end alignment
-$direction: The text direction
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.align.end">
- <xsl:param name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$direction = 'rtl'">
- <xsl:text>left</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>right</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.arrow.previous
-FIXME
-$direction: The text direction
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.arrow.previous">
- <xsl:param name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$direction = 'rlt'">
- <xsl:text>&#x25C0;&#x00A0;&#x00A0;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#x00A0;&#x00A0;&#x25B6;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.arrow.next
-FIXME
-$direction: The text direction
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.arrow.next">
- <xsl:param name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$direction = 'rlt'">
- <xsl:text>&#x00A0;&#x00A0;&#x25B6;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#x25C0;&#x00A0;&#x00A0;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.language
-Extracts the langauge portion of a locale
-$lang: The locale to extract the language from
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.language">
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:choose>
- <xsl:when test="$lang = $l10n.locale">
- <xsl:value-of select="$l10n.language"/>
- </xsl:when>
- <xsl:when test="contains($lang, '_')">
- <xsl:value-of select="substring-before($lang, '_')"/>
- </xsl:when>
- <xsl:when test="contains($lang, '@')">
- <xsl:value-of select="substring-before($lang, '@')"/>
- </xsl:when>
- <xsl:when test="contains($lang, '_')">
- <xsl:value-of select="substring-before($lang, '@')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$lang"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.region
-Extracts the region portion of a locale
-$lang: The locale to extract the region from
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.region">
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:choose>
- <xsl:when test="$lang = $l10n.locale">
- <xsl:value-of select="$l10n.region"/>
- </xsl:when>
- <xsl:when test="contains($lang, '_')">
- <xsl:variable name="aft" select="substring-after($lang, '_')"/>
- <xsl:choose>
- <xsl:when test="contains($aft, '@')">
- <xsl:value-of select="substring-before($aft, '@')"/>
- </xsl:when>
- <xsl:when test="contains($aft, '.')">
- <xsl:value-of select="substring-before($aft, '.')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$aft"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.variant
-Extracts the variant portion of a locale
-$lang: The locale to extract the variant from
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.variant">
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:choose>
- <xsl:when test="$lang = $l10n.locale">
- <xsl:value-of select="$l10n.variant"/>
- </xsl:when>
- <xsl:when test="contains($lang, '@')">
- <xsl:variable name="aft" select="substring-after($lang, '@')"/>
- <xsl:choose>
- <xsl:when test="contains($aft, '.')">
- <xsl:value-of select="substring-before($aft, '.')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$aft"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.charset
-Extracts the charset portion of a locale
-$lang: The locale to extract the charset from
-
-REMARK: Lots of documentation is needed
--->
-<xsl:template name="l10n.charset">
- <xsl:param name="lang" select="ancestor-or-self::*[@lang][1]/@lang"/>
- <xsl:choose>
- <xsl:when test="$lang = $l10n.locale">
- <xsl:value-of select="$l10n.charset"/>
- </xsl:when>
- <xsl:when test="contains($lang, '.')">
- <xsl:value-of select="substring-after($lang, '.')"/>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--%%==========================================================================
-l10n.format.mode
-FIXME
-$node: The node being processed in the original document
-$string: String content to use for certain message format nodes
-
-REMARK: Lots and lots of documentation is needed
--->
-<xsl:template mode="l10n.format.mode" match="*">
- <xsl:param name="node"/>
- <xsl:apply-templates mode="l10n.format.mode">
- <xsl:with-param name="node" select="$node"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<!-- = l10n.format.mode % msg:node = -->
-<xsl:template mode="l10n.format.mode" match="msg:node">
- <xsl:param name="node"/>
- <xsl:apply-templates select="$node/node()"/>
-</xsl:template>
-
-<!-- = l10n.format.mode % msg:string = -->
-<xsl:template mode="l10n.format.mode" match="msg:string">
- <xsl:param name="string"/>
- <xsl:value-of select="$string"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/gettext/l10n-numbers.xsl b/xslt/gettext/l10n-numbers.xsl
deleted file mode 100644
index 6120d8d..0000000
--- a/xslt/gettext/l10n-numbers.xsl
+++ /dev/null
@@ -1,390 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n"
- xmlns:math="http://exslt.org/math"
- extension-element-prefixes="math"
- version="1.0">
-
-<!--!!==========================================================================
-Localized Numbers
--->
-
-<xsl:include href="gettext.xsl"/>
-
-
-<!--**==========================================================================
-l10n.number
-Formats a number according to a localized numbering system
-$value: The numeric value of the number to format
-$format: The numbering system to use
-
-REMARK: Talk about numbering systems
--->
-<xsl:template name="l10n.number">
- <xsl:param name="value"/>
- <xsl:param name="format"/>
- <xsl:choose>
- <xsl:when test="$format='decimal' or $format='1'">
- <xsl:number format="1" value="$value"/>
- </xsl:when>
- <xsl:when test="$format='alpha-lower' or $format='a'">
- <xsl:number format="a" value="$value"/>
- </xsl:when>
- <xsl:when test="$format='alpha-upper' or $format='A'">
- <xsl:number format="A" value="$value"/>
- </xsl:when>
- <xsl:when test="$format='roman-lower' or $format='i'">
- <xsl:number format="i" value="$value"/>
- </xsl:when>
- <xsl:when test="$format='roman-upper' or $format='I'">
- <xsl:number format="I" value="$value"/>
- </xsl:when>
-
- <xsl:when test="$format='cjk-japanese' or
- $format='cjk-chinese-simp' or
- $format='cjk-chinese-trad' ">
- <xsl:call-template name="l10n.number.cjk-ideographic">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:when test="$format='ionic-lower' or $format='ionic-upper'">
- <xsl:call-template name="l10n.number.ionic">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="format" select="$format"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:when test="$format='decimal-arabic'">
- <xsl:call-template name="l10n.number.numeric">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="digits" select="'٠١٢٣٤٥٦٧٨٩'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$format='decimal-persian'">
- <xsl:call-template name="l10n.number.numeric">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="digits" select="'۰۱۲۳۴۵۶۷۸۹'"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:when test="$format='alpha-serbian-lower'">
- <xsl:call-template name="l10n.number.alphabetic">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="alphabet"
- select="'абвгдђежзијклљмнњопрстћуфхцчџш'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$format='alpha-serbian-upper'">
- <xsl:call-template name="l10n.number.alphabetic">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="alphabet"
- select="'АБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ'"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:when test="$format='alpha-thai'">
- <xsl:call-template name="l10n.number.alphabetic">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="alphabet"
- select="'กขคงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$format='decimal-thai'">
- <xsl:call-template name="l10n.number.numeric">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="digits" select="'๐๑๒๓๔๕๖๗๘๙'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.number.alphabetic
-Formats a number using an alphabetic numbering system
-$value: The numeric value of the number to format
-$alphabet: A string containing the characters of the alphabet to use
-
-REMARK: Talk about alphabetic numbering systems
--->
-<xsl:template name="l10n.number.alphabetic">
- <xsl:param name="value"/>
- <xsl:param name="alphabet"/>
- <xsl:variable name="length" select="string-length($alphabet)"/>
- <xsl:choose>
- <xsl:when test="$value &lt;= 0">
- <xsl:number format="1" value="$value"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="digit">
- <xsl:choose>
- <xsl:when test="$value mod $length = 0">
- <xsl:value-of select="$length"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$value mod $length"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="$value - $digit != 0">
- <xsl:call-template name="l10n.number.alphabetic">
- <xsl:with-param name="value" select="($value - $digit) div $length"/>
- <xsl:with-param name="alphabet" select="$alphabet"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:value-of select="substring($alphabet, $digit, 1)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.number.numeric
-Formats a number using a numeric numbering system with any radix
-$value: The numeric value of the number to format
-$digits: A string containing the digits to use, starting with zero
-
-REMARK: Talk about numeric numbering systems
--->
-<xsl:template name="l10n.number.numeric">
- <xsl:param name="value"/>
- <xsl:param name="digits"/>
- <xsl:param name="length" select="string-length($digits)"/>
- <xsl:choose>
- <xsl:when test="$value &lt; 0">
- <!-- FIXME: We need to localize the negative sign -->
- <xsl:text>-</xsl:text>
- <xsl:call-template name="l10n.number.numeric">
- <xsl:with-param name="value" select="math:abs($value)"/>
- <xsl:with-param name="digits" select="$digits"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="digit" select="$value mod $length"/>
- <xsl:if test="$value - $digit != 0">
- <xsl:call-template name="l10n.number.numeric">
- <xsl:with-param name="value" select="($value - $digit) div $length"/>
- <xsl:with-param name="digits" select="$digits"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:value-of select="substring($digits, $digit + 1, 1)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.number.cjk-ideographic
-Formats a number using a CJK ideographic system
-$value: The numeric value of the number to format
-$format: Which ideographic system to use
-
-REMARK: Talk about CJK ideographic numbering systems. Valid values of ${format}
-are #{cjk-japanese}, #{cjk-chinese-simp}, and #{cjk-chinese-trad}.
--->
-<xsl:template name="l10n.number.cjk-ideographic">
- <xsl:param name="value"/>
- <xsl:param name="format"/>
- <xsl:call-template name="l10n.number.cjk-ideographic.private">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="level" select="0"/>
- </xsl:call-template>
-</xsl:template>
-
-<!--#* l10n.number.cjk-ideographic.private -->
-<xsl:template name="l10n.number.cjk-ideographic.private">
- <xsl:param name="value"/>
- <xsl:param name="format"/>
- <xsl:param name="level" select="0"/>
- <xsl:param name="zero" select="true()"/>
- <xsl:variable name="ones">
- <xsl:text>&#x3007;&#x4E00;&#x4E8C;&#x4E09;&#x56DB;</xsl:text>
- <xsl:text>&#x4E94;&#x516D;&#x4E03;&#x516B;&#x4E5D;</xsl:text>
- </xsl:variable>
- <xsl:variable name="tens">
- <xsl:text>&#x5341;&#x767E;&#x5343;</xsl:text>
- </xsl:variable>
- <!-- FIXME: pick a upper bound and fallback to decimal -->
- <xsl:variable name="myriads">
- <xsl:choose>
- <xsl:when test="$format='cjk-japanese'">
- <xsl:text>&#x4E07;&#x5104;&#x5146;&#x4EAC;&#x5793;</xsl:text>
- </xsl:when>
- <xsl:when test="$format='cjk-chinese-simp'">
- <xsl:text>&#x4E07;&#x4EBF;&#x5146;</xsl:text>
- </xsl:when>
- <xsl:when test="$format='cjk-chinese-trad'">
- <xsl:text>&#x842C;&#x5104;&#x5146;</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="digit" select="$value mod 10"/>
- <xsl:if test="$value - $digit &gt; 0">
- <xsl:call-template name="l10n.number.cjk-ideographic.private">
- <xsl:with-param name="value" select="($value - $digit) div 10"/>
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="level" select="$level + 1"/>
- <xsl:with-param name="zero" select="$digit = 0"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$digit = 0">
- <xsl:choose>
- <xsl:when test="$value = 0">
- <xsl:value-of select="substring($ones, $digit + 1, 1)"/>
- </xsl:when>
- <xsl:when test="$format='cjk-chinese-simp' and not($zero)">
- <xsl:value-of select="substring($ones, $digit + 1, 1)"/>
- </xsl:when>
- <xsl:when test="$format='cjk-chinese-trad' and not($zero)">
- <xsl:value-of select="substring($ones, $digit + 1, 1)"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring($ones, $digit + 1, 1)"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="ten" select="$level mod 4"/>
- <xsl:choose>
- <xsl:when test="$ten != 0">
- <xsl:if test="$digit != 0">
- <xsl:value-of select="substring($tens, $ten, 1)"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="myriad" select="($level - $ten) div 4"/>
- <xsl:if test="$myriad != 0">
- <xsl:value-of select="substring($myriads, $myriad, 1)"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-l10n.number.ionic
-Formats a number using the Ionic numeral system
-$value: The numeric value of the number to format
-$format: Which format to use
-
-REMARK: Talk about the Ionic numeral system. Talk about ${format}
-See #{http://en.wikipedia.org/wiki/Greek_numerals}.
--->
-<xsl:template name="l10n.number.ionic">
- <xsl:param name="value"/>
- <xsl:param name="format" select="'ionic-lower'"/>
- <xsl:choose>
- <xsl:when test="$value &lt; 1 or $value &gt; 999999">
- <xsl:number format="1" value="$value"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="l10n.number.ionic.private">
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="format" select="'ionic-lower'"/>
- <xsl:with-param name="level" select="1"/>
- </xsl:call-template>
- <xsl:text>´</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!--#* l10n.number.ionic.private -->
-<xsl:template name="l10n.number.ionic.private">
- <xsl:param name="value"/>
- <xsl:param name="format" select="'ionic-lower'"/>
- <xsl:param name="level" select="1"/>
- <xsl:param name="stigma" select="false()"/>
- <xsl:variable name="digit" select="$value mod 10"/>
- <xsl:if test="$value - $digit &gt; 0">
- <xsl:call-template name="l10n.number.ionic.private">
- <xsl:with-param name="value" select="($value - $digit) div 10"/>
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="level" select="$level + 1"/>
- <xsl:with-param name="stigma" select="$stigma"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$format='ionic-lower'">
- <xsl:choose>
- <xsl:when test="$digit = 0"/>
- <xsl:when test="not($stigma) and $digit = 6 and $level = 1">
- <xsl:text>στ</xsl:text>
- </xsl:when>
- <xsl:when test="$level = 1 or $level = 4">
- <xsl:if test="$level = 4">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('αβγδεϛζηθ', $digit, 1)"/>
- </xsl:when>
- <xsl:when test="$level = 2 or $level = 5">
- <xsl:if test="$level = 5">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('ικλμνξοπϟ', $digit, 1)"/>
- </xsl:when>
- <xsl:when test="$level = 3 or $level = 6">
- <xsl:if test="$level = 6">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('ρστυφχψωϡ', $digit, 1)"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$format='ionic-upper'">
- <xsl:choose>
- <xsl:when test="$digit = 0"/>
- <xsl:when test="not($stigma) and $digit = 6 and $level = 1">
- <xsl:text>ΣΤ</xsl:text>
- </xsl:when>
- <xsl:when test="not($stigma) and $digit = 6 and $level = 1">
- <xsl:text>,Σ,Τ</xsl:text>
- </xsl:when>
- <xsl:when test="$level = 1 or $level = 4">
- <xsl:if test="$level = 4">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('ΑΒΓΔΕϚΖΗΘ', $digit, 1)"/>
- </xsl:when>
- <xsl:when test="$level = 2 or $level = 5">
- <xsl:if test="$level = 5">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('ΙΚΛΜΝΞΟΠϘ', $digit, 1)"/>
- </xsl:when>
- <xsl:when test="$level = 3 or $level = 6">
- <xsl:if test="$level = 6">
- <xsl:text>,</xsl:text>
- </xsl:if>
- <xsl:value-of select="substring('ΡΣΤΥΦΧΨΩϠ', $digit, 1)"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$digit"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/gettext/l10n.xml.in b/xslt/gettext/l10n.xml.in
deleted file mode 100644
index 26a7dbc..0000000
--- a/xslt/gettext/l10n.xml.in
+++ /dev/null
@@ -1,2433 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><!-- -*- indent-tabs-mode: nil -*- -->
-
-<l10n xmlns="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n">
-
-<!-- ======================================================================= -->
-<!-- == Simple Strings ===================================================== -->
-
-<msgset>
- <msgid>default:LTR</msgid>
- <!--
- Translate to default:RTL if your language should be displayed
- right-to-left, otherwise translate to default:LTR. Do *not*
- translate it to "predefinito:LTR", if it isn't default:LTR
- or default:RTL it will not work
- -->
- <_msg>default:LTR</_msg>
-</msgset>
-<msgset>
- <msgid>, </msgid>
- <!--
- This is used a simple list item seperator in places where simple
- inline lists have to be constructed dynamically. Using the default
- string of ", ", a list would look like this: A, B, C, D. Using the
- nonsensical string " - ", a list would look like this: A - B - C - D.
- -->
- <_msg xml:space="preserve">, </_msg>
-</msgset>
-<msgset>
- <msgid>, and </msgid>
- <!--
- This is used as the final separator in an inline list of three or
- more elements. The string ", " will be used to separate all but
- the last pair of elements. Using these two strings, a list of
- names would be formatted as "Tom, Dick, and Harry".
- -->
- <_msg xml:space="preserve">, and </_msg>
-</msgset>
-<msgset>
- <msgid> and </msgid>
- <!--
- This is used as a list item seperator for inline lists of exactly two
- elements. A list of two names would be formatted as "Tom and Dick".
- -->
- <_msg xml:space="preserve"> and </_msg>
-</msgset>
-<msgset>
- <msgid> — </msgid>
- <!--
- This is used to offset an inline description from a title. This is
- typically used on title and refpurpose of a refentry element, which
- models the structure of a man page.
- -->
- <_msg xml:space="preserve"> — </_msg>
-</msgset>
-<msgset>
- <msgid>A:</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/qandaentry.html
-
- This is used as a label before answers in a question-and-answer
- set. Typically, answers are simply numbered and answers are not
- labelled at all. However, DocBook allows document authors to set
- the labelling style for a qandaset. If the labelling style is set
- to 'qanda', this string will be used to label answers.
- -->
- <_msg>A:&#x2003;</_msg>
-</msgset>
-<msgset>
- <msgid>About This Document</msgid>
- <!-- Used for links to the titlepage. -->
- <_msg>About This Document</_msg>
-</msgset>
-<msgset>
- <msgid>Affiliation</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/affiliation.html
-
- This is used as a label before affiliations when listing
- authors and other contributors to the document. For example:
-
- Shaun McCance
- Affiliation: GNOME Documentation Project
- -->
- <_msg>Affiliation</_msg>
-</msgset>
-<msgset>
- <msgid>Author</msgid>
- <!-- Used as a header before a list of authors. -->
- <_msg>
- <msgstr form='0'>Author</msgstr>
- <msgstr form='1'>Authors</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Bibliography</msgid>
- <!-- Used as a title for a bibliography. -->
- <_msg>Bibliography</_msg>
-</msgset>
-<msgset>
- <msgid>Caution</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/caution.html
- This is used as a default title for caution elements.
- -->
- <_msg>Caution</_msg>
-</msgset>
-<msgset>
- <msgid>Colophon</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/colophon.html
- This is used as a default title for colophon elements.
- -->
- <_msg>Colophon</_msg>
-</msgset>
-<msgset>
- <msgid>Collaborator</msgid>
- <!-- Used as a header before a list of collaborators. -->
- <_msg>
- <msgstr form='0'>Collaborator</msgstr>
- <msgstr form='1'>Collaborators</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Contents</msgid>
- <!-- Used as the title of the listing of subsections -->
- <_msg>Contents</_msg>
-</msgset>
-<msgset>
- <msgid>Copyright</msgid>
- <!-- Used as a header before a list of copyrights. -->
- <_msg>
- <msgstr form='0'>Copyright</msgstr>
- <msgstr form='1'>Copyrights</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Dedication</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/dedication.html
- This is used as a default title for dedication elements.
- -->
- <_msg>Dedication</_msg>
-</msgset>
-<msgset>
- <msgid>Editor</msgid>
- <!-- Used as a header before a list of editors. -->
- <_msg>
- <msgstr form='0'>Editor</msgstr>
- <msgstr form='1'>Editors</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Email</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/affiliation.html
-
- This is used as a label before email addresses when listing
- authors and other contributors to the document. For example:
-
- Shaun McCance
- Email: shaunm@gnome.org
- -->
- <_msg>Email</_msg>
-</msgset>
-<msgset>
- <msgid>Glossary</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/glossary.html
- This is used as a default title for glossary elements.
- -->
- <_msg>Glossary</_msg>
-</msgset>
-<msgset>
- <msgid>Important</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/important.html
- This is used as a default title for important elements.
- -->
- <_msg>Important</_msg>
-</msgset>
-<msgset>
- <msgid>Index</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/index.html
- This is used as a default title for index elements.
- -->
- <_msg>Index</_msg>
-</msgset>
-<msgset>
- <msgid>Legal Notice</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/legalnotice.html
- This is used as a default title for legalnotice elements.
- -->
- <_msg>Legal Notice</_msg>
-</msgset>
-<msgset>
- <msgid>Name</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/refnamediv.html
- This is used as the title for refnamediv elements.
- -->
- <_msg>Name</_msg>
-</msgset>
-<msgset>
- <msgid>Next</msgid>
- <!-- Used as link to the next page in a series. -->
- <_msg>Next</_msg>
-</msgset>
-<msgset>
- <msgid>Note</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/note.html
- This is used as a default title for note elements.
- -->
- <_msg>Note</_msg>
-</msgset>
-<msgset>
- <msgid>Other Contributor</msgid>
- <!-- Used as a header before a list of contributors. -->
- <_msg>
- <msgstr form='0'>Other Contributor</msgstr>
- <msgstr form='1'>Other Contributors</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Q:</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/qandaentry.html
-
- This is used as a label before questions in a question-and-answer
- set. Typically, questions are simply numbered and answers are not
- labelled at all. However, DocBook allows document authors to set
- the labelling style for a qandaset. If the labelling style is set
- to 'qanda', this string will be used to label questions.
- -->
- <_msg>Q:&#x2003;</_msg>
-</msgset>
-<msgset>
- <msgid>Preface</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/preface.html
- This is used as a default title for preface elements.
- -->
- <_msg>Preface</_msg>
-</msgset>
-<msgset>
- <msgid>Previous</msgid>
- <!-- Used as link to the previous page in a series. -->
- <_msg>Previous</_msg>
-</msgset>
-<msgset>
- <msgid>Publisher</msgid>
- <!-- Used as a header before a list of publishers. -->
- <_msg>
- <msgstr form='0'>Publisher</msgstr>
- <msgstr form='1'>Publishers</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Revision History</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/revhistory.html
- This is used as a header before the revision history.
- -->
- <_msg>Revision History</_msg>
-</msgset>
-<msgset>
- <msgid>See</msgid>
- <!--
- Used for the <see> element.
- FIXME: this should be a format string.
- -->
- <_msg>See</_msg>
-</msgset>
-<msgset>
- <msgid>See Also</msgid>
- <!--
- Used for the <seealso> element.
- FIXME: this should be a format string.
- -->
- <_msg>See Also</_msg>
-</msgset>
-<msgset>
- <msgid>Synopsis</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/refsynopsisdiv.html
- This is used as the default title for refsynopsisdiv elements.
- -->
- <_msg>Synopsis</_msg>
-</msgset>
-<msgset>
- <msgid>Tip</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/tip.html
- This is used as a default title for tip elements.
- -->
- <_msg>Tip</_msg>
-</msgset>
-<msgset>
- <msgid>Translator</msgid>
- <!-- Used as a header before a list of translators. -->
- <_msg>
- <msgstr form='0'>Translator</msgstr>
- <msgstr form='1'>Translators</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>Warning</msgid>
- <!--
- http://www.docbook.org/tdg/en/html/warning.html
- This is used as a default title for warning elements.
- -->
- <_msg>Warning</_msg>
-</msgset>
-<msgset>
- <msgid>watermark-blockquote-201C.png</msgid>
- <!--
- This is an image of the opening quotation character for your language.
- The image is used as a watermark on blockquote elements. There are a
- number of different quote characters used by various languages, so the
- image name is translatable. The name of the icon should be of the form
- "watermark-blockquote-XXXX.png", where XXXX is the Unicode code point
- of the opening quote character. For example, some languages use the
- double angle quotation mark. Translators for these languages should
- use "watermark-blockquote-00AB.png".
-
- The image, however, is not automatically created. Do not translate
- this to a value if there isn't a corresponding file in gnome-doc-utils,
- under the directory data/watermarks.
-
- Languages that use guillemets (angle quotation marks) should use either
- 00AB or 00BB, depending on whether the opening quotation is the left
- guillemet or the right guillemet. Languages that use inverted comma
- quotation marks should use 201C, 201D, or 201E. Single quotation marks
- don't make very nice watermarks, so if you would normally open a quote
- with single quotation marks in your language, use the corresponding
- double quotation mark for the watermark image.
-
- Translators who have been around Gnome for a while should recognize
- this as nearly the same as the "yelp-watermark-blockquote-201C" string
- once found inside Yelp. The watermark functionality has been moved to
- gnome-doc-utils.
- -->
- <_msg>watermark-blockquote-201C.png</_msg>
-</msgset>
-
-
-<!-- ======================================================================= -->
-<!-- == Formatters ========================================================= -->
-
-<!-- == appendix == -->
-<msgset>
- <msgid>appendix.digit</msgid>
- <!--
- The number formatter used for appendix numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>appendix.digit</msgid>
- <msgstr>A</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>appendix.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for appendices. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the appendix
- titleabbrev - The titleabbrev of the appendix, or just the title
- if no titleabbrev exists
- number - The full number of the appendix, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>appendix.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Appendix <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>appendix.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for appendices. Numbers
- are used in labels, cross references, and any other place where the
- appendix might be referenced. The number for an appendix includes the
- number for its parent element, if applicable. For example, the number
- 4.B indicates the second appendix in the fourth top-level element. In
- this example, 4 is referred to as the parent number, and B is referred
- to as the appendix digit. This format message constructs a full number
- from a parent number and an appendix digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the appendix's parent element
- digit - The number of the appendix in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>appendix.number</msgid>
- <msgstr><parent/>.<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>appendix.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to appendices.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the appendix
- titleabbrev - The titleabbrev of the appendix, or just the title
- if no titleabbrev exists
- number - The full number of the appendix, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>appendix.xref</msgid>
- <msgstr>Appendix <number/> ― <title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == biblioentry == -->
-<msgset>
- <msgid>biblioentry.tooltip</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format tooltips on cross references
- to bibliography entries.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- label - The term being defined by the glossary entry
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the label, simply write left angle bracket, label, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>biblioentry.tooltip</msgid>
- <msgstr>View the bibliography entry <label/>.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == bibliography == -->
-<msgset>
- <msgid>bibliography.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to bibliographies.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the figure
- titleabbrev - The titleabbrev of the figure, or just the title
- if no titleabbrev exists
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Note that authors are not required to provide explicit titles for
- bibliographies. If the author does not provide a title, the
- translatable string 'Bibliography' is used as a default.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>bibliography.xref</msgid>
- <msgstr><title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == bibliolabel == -->
-<msgset>
- <msgid>bibliolabel.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- biblioentry - An entry in a bibliography
- bibliomixed - An entry in a bibliography
- http://www.docbook.org/tdg/en/html/biblioentry.html
- http://www.docbook.org/tdg/en/html/bibliomixed.html
-
- This is a format message used to format the labels for entries in
- a bibliography. The content of the label is often an abbreviation
- of the authors' names and the year of publication. In English,
- these are generally formatted with [square brackets] surrounding
- them.
-
- This string is similar to citation.format, but they are used in
- different places. The citation formatter is used when referencing
- a bibliography entry in running prose. This formatter is used for
- the actual bibliography entry. You may use the same formatting for
- both, but you don't have to.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- bibliolabel - The text content of the bibliography label
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the label, simply write left angle bracket, bibliolabel,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>bibliolabel.format</msgid>
- <msgstr>[<bibliolabel/>]</msgstr>
- </_msg>
-</msgset>
-
-<!-- == book == -->
-<msgset>
- <msgid>book.digit</msgid>
- <!--
- The number formatter used for book numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>book.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>book.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to books.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the book
- titleabbrev - The titleabbrev of the book, or just the title
- if no titleabbrev exists
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>book.xref</msgid>
- <msgstr><title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == citetitle == -->
-<msgset>
- <msgid>citetitle.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- citetitle - The title of a cited work
- http://docbook.org/tdg/en/html/citetitle.html
-
- This is a format message used to format inline title citations.
- This template uses roles to control how the citation is formatted.
- The role indicates the type of work being cited, and is taken from
- the pubwork attribute of the citetitle element.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- node - The text content of the citetitle element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the node, simply write left angle bracket, node, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>citetitle.format</msgid>
- <msgstr role='article'>“<node/>”</msgstr>
- <msgstr><i><node/></i></msgstr>
- </_msg>
-</msgset>
-
-<!-- == citation == -->
-<msgset>
- <msgid>citation.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- citetitle - An inline bibliographic reference to another published work
- http://docbook.org/tdg/en/html/citation.html
-
- This is a format message used to format inline citations to other
- published works. The content is typically an abbreviation of the
- authors' last names. In English, this abbreviation is usually
- written inside [square brackets].
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- citation - The text content of the citation element, possibly
- as a link to an entry in the bibliography
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the citation, simply write left angle bracket, citation,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>citation.format</msgid>
- <msgstr>[<citation/>]</msgstr>
- </_msg>
-</msgset>
-
-<!-- == chapter == -->
-<msgset>
- <msgid>chapter.digit</msgid>
- <!--
- The number formatter used for chapter numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>chapter.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>chapter.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for chapters. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the chapter
- titleabbrev - The titleabbrev of the chapter, or just the title
- if no titleabbrev exists
- number - The full number of the chapter, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>chapter.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Chapter <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>chapter.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for chapters. Numbers
- are used in labels, cross references, and any other place where the
- chapter might be referenced. The number for a chapter includes the
- number for its parent element, if applicable. For example, the number
- 4.2 indicates the second chapter in the fourth top-level element. In
- this example, 4 is referred to as the parent number, and B is referred
- to as the chapter digit. This format message constructs a full number
- from a parent number and a chapter digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the chapter's parent element
- digit - The number of the chapter in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>chapter.number</msgid>
- <msgstr><parent/>.<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>chapter.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to chapters
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the chapter
- titleabbrev - The titleabbrev of the chapter, or just the title
- if no titleabbrev exists
- number - The full number of the chapter, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>chapter.xref</msgid>
- <msgstr>Chapter <number/> ― <title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == email == -->
-<msgset>
- <msgid>email.tooltip</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format tooltips on mailto: links
- created from DocBook's email element.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- string - The linked-to email address
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the email address, simply write left angle bracket, string,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>email.tooltip</msgid>
- <msgstr>Send email to ‘<string/>’.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == example == -->
-<msgset>
- <msgid>example.digit</msgid>
- <!--
- The number formatter used for example numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>example.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>example.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for examples. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the example
- titleabbrev - The titleabbrev of the example, or just the title
- if no titleabbrev exists
- number - The full number of the example, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>example.label</msgid>
- <msgstr role='header'><i>Example <number/></i>&#x2003;</msgstr>
- <msgstr role='li'>Example <number/>&#x2002;</msgstr>
- <msgstr>Example <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>example.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for example. Numbers
- are used in labels, cross references, and any other place where the
- example might be referenced. The number for an example includes the
- number for its parent element, if applicable. For example, the number
- 4-3 indicates the third example in the fourth top-level chapter. In
- this example, 4 is referred to as the parent number, and 3 is referred
- to as the example digit. This format message constructs a full number
- from a parent number and an example digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the example's parent element
- digit - The number of the example in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>example.number</msgid>
- <msgstr><parent/>-<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>example.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to examples.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the example
- titleabbrev - The titleabbrev of the example, or just the title
- if no titleabbrev exists
- number - The full number of the example, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>example.xref</msgid>
- <msgstr>Example <number/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == figure == -->
-<msgset>
- <msgid>figure.digit</msgid>
- <!--
- The number formatter used for figure numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>figure.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>figure.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for figures. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the figure
- titleabbrev - The titleabbrev of the figure, or just the title
- if no titleabbrev exists
- number - The full number of the figure, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>figure.label</msgid>
- <msgstr role='header'><i>Figure <number/></i>&#x2003;</msgstr>
- <msgstr role='li'>Figure <number/>&#x2002;</msgstr>
- <msgstr>Figure <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>figure.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for figure. Numbers
- are used in labels, cross references, and any other place where the
- figure might be referenced. The number for a figure includes the
- number for its parent element, if applicable. For example, the number
- 4-3 indicates the third figure in the fourth top-level chapter. In
- this figure, 4 is referred to as the parent number, and 3 is referred
- to as the figure digit. This format message constructs a full number
- from a parent number and a figure digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the figure's parent element
- digit - The number of the figure in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>figure.number</msgid>
- <msgstr><parent/>-<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>figure.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to figures.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the figure
- titleabbrev - The titleabbrev of the figure, or just the title
- if no titleabbrev exists
- number - The full number of the figure, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>figure.xref</msgid>
- <msgstr>Figure <number/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == glossentry == -->
-<msgset>
- <msgid>glossentry.abbrev.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- glossentry - A entry in a glossary or glosslist
- http://www.docbook.org/tdg/en/html/glossentry.html
-
- This is a format message used to format the abbreviations of terms
- in glossary entries. An abbreviation for a glossary term can be
- provided by an 'acronym' or an 'abbrev' element. For example, a
- glossary entry for HTML might look like this:
-
- Hypertext Markup Language (HTML)
- Definition goes here....
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- node - The content of the acronym or abbrev element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the content, simply write left angle bracket, node, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glossentry.abbrev.format</msgid>
- <msgstr>(<node/>)</msgstr>
- </_msg>
-</msgset>
-
-<!-- == glossary == -->
-<msgset>
- <msgid>glossary.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to glossaries.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the figure
- titleabbrev - The titleabbrev of the figure, or just the title
- if no titleabbrev exists
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Note that authors are not required to provide explicit titles for
- glossaries. If the author does not provide a title, the translatable
- string 'Glossary' is used as a default.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glossary.xref</msgid>
- <msgstr><title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == glossentry == -->
-<msgset>
- <msgid>glossentry.tooltip</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format tooltips on cross references
- to glossary entries.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- glossterm - The term being defined by the glossary entry
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the glossterm, simply write left angle bracket, glossterm,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glossentry.tooltip</msgid>
- <msgstr>Read the definition for ‘<glossterm/>’.</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>glossentry.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to glossary
- entries. Multiple roles can be provided to allow document translators to
- select how to format each cross reference using the xrefstyle attribute.
- If your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- In addition, the 'glosssee' role will be used for cross references
- from glosssee or glossseealso elements. These are used in other
- glossary entries to direct the user to the linked-to entry.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- glossterm - The term being defined by the glossary entry
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the glossterm, simply write left angle bracket, glossterm,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glossentry.xref</msgid>
- <msgstr role='glosssee'><glossterm/></msgstr>
- <msgstr>‘<glossterm/>’</msgstr>
- </_msg>
-</msgset>
-
-<!-- == glosssee == -->
-<msgset>
- <msgid>glosssee.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- glosssee - A cross reference from one glossentry to another
- http://docbook.org/tdg/en/html/glosssee.html
-
- This is a format message used to format glossary cross references.
- This format message controls the sentence used to present the cross
- reference, not the link itself. For the formatting of the actual
- link, see the message glossentry.xref.
-
- One or more glosssee elements are presented as a links to the user
- in the glossary, formatted as a single prose sentence. For example,
- if the user is being directed to the entry "foo", the glosssee may
- be formatted as "See foo."
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- glosssee - The actual link or links of the cross reference
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the glosssee, simply write left angle bracket, glosssee,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glosssee.format</msgid>
- <msgstr>See <glosssee/>.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == glossseealso == -->
-<msgset>
- <msgid>glossseealso.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- glossseealso - A cross reference from one glossentry to another
- http://docbook.org/tdg/en/html/glossseealso.html
-
- This is a format message used to format glossary cross references.
- This format message controls the sentence used to present the cross
- reference, not the link itself. For the formatting of the actual
- link, see the message glossentry.xref.
-
- One or more glossseealso elements are presented as a links to the
- user in the glossary, formatted as a single prose sentence. For
- example, if the user is being directed to the entries "foo", "bar",
- and "baz", the glossseealso may be formatted as "See also foo, bar,
- baz."
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- glosssee - The actual link or links of the cross reference
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the glosssee, simply write left angle bracket, glosssee,
- slash, right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>glossseealso.format</msgid>
- <msgstr>See also <glosssee/>.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == manvolnum == -->
-<msgset>
- <msgid>manvolnum.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- manvolnum - A reference volume number
- http://docbook.org/tdg/en/html/manvolnum.html
-
- This is a format message used to format manvolnum elements.
- A manvolnum is typically a number or short string used to
- identify a section of man pages. It is typically placed
- inside parentheses.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- node - The text content of the manvolnum element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the node, simply write left angle bracket, node, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>manvolnum.format</msgid>
- <msgstr>(<node/>)</msgstr>
- </_msg>
-</msgset>
-
-<!-- == part == -->
-<msgset>
- <msgid>part.digit</msgid>
- <!--
- The number formatter used for part numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>part.digit</msgid>
- <msgstr>I</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>part.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for parts. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the part
- titleabbrev - The titleabbrev of the part, or just the title
- if no titleabbrev exists
- number - The full number of the part, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>part.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Part <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>part.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to parts
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the part
- titleabbrev - The titleabbrev of the part, or just the title
- if no titleabbrev exists
- number - The full number of the part, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>part.xref</msgid>
- <msgstr>Part <number/> ― <title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == preface == -->
-<msgset>
- <msgid>preface.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to prefaces.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the figure
- titleabbrev - The titleabbrev of the figure, or just the title
- if no titleabbrev exists
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Note that authors are not required to provide explicit titles for
- prefaces. If the author does not provide a title, the translatable
- string 'Preface' is used as a default.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>preface.xref</msgid>
- <msgstr><title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == question == -->
-<msgset>
- <msgid>question.digit</msgid>
- <!--
- The number formatter used for question numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>question.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>question.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for questions in
- question-and-answer sets. Labels are used before the question
- both in the question-and-answer list and in table of questions
- listings. Multiple roles can be used to provide different
- formattings for different uses of labels. The following roles
- may be used with this format message:
-
- header - Used for labels inside the question-and-answer set
- li - Used for labels in table of questions listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- number - The number of the question in its containing qandaset
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the number, simply write left angle bracket, number, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>question.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Question <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>question.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to questions
- in question-and-answer sets. Multiple roles can be provided to allow
- document translators to select how to format each cross reference
- using the xrefstyle attribute. If your language needs to provide
- different cross reference formattings for different parts of speech,
- you should provide multiple roles for cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- number - The number of the question in its containing qandaset
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the number, simply write left angle bracket, number, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>question.xref</msgid>
- <msgstr>Question <number/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == quote == -->
-<msgset>
- <msgid>quote.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- quote - An inline quotation
- http://docbook.org/tdg/en/html/quote.html
-
- This is a format message used to format inline quotations. This template
- uses roles to control how the quotation is formatted. The role indicates
- whether this is an outer or inner quotation. Quotations nested inside
- another quotation are inner quotations. Many languages have an alternate
- notation for nested quotations.
-
- These stylesheets only provide two levels of quotation formatting. If
- quote elements are nested deeper, the stylesheets will alternate between
- the 'outer' and 'inner' roles. If your language uses different formatting
- for deeper quotations, please contact the maintainers, and we will try to
- implement a more flexible formatting mechanism.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- node - The text content of the quote element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the node, simply write left angle bracket, node, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>quote.format</msgid>
- <msgstr role='inner'>‘<node/>’</msgstr>
- <msgstr>“<node/>”</msgstr>
- </_msg>
-</msgset>
-
-<!-- == refentry == -->
-<msgset>
- <msgid>refentry.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to reference
- pages. Multiple roles can be provided to allow document translators
- to select how to format each cross reference using the xrefstyle
- attribute. If your language needs to provide different cross
- reference formattings for different parts of speech, you should
- provide multiple roles for cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the reference page
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>refentry.xref</msgid>
- <msgstr><title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == refsection == -->
-<msgset>
- <msgid>refsection.digit</msgid>
- <!--
- The number formatter used for reference section numbers. This can
- be one of "1", "A", "a", "I", or "i", without the quotes. These
- formatters provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>refsection.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>refsection.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for reference sections.
- Labels are used before the title in places like headers and table of
- contents listings. Multiple roles can be used to provide different
- formattings for different uses of labels. The following roles may
- be used with this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the section
- titleabbrev - The titleabbrev of the section, or just the title
- if no titleabbrev exists
- number - The full number of the section, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>refsection.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Section <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>refsection.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for reference sections.
- Numbers are used in labels, cross references, and any other place where
- the section might be referenced. The number for a section includes the
- number for its parent element, if applicable. For example, the number
- 4.3.9 indicates the ninth section in the third section of the fourth
- top-level section or chapter. In this example, 4.3 is referred to as
- the parent number, and 9 is referred to as the section digit. This
- format message constructs a full number from a parent number and a
- section digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the section's parent element
- digit - The number of the section in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>refsection.number</msgid>
- <msgstr><parent/>.<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>refsection.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to reference
- sections. Multiple roles can be provided to allow document translators
- to select how to format each cross reference using the xrefstyle attribute.
- If your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the section
- titleabbrev - The titleabbrev of the section, or just the title
- if no titleabbrev exists
- number - The full number of the section, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>refsection.xref</msgid>
- <msgstr>Section <number/> ― <title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == section == -->
-<msgset>
- <msgid>section.digit</msgid>
- <!--
- The number formatter used for section numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>section.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>section.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for sections. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the section
- titleabbrev - The titleabbrev of the section, or just the title
- if no titleabbrev exists
- number - The full number of the section, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>section.label</msgid>
- <msgstr role='header'><number/>.&#x2003;</msgstr>
- <msgstr role='li'><number/>.&#x2002;</msgstr>
- <msgstr>Section <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>section.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for sections. Numbers
- are used in labels, cross references, and any other place where the
- section might be referenced. The number for a section includes the
- number for its parent element, if applicable. For example, the number
- 4.3.9 indicates the ninth section in the third section of the fourth
- top-level section or chapter. In this example, 4.3 is referred to as
- the parent number, and 9 is referred to as the section digit. This
- format message constructs a full number from a parent number and a
- section digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the section's parent element
- digit - The number of the section in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>section.number</msgid>
- <msgstr><parent/>.<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>section.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to sections.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the section
- titleabbrev - The titleabbrev of the section, or just the title
- if no titleabbrev exists
- number - The full number of the section, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>section.xref</msgid>
- <msgstr>Section <number/> ― <title/></msgstr>
- </_msg>
-</msgset>
-
-<!-- == seeie == -->
-<msgset>
- <msgid>seeie.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- seeie - A “See” entry in an index, rather than in the text
- http://www.docbook.org/tdg/en/html/seeie.html
-
- This is a format message used to format index cross references.
- This format message controls the sentence used to present the cross
- reference, not the link itself.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- seeie - The actual link or links of the cross reference
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the seeie, simply write left angle bracket, seeie, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>seeie.format</msgid>
- <msgstr>See <seeie/>.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == seealsoie == -->
-<msgset>
- <msgid>seealsoie.format</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- seealsoie - A “See also” entry in an index, rather than in the text
- http://www.docbook.org/tdg/en/html/seealsoie.html
-
- This is a format message used to format index cross references.
- This format message controls the sentence used to present the cross
- reference, not the link itself.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- seeie - The actual link or links of the cross reference
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the seeie, simply write left angle bracket, seeie, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>seealsoie.format</msgid>
- <msgstr>See also <seeie/>.</msgstr>
- </_msg>
-</msgset>
-
-<!-- == synopfragment == -->
-<msgset>
- <msgid>synopfragment.digit</msgid>
- <!--
- The number formatter used for synopsis numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>synopfragment.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>synopfragment.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for command synopsis
- fragments, as well as cross references to them. See the following:
-
- http://www.docbook.org/tdg/en/html/synopfragment.html
- http://www.docbook.org/tdg/en/html/synopfragmentref.html
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- number - The number of the synopsis fragment, formatted according
- to the synopfragment.digit string
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the number, simply write left angle bracket, number, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>synopfragment.label</msgid>
- <msgstr>(<number/>)</msgstr>
- </_msg>
-</msgset>
-
-<!-- == table == -->
-<msgset>
- <msgid>table.digit</msgid>
- <!--
- The number formatter used for table numbers. This can be one of
- "1", "A", "a", "I", or "i", without the quotes. These formatters
- provide the following results:
-
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14
- A B C D E F G H I J K L M N
- a b c d e f g h i j k l m n
- I II III IV V VI VII VIII IX X XI XII XIII XIV
- i ii iii iv v vi vii viii ix x xi xii xiii xiv
-
- Non-Western languages probably need additional formatters. Please
- contact the maintainers about adding formatters for your language.
- -->
- <_msg>
- <msgid>table.digit</msgid>
- <msgstr>1</msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>table.label</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format labels for tables. Labels
- are used before the title in places like headers and table of contents
- listings. Multiple roles can be used to provide different formattings
- for different uses of labels. The following roles may be used with
- this format message:
-
- header - Used for labels in headers
- li - Used for labels in table of contents listings
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the table
- titleabbrev - The titleabbrev of the table, or just the title
- if no titleabbrev exists
- number - The full number of the table, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>table.label</msgid>
- <msgstr role='header'><i>Table <number/></i>&#x2003;</msgstr>
- <msgstr role='li'>Table <number/>&#x2002;</msgstr>
- <msgstr>Table <number/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>table.number</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format numbers for table. Numbers
- are used in labels, cross references, and any other place where the
- table might be referenced. The number for a table includes the
- number for its parent element, if applicable. For example, the number
- 4-3 indicates the third table in the fourth top-level chapter. In
- this table, 4 is referred to as the parent number, and 3 is referred
- to as the table digit. This format message constructs a full number
- from a parent number and a table digit.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- parent - The full number of the table's parent element
- digit - The number of the table in its parent element,
- not including any leading numbers from the parent
- element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the digit, simply write left angle bracket, digit, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>table.number</msgid>
- <msgstr><parent/>-<digit/></msgstr>
- </_msg>
-</msgset>
-<msgset>
- <msgid>table.xref</msgid>
- <!--
- This is a special format message. Please read the full translator
- documentation before translating this message. The documentation
- is maintained as part of the stylesheet documentation in DocBook.
- For your convenience, it has also been converted to an HTML file
- named STYLESHEETS.xml in the i18n directory.
-
- This is a format message used to format cross references to tables.
- Multiple roles can be provided to allow document translators to select
- how to format each cross reference using the xrefstyle attribute. If
- your language needs to provide different cross reference formattings
- for different parts of speech, you should provide multiple roles for
- cross reference formatters.
-
- Special elements in the message will be replaced with the
- appropriate content, as follows:
-
- title - The title of the table
- titleabbrev - The titleabbrev of the table, or just the title
- if no titleabbrev exists
- number - The full number of the table, possibly including
- the number of the parent element
-
- These should be written as empty XML elements. Due to limitations
- in intltool, I can't write XML content in translator comments. To
- insert the title, simply write left angle bracket, title, slash,
- right angle bracket.
-
- Additionally, format messages can use the i, b, and tt markup tags
- to mark text as italic, bold, and monospace.
- -->
- <_msg>
- <msgid>table.xref</msgid>
- <msgstr>Table <number/></msgstr>
- </_msg>
-</msgset>
-
-<!-- Mallard specific strings -->
-
-<msgset>
- <msgid>Further Reading</msgid>
- <!-- Automatic further reading section and links -->
- <_msg>Further Reading</_msg>
-</msgset>
-<msgset>
- <msgid>More About</msgid>
- <!-- Automatic more about section and links -->
- <_msg>More About</_msg>
-</msgset>
-<msgset>
- <msgid>See Also</msgid>
- <!-- Automatic see also section and links -->
- <_msg>See Also</_msg>
-</msgset>
-<msgset>
- <msgid>Stub</msgid>
- <!--
- This is used as a description for the status of the document.
- This will not be visibile to the users.
-
- Stub: the document has little or basic content, it may have been
- created by developers in order to have it included in the build.
- -->
- <_msg>Stub</_msg>
-</msgset>
-<msgset>
- <msgid>Incomplete</msgid>
- <!--
- This is used as a description for the status of the document.
- This will not be visibile to the users.
-
- Incomplete: the document has the basic structure in place, but the
- authors have not yet written all the content.
- -->
- <_msg>Incomplete</_msg>
-</msgset>
-<msgset>
- <msgid>Draft</msgid>
- <!--
- This is used as a description for the status of the document.
- This will not be visibile to the users.
-
- Draft: the authors have written all the content, but they still need
- to clean up the language or markup.
- -->
- <_msg>Draft</_msg>
-</msgset>
-<msgset>
- <msgid>Ready for review</msgid>
- <!--
- This is used as a description for the status of the document.
- This will not be visibile to the users.
-
- Review: the authors consider the document complete.
- -->
- <_msg>Ready for review</_msg>
-</msgset>
-<msgset>
- <msgid>Final</msgid>
- <!--
- This is used as a description for the status of the document.
- This will not be visibile to the users.
-
- Final: a senior member of the documentation team has reviewd the
- document and approved it.
- -->
- <_msg>Final</_msg>
-</msgset>
-
-</l10n>
diff --git a/xslt/mallard/Makefile.am b/xslt/mallard/Makefile.am
deleted file mode 100644
index 895e009..0000000
--- a/xslt/mallard/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = cache common html
diff --git a/xslt/mallard/cache/Makefile.am b/xslt/mallard/cache/Makefile.am
deleted file mode 100644
index 8da433d..0000000
--- a/xslt/mallard/cache/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/mallard/cache
-
-xsl_DATA = mal-cache.xsl
-
-EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/mallard/cache/mal-cache.xsl b/xslt/mallard/cache/mal-cache.xsl
deleted file mode 100644
index 3357909..0000000
--- a/xslt/mallard/cache/mal-cache.xsl
+++ /dev/null
@@ -1,192 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
- xmlns:mal='http://projectmallard.org/1.0/'
- xmlns:cache='http://projectmallard.org/cache/1.0/'
- xmlns='http://projectmallard.org/1.0/'
- version='1.0'>
-
-<!--!!==========================================================================
-Mallard Cache Files
-Generate Mallard cache files from cache input files.
-
-FIXME
--->
-
-<xsl:output omit-xml-declaration="yes"/>
-
-<xsl:include href="../common/mal-link.xsl"/>
-
-
-<!--**==========================================================================
-mal.cache.id
--->
-<xsl:template name="mal.cache.id">
- <xsl:param name="node" select="."/>
- <xsl:param name="node_in"/>
- <xsl:attribute name="id">
- <xsl:call-template name="mal.link.linkid">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:attribute>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.cache.xref
--->
-<xsl:template name="mal.cache.xref">
- <xsl:param name="node" select="."/>
- <xsl:param name="node_in"/>
- <xsl:attribute name="xref">
- <xsl:value-of select="$node/@xref"/>
- </xsl:attribute>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.cache.groups
--->
-<xsl:template name="mal.cache.groups">
- <xsl:param name="node" select="."/>
- <xsl:param name="node_in"/>
- <xsl:attribute name="groups">
- <xsl:value-of select="$node/@groups"/>
- <xsl:if test="not(contains(concat(' ', $node/@groups, ' '), ' #default '))">
- <xsl:text> #default</xsl:text>
- </xsl:if>
- </xsl:attribute>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.cache.info
--->
-<xsl:template name="mal.cache.info">
- <xsl:param name="node" select="."/>
- <xsl:param name="info" select="$node/mal:info"/>
- <xsl:param name="node_in"/>
- <info>
- <xsl:if test="not($info/mal:title[@type = 'link'])">
- <title type="link">
- <xsl:copy-of select="$node/mal:title/node()"/>
- </title>
- </xsl:if>
- <xsl:if test="not($info/mal:title[@type = 'sort'])">
- <title type="sort">
- <xsl:choose>
- <xsl:when test="$info/mal:title[@type = 'link']">
- <xsl:copy-of select="$info/mal:title[@type = 'link'][1]/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$node/mal:title/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </title>
- </xsl:if>
- <xsl:for-each select="$info/*">
- <xsl:choose>
- <xsl:when test="self::mal:link">
- <link>
- <xsl:call-template name="mal.cache.xref">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:if test="@type = 'guide' and not(@weight)">
- <xsl:attribute name="weight">
- <xsl:text>0</xsl:text>
- </xsl:attribute>
- </xsl:if>
- <xsl:for-each select="attribute::*[not(name(.) = 'xref')] | *">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- </link>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </info>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = /cache:cache = -->
-<xsl:template match='/cache:cache'>
- <cache:cache>
- <xsl:for-each select="mal:page">
- <xsl:apply-templates select="document(@cache:href)/*">
- <xsl:with-param name="node_in" select="."/>
- </xsl:apply-templates>
- </xsl:for-each>
- </cache:cache>
-</xsl:template>
-
-<!-- = mal:page = -->
-<xsl:template match="mal:page">
- <xsl:param name="node_in"/>
- <page cache:href="{$node_in/@cache:href}">
- <xsl:call-template name="mal.cache.id">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:call-template name="mal.cache.groups">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:if test="@type">
- <xsl:attribute name="type">
- <xsl:value-of select="@type"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:call-template name="mal.cache.info">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:apply-templates>
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:apply-templates>
- </page>
-</xsl:template>
-
-<!-- = mal:section = -->
-<xsl:template match="mal:section">
- <xsl:param name="node_in"/>
- <section>
- <xsl:call-template name="mal.cache.id">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:call-template name="mal.cache.groups">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:call-template name="mal.cache.info">
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:call-template>
- <xsl:apply-templates>
- <xsl:with-param name="node_in" select="$node_in"/>
- </xsl:apply-templates>
- </section>
-</xsl:template>
-
-<!-- = mal:title = -->
-<xsl:template match="mal:title">
- <xsl:copy-of select="."/>
-</xsl:template>
-
-<xsl:template match="node() | text()"/>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/common/Makefile.am b/xslt/mallard/common/Makefile.am
deleted file mode 100644
index 9501408..0000000
--- a/xslt/mallard/common/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/mallard/common
-
-xsl_DATA = mal-chunk.xsl mal-link.xsl
-
-EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/mallard/common/mal-chunk.xsl b/xslt/mallard/common/mal-chunk.xsl
deleted file mode 100644
index 10265ff..0000000
--- a/xslt/mallard/common/mal-chunk.xsl
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- extension-element-prefixes="exsl"
- version="1.0">
-
-<!--!!==========================================================================
-Chunking
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-mal.chunk.chunk_top
-Whether the top-level page should be output with the chunking mechanism
-
-REMARK: Describe what this does
--->
-<xsl:param name="mal.chunk.chunk_top" select="false()"/>
-
-
-<!--@@==========================================================================
-mal.chunk.extension
-The default file extension for new output documents
-
-REMARK: Describe what this does
--->
-<xsl:param name="mal.chunk.extension"/>
-
-
-<!--@@==========================================================================
-mal.chunk.doctype_public
-The public DOCTYPE for output files
-
-REMARK: Describe this
--->
-<xsl:param name="mal.chunk.doctype_public"/>
-
-
-<!--@@==========================================================================
-mal.chunk.doctype_system
-The system DOCTYPE for output files
-
-REMARK: Describe this
--->
-<xsl:param name="mal.chunk.doctype_system"/>
-
-
-<!--**==========================================================================
-mal.chunk
-Creates a new page of output
-$node: The source element for the output page
-$href: The name of the file for the output page
-
-REMARK: Describe
--->
-<xsl:template name="mal.chunk">
- <xsl:param name="node" select="."/>
- <xsl:param name="href" select="concat($node/@id, $mal.chunk.extension)"/>
- <exsl:document href="{$href}"
- doctype-public="{$mal.chunk.doctype_public}"
- doctype-system="{$mal.chunk.doctype_system}">
- <xsl:apply-templates mode="mal.chunk.content.mode" select="$node"/>
- </exsl:document>
-</xsl:template>
-
-<!--%%==========================================================================
-mal.chunk.content.mode
-FIXME
-
-FIXME
--->
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl
deleted file mode 100644
index 2f8fb95..0000000
--- a/xslt/mallard/common/mal-link.xsl
+++ /dev/null
@@ -1,570 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cache="http://projectmallard.org/cache/1.0/"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns:exsl="http://exslt.org/common"
- xmlns:str="http://exslt.org/strings"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard Links
-Common linking utilities for Mallard documents.
-:Revision:version="1.0" date="2010-01-02"
-
-This stylesheets contains various utilities for handling links in Mallard
-documents. The templates in this stylesheet make it easier to handle the
-different linking mechanisms in Mallard, including the dynamic automatic
-linking systems.
--->
-
-
-<!--@@==========================================================================
-mal.cache.file
-The location of the cache file.
-:Revision:version="1.0" date="2010-01-02"
-
-In order to locate and process links between pages, this stylesheet requires
-a Mallard cache file. Use this parameter to pass the path to a valid cache
-file.
--->
-<xsl:param name="mal.cache.file"/>
-
-
-<!--@@==========================================================================
-mal.cache
-The cache document as a node set.
-:Revision:version="1.0" date="2010-01-02"
-
-This parameter points to the root #{cache:cache} element of a Mallard cache
-document. By default, it selects the root element from the file provided in
-@{mal.cache.file}.
-
-Some processing tools may create a Mallard cache document without outputting
-it to a file. Those tools can use this parameter directly.
--->
-<xsl:param name="mal.cache" select="document($mal.cache.file)/cache:cache"/>
-
-
-<!--============================================================================
-mal.cache.key
--->
-<xsl:key name="mal.cache.key" match="mal:page | mal:section" use="@id"/>
-<xsl:key name="mal.cache.link.key"
- match="mal:info/mal:link[@type]"
- use="concat(@type, ':', @xref)"/>
-
-
-<!--@@==========================================================================
-mal.link.default_root
-The default root ID.
-
-This parameter provides the default ID for the page that is taken to be the
-root of the document. By default, #{'index'} is used. This should not be
-changed for normal Mallard documents. It may be necessary to change it for
-some Mallard extension formats.
--->
-<xsl:param name="mal.link.default_root" select="'index'"/>
-
-
-<!--**==========================================================================
-mal.link.linkid
-Output the fully qualified link ID for a page or section.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{page} or #{section} element to generate a link ID for.
-
-This template outputs the fully qualified link ID for a page or section. For
-#{page} elements, the link ID is identical to the ID. For #{section} elements,
-however, the link ID is the containing page ID and the section ID, joined with
-the #{#} character.
-
-The link ID is used in Mallard cache files to ensure all #{id} attributes are
-unique. All of the templates in this stylesheet that use a link ID use this
-template or *{mal.link.xref.linkid}.
--->
-<xsl:template name="mal.link.linkid">
- <xsl:param name="node" select="."/>
- <xsl:choose>
- <xsl:when test="contains($node/@id, '#')">
- <xsl:value-of select="$node/@id"/>
- </xsl:when>
- <xsl:when test="$node/self::mal:section">
- <xsl:value-of select="concat($node/ancestor::mal:page[1]/@id, '#', $node/@id)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$node/@id"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.xref.linkid
-Output the fully qualified link ID for an #{xref} attribute.
-:Revision:version="1.0" date="2010-01-02"
-$node: The element containing an #{xref} attribute.
-$xref: The #{xref} value to generate a link ID from.
-
-This template outputs the fully qualified link ID for an #{xref} attribute.
-This may simply be ${xref}, but if ${xref} starts with the #{#} character, it
-is prefixed with the ID of the page that contains ${node}.
-
-See *{mal.link.linkid} for more on link IDs.
--->
-<xsl:template name="mal.link.xref.linkid">
- <xsl:param name="node" select="."/>
- <xsl:param name="xref" select="$node/@xref"/>
- <xsl:if test="starts-with($xref, '#')">
- <xsl:value-of select="$node/ancestor-or-self::mal:page/@id"/>
- </xsl:if>
- <xsl:value-of select="$xref"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.content
-Output the content for a #{link} element.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{link} or other element creating the link.
-$xref: The #{xref} attribute of ${node}.
-$href: The #{href} attribute of ${node}.
-$role: A link role, used to select the appropriate title.
-
-This template outputs the automatic text content for a link. It should only
-be used for links that do not have specified content. If ${xref} points to a
-valid page or section, the appropriate link title from that page or section
-will be selected, based on ${role}. The %{mal.link.content.mode} mode will
-be applied to the contents of that title. Stylesheets using this template
-should map that mode to inline processing.
-
-If only ${href} is provided, that URL is used as the text content. If a target
-page or section cannot be found, ${xref} is used as the text content.
--->
-<xsl:template name="mal.link.content">
- <xsl:param name="node" select="."/>
- <xsl:param name="xref" select="$node/@xref"/>
- <xsl:param name="href" select="$node/@href"/>
- <xsl:param name="role" select="''"/>
- <xsl:variable name="linkid">
- <xsl:call-template name="mal.link.xref.linkid">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="xref" select="$xref"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:for-each select="$mal.cache">
- <xsl:variable name="target" select="key('mal.cache.key', $linkid)"/>
- <xsl:choose>
- <xsl:when test="$target">
- <xsl:variable name="titles" select="$target/mal:info/mal:title[@type = 'link']"/>
- <xsl:choose>
- <xsl:when test="$role != '' and $titles[@role = $role]">
- <xsl:apply-templates mode="mal.link.content.mode"
- select="$titles[@role = $role][1]/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal.link.content.mode"
- select="$titles[not(@role)][1]/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$href">
- <xsl:value-of select="$href"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$xref"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--%%==========================================================================
-mal.link.content.mode
-Output the content for a link from the contents of a #{title} element.
-:Revision:version="1.0" date="2010-01-02"
-
-This mode is applied to the contents of a #{title} element by *{mal.link.content}.
-By default, it returns the string value of its input. Stylesheets that use
-*{mal.link.content} should map this mode to inline processing.
--->
-<xsl:template mode="mal.link.content.mode" match="* | text()">
- <xsl:value-of select="."/>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.target
-Output the target URL for a #{link} or other linking element.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{link} or other element creating the link.
-$xref: The #{xref} attribute of ${node}.
-$href: The #{href} attribute of ${node}.
-
-This template outputs a URL for a #{link} element or another element using
-linking attributes. If ${xref} points to a valid page or section, it uses
-a file name based on the ID of the target page plus @{mal.chunk.extension}.
-Otherwise, the link will point to ${href}.
--->
-<xsl:template name="mal.link.target">
- <xsl:param name="node" select="."/>
- <xsl:param name="xref" select="$node/@xref"/>
- <xsl:param name="href" select="$node/@href"/>
- <xsl:choose>
- <xsl:when test="string($xref) = ''">
- <xsl:value-of select="$href"/>
- </xsl:when>
- <xsl:when test="contains($xref, '/') or contains($xref, ':')">
- <!--
- This is a link to another document, which we don't handle in these
- stylesheets. Extensions such as library or yelp should override
- this template to provide this functionality.
- -->
- <xsl:value-of select="$href"/>
- </xsl:when>
- <xsl:when test="contains($xref, '#')">
- <xsl:variable name="pageid" select="substring-before($xref, '#')"/>
- <xsl:variable name="sectionid" select="substring-after($xref, '#')"/>
- <xsl:if test="$pageid != ''">
- <xsl:value-of select="concat($pageid, $mal.chunk.extension)"/>
- </xsl:if>
- <xsl:value-of select="concat('#', $sectionid)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($xref, $mal.chunk.extension)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.tooltip
-Output the tooltip for a #{link} or other linking element.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{link} or other element creating the link.
-$xref: The #{xref} attribute of ${node}.
-$href: The #{href} attribute of ${node}.
-
-This template outputs a tooltip for a link. Currently, it only outputs a
-tooltip for #{mailto:} URLs in ${href}.
--->
-<xsl:template name="mal.link.tooltip">
- <xsl:param name="node" select="."/>
- <xsl:param name="xref" select="$node/@xref"/>
- <xsl:param name="href" select="$node/@href"/>
- <xsl:choose>
- <xsl:when test="string($xref) != ''">
- <!-- FIXME and make sure to update the docs -->
- </xsl:when>
- <xsl:when test="starts-with($href, 'mailto:')">
- <xsl:variable name="address" select="substring-after($href, 'mailto:')"/>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'email.tooltip'"/>
- <xsl:with-param name="string" select="$address"/>
- <xsl:with-param name="format" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="normalize-space($href)"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.guidelinks
-Output the guide links for a page or section.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{page} or #{section} element to generate links for.
-
-This template outputs all the guide links for a page or section, whether
-declared as guide links in the page or section or as topic links from another
-guide page. It outputs each of the links as a #{link} element within the
-Mallard namespace. Each #{link} element has an #{xref} attribute pointing
-to the target page or section.
-
-Each #{link} element contains a #{title} with #{type="sort"} providing the
-sort title of the target page or section. The results are not sorted when
-returned from this template. Use #{xsl:sort} on the sort titles to sort
-the results.
-
-The output is a result tree fragment. To use these results, call
-#{exsl:node-set} on them.
--->
-<xsl:template name="mal.link.guidelinks">
- <xsl:param name="node" select="."/>
- <xsl:variable name="linkid">
- <xsl:call-template name="mal.link.linkid">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:for-each select="$node/mal:info/mal:link[@type = 'guide']">
- <xsl:variable name="linklinkid">
- <xsl:call-template name="mal.link.xref.linkid"/>
- </xsl:variable>
- <mal:link xref="{$linklinkid}">
- <mal:title type="sort">
- <xsl:for-each select="$mal.cache">
- <xsl:value-of select="key('mal.cache.key', $linklinkid)/mal:info/mal:title[@type = 'sort'][1]"/>
- </xsl:for-each>
- </mal:title>
- </mal:link>
- </xsl:for-each>
- <xsl:for-each select="$mal.cache//*[mal:info/mal:link[@type = 'topic'][@xref = $linkid]]">
- <xsl:variable name="linklinkid">
- <xsl:call-template name="mal.link.linkid"/>
- </xsl:variable>
- <xsl:if test="not($node/mal:info/mal:link[@type = 'guide'][@xref = $linklinkid])">
- <mal:link xref="{$linklinkid}">
- <mal:title type="sort">
- <xsl:value-of select="mal:info/mal:title[@type = 'sort'][1]"/>
- </mal:title>
- </mal:link>
- </xsl:if>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.topiclinks
-Output the topic links for a page or section.
-:Revision:version="1.0" date="2010-01-02"
-$node: The #{page} or #{section} element to generate links for.
-
-This template outputs all the topic links for a guide page or section, whether
-declared as topic links in the page or section or as guide links from another
-page or section. It outputs each of the links as a #{link} element within the
-Mallard namespace. Each #{link} element has an #{xref} attribute pointing
-to the target page or section.
-
-Each #{link} element contains a #{title} with #{type="sort"} providing the
-sort title of the target page or section.
-
-Each #{link} element also contains a #{group} attribute. The #{group}
-attribute is normalized. It will either point to a link group declared
-in ${node}, or it will be set to #{#default}. Each #{link} element also
-contains a #{groupsort} attribute giving the numerical position of the
-#{group} attribute in the normalized group list for ${node}.
-
-The results are not sorted when returned from this template. Use #{xsl:sort}
-on the #{groupsort} attribute and the sort titles to sort the results.
-
-The output is a result tree fragment. To use these results, call
-#{exsl:node-set} on them.
--->
-<xsl:template name="mal.link.topiclinks">
- <xsl:param name="node" select="."/>
- <xsl:variable name="linkid">
- <xsl:call-template name="mal.link.linkid">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="groups">
- <xsl:value-of select="$node/@groups"/>
- <xsl:if test="not(contains(concat(' ', $node/@groups, ' '), ' #default '))">
- <xsl:text> #default</xsl:text>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="groupslist" select="str:split($groups)"/>
- <xsl:variable name="defaultpos">
- <xsl:for-each select="$groupslist">
- <xsl:if test="string(.) = '#default'">
- <xsl:value-of select="position()"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:for-each select="$node/mal:info/mal:link[@type = 'topic']">
- <xsl:variable name="xref">
- <xsl:call-template name="mal.link.xref.linkid"/>
- </xsl:variable>
- <xsl:variable name="link" select="."/>
- <xsl:variable name="grouppos">
- <xsl:if test="$link/@group">
- <xsl:for-each select="$groupslist">
- <xsl:if test="string(.) = $link/@group">
- <xsl:value-of select="position()"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="groupsort">
- <xsl:value-of select="$grouppos"/>
- <xsl:if test="string($grouppos) = ''">
- <xsl:value-of select="$defaultpos"/>
- </xsl:if>
- </xsl:variable>
- <mal:link xref="{$xref}">
- <xsl:attribute name="group">
- <xsl:value-of select="$groupslist[number($groupsort)]"/>
- </xsl:attribute>
- <xsl:attribute name="groupsort">
- <xsl:value-of select="$groupsort"/>
- </xsl:attribute>
- <mal:title type="sort">
- <xsl:for-each select="$mal.cache">
- <xsl:value-of select="key('mal.cache.key', $xref)/mal:info/mal:title[@type = 'sort'][1]"/>
- </xsl:for-each>
- </mal:title>
- </mal:link>
- </xsl:for-each>
- <xsl:for-each select="$mal.cache//mal:info/mal:link[@type = 'guide'][@xref = $linkid]">
- <xsl:variable name="source" select="../.."/>
- <xsl:variable name="xref">
- <xsl:call-template name="mal.link.xref.linkid">
- <xsl:with-param name="node" select="$source"/>
- <xsl:with-param name="xref" select="$source/@id"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="not($node/mal:info/mal:link[@type = 'topic'][@xref = $xref])">
- <xsl:variable name="link" select="."/>
- <xsl:variable name="grouppos">
- <xsl:if test="$link/@group">
- <xsl:for-each select="$groupslist">
- <xsl:if test="string(.) = $link/@group">
- <xsl:value-of select="position()"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="groupsort">
- <xsl:value-of select="$grouppos"/>
- <xsl:if test="string($grouppos) = ''">
- <xsl:value-of select="$defaultpos"/>
- </xsl:if>
- </xsl:variable>
- <mal:link xref="{$xref}">
- <xsl:attribute name="group">
- <xsl:value-of select="$groupslist[number($groupsort)]"/>
- </xsl:attribute>
- <xsl:attribute name="groupsort">
- <xsl:value-of select="$groupsort"/>
- </xsl:attribute>
- <mal:title type="sort">
- <xsl:value-of select="$source/mal:info/mal:title[@type = 'sort'][1]"/>
- </mal:title>
- </mal:link>
- </xsl:if>
- </xsl:for-each>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal.link.linktrails
-Output link trails for a page or section.
-$node: The #{page} or #{section} element to generate links for.
-$trail: The link trail leading to ${node}.
-$root: The ID of the root page.
-
-This template outputs lists of links, where each list is a path of topic links
-that leads to ${node}. Each link list is output as a #{link} element in the
-Mallard namespace with an #{xref} attribute pointing to the target page or
-section. Each #{link} has a #{title} element with #{type="sort"} providing
-the sort title of the target page or section.
-
-Each #{link} element may also contain another #{link} element providing the
-next link in the trail. Each of these links also contains a sort titles and
-may also contain another link.
-
-The results are not sorted when returned from this template. Use #{xsl:sort}
-on the nested sort titles to sort the results. The output is a result tree
-fragment. To use these results, call #{exsl:node-set} on them.
-
-This template calls itself recursively. It finds the guide links for ${node}
-using *{mal.link.guidelinks}. It then calls *{mal.link.linktrails} on each
-guide, wrapping ${trail} with a link to the guide as the new ${trail} parameter.
-
-If there are no guide links for ${node} and ${node} is a #{section} element,
-this template calls itself on the containing page, wrapping ${trails} with a
-link to that page. This #{link} element has the attribute #{child="section"}
-to indicate the link from it to its child is not a topic link.
-
-Recursion stops when the ID of ${node} is ${root}. Link trails are only
-output if they reach ${root}.
--->
-<!--
-FIXME:
-* Terminate at $root
-* Only output if we reach $root
-* Cycle detection
--->
-<xsl:template name="mal.link.linktrails">
- <xsl:param name="node" select="."/>
- <xsl:param name="trail" select="/false"/>
- <xsl:param name="root" select="$mal.link.default_root"/>
- <xsl:variable name="guidelinks">
- <xsl:call-template name="mal.link.guidelinks">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="guidenodes" select="exsl:node-set($guidelinks)/*"/>
- <xsl:choose>
- <xsl:when test="count($guidenodes) = 0">
- <xsl:choose>
- <xsl:when test="$node/self::mal:section">
- <xsl:variable name="page" select="$node/ancestor::mal:page"/>
- <xsl:call-template name="mal.link.linktrails">
- <xsl:with-param name="node" select="$page"/>
- <xsl:with-param name="trail">
- <mal:link xref="{$page/@id}" child="section">
- <xsl:copy-of select="$page/mal:info/mal:title[@type='sort']"/>
- <xsl:copy-of select="$trail"/>
- </mal:link>
- </xsl:with-param>
- <xsl:with-param name="root" select="$root"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$trail"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$guidenodes">
- <xsl:variable name="self" select="."/>
- <xsl:choose>
- <xsl:when test="$self/@xref = $root">
- <mal:link xref="{$self/@xref}">
- <xsl:copy-of select="$self/mal:title"/>
- <xsl:copy-of select="$trail"/>
- </mal:link>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$mal.cache">
- <xsl:call-template name="mal.link.linktrails">
- <xsl:with-param name="node" select="key('mal.cache.key', $self/@xref)"/>
- <xsl:with-param name="trail">
- <mal:link xref="{$self/@xref}">
- <xsl:copy-of select="$self/mal:title"/>
- <xsl:copy-of select="$trail"/>
- </mal:link>
- </xsl:with-param>
- <xsl:with-param name="root" select="$root"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/Makefile.am b/xslt/mallard/html/Makefile.am
deleted file mode 100644
index 2ac76a7..0000000
--- a/xslt/mallard/html/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-xsldir=$(datadir)/xml/gnome/xslt/mallard/html
-
-xsl_DATA = \
- mal2html-block.xsl \
- mal2html-css.xsl \
- mal2html-inline.xsl \
- mal2html-list.xsl \
- mal2html-media.xsl \
- mal2html-page.xsl \
- mal2html-table.xsl \
- mal2html.xsl \
- mal2xhtml.xsl
-
-EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl
deleted file mode 100644
index 3ca00ce..0000000
--- a/xslt/mallard/html/mal2html-block.xsl
+++ /dev/null
@@ -1,366 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - Block Elements
-
-REMARK: Describe this module
--->
-
-
-<!--**==========================================================================
-mal2html.pre
-
-FIXME
--->
-<xsl:template name="mal2html.pre">
- <xsl:param name="node" select="."/>
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:variable name="first" select="$node/node()[1]/self::text()"/>
- <xsl:variable name="last" select="$node/node()[last()]/self::text()"/>
- <pre>
- <xsl:attribute name="class">
- <xsl:value-of select="local-name($node)"/>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:if test="$first">
- <xsl:call-template name="utils.strip_newlines">
- <xsl:with-param name="string" select="$first"/>
- <xsl:with-param name="leading" select="true()"/>
- <xsl:with-param name="trailing" select="count(node()) = 1"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:apply-templates mode="mal2html.inline.mode"
- select="node()[not(self::text() and (position() = 1 or position() = last()))]"/>
- <xsl:if test="$last and (count(node()) != 1)">
- <xsl:call-template name="utils.strip_newlines">
- <xsl:with-param name="string" select="$last"/>
- <xsl:with-param name="leading" select="false()"/>
- <xsl:with-param name="trailing" select="true()"/>
- </xsl:call-template>
- </xsl:if>
- </pre>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!--%%==========================================================================
-mal2html.block.mode
-FIXME
-
-FIXME
--->
-
-<!-- = desc = -->
-<xsl:template mode="mal2html.block.mode" match="mal:desc">
- <div class="desc desc-{local-name(..)}">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </div>
-</xsl:template>
-
-<!-- = code = -->
-<xsl:template mode="mal2html.block.mode" match="mal:code">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:call-template name="mal2html.pre">
- <xsl:with-param name="first_child" select="$first_child"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = comment = -->
-<xsl:template mode="mal2html.block.mode" match="mal:comment">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:if test="$mal2html.editor_mode
- or processing-instruction('mal2html.show_comment')">
- <div>
- <xsl:attribute name="class">
- <xsl:text>comment</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:cite"/>
- <xsl:for-each select="mal:*[not(self::mal:title or self::mal:cite)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
- </xsl:if>
-</xsl:template>
-
-<!-- = comment/cite = -->
-<xsl:template mode="mal2html.block.mode" match="mal:comment/mal:cite">
- <div class="cite cite-comment">
- <!-- FIXME: i18n -->
- <xsl:text>from </xsl:text>
- <xsl:choose>
- <xsl:when test="@href">
- <a href="{@href}">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="@date">
- <xsl:text> on </xsl:text>
- <xsl:value-of select="@date"/>
- </xsl:if>
- </div>
-</xsl:template>
-
-<!-- = example = -->
-<xsl:template mode="mal2html.block.mode" match="mal:example">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>example</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:for-each select="mal:*[$mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment')]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
-</xsl:template>
-
-<!-- = figure = -->
-<xsl:template mode="mal2html.block.mode" match="mal:figure">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>figure</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="figure-contents">
- <xsl:for-each select="mal:*[not(self::mal:title or self::mal:desc)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:desc"/>
- </div>
-</xsl:template>
-
-<!-- = listing = -->
-<xsl:template mode="mal2html.block.mode" match="mal:listing">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>listing</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:desc"/>
- <div class="listing-contents">
- <xsl:for-each select="mal:*[not(self::mal:title or self::mal:desc)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
- </div>
-</xsl:template>
-
-<!-- = note = -->
-<xsl:template mode="mal2html.block.mode" match="mal:note">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:variable name="notestyle">
- <xsl:choose>
- <xsl:when test="contains(concat(' ', @style, ' '), ' advanced ')">
- <xsl:text>advanced</xsl:text>
- </xsl:when>
- <xsl:when test="contains(concat(' ', @style, ' '), ' bug ')">
- <xsl:text>bug</xsl:text>
- </xsl:when>
- <xsl:when test="contains(concat(' ', @style, ' '), ' important ')">
- <xsl:text>important</xsl:text>
- </xsl:when>
- <xsl:when test="contains(concat(' ', @style, ' '), ' tip ')">
- <xsl:text>tip</xsl:text>
- </xsl:when>
- <xsl:when test="contains(concat(' ', @style, ' '), ' warning ')">
- <xsl:text>warning</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <div>
- <xsl:attribute name="class">
- <xsl:text>note</xsl:text>
- <xsl:if test="normalize-space($notestyle) != ''">
- <xsl:value-of select="concat(' note-', $notestyle)"/>
- </xsl:if>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <div class="note-inner">
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="note-contents">
- <xsl:for-each select="mal:*[not(self::mal:title)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
- </div>
- </div>
-</xsl:template>
-
-<!-- = info = -->
-<xsl:template mode="mal2html.block.mode" match="mal:info"/>
-
-<!-- = p = -->
-<xsl:template mode="mal2html.block.mode" match="mal:p">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <p>
- <xsl:attribute name="class">
- <xsl:text>p</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </p>
-</xsl:template>
-
-<!-- = quote = -->
-<xsl:template mode="mal2html.block.mode" match="mal:quote">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div class="quote">
- <xsl:attribute name="class">
- <xsl:text>quote</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="quote-inner">
- <blockquote class="quote-contents">
- <xsl:for-each select="mal:*[not(self::mal:title or self::mal:cite)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </blockquote>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:cite"/>
- </div>
- </div>
-</xsl:template>
-
-<!-- = quote/cite = -->
-<xsl:template mode="mal2html.block.mode" match="mal:quote/mal:cite">
- <div class="cite cite-quote">
- <xsl:choose>
- <xsl:when test="@href">
- <a href="{@href}">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- FIXME: i18n -->
- <xsl:if test="@date">
- <xsl:text> (</xsl:text>
- <xsl:value-of select="@date"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </div>
-</xsl:template>
-
-<!-- = screen = -->
-<xsl:template mode="mal2html.block.mode" match="mal:screen">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:call-template name="mal2html.pre">
- <xsl:with-param name="first_child" select="$first_child"/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = synopsis = -->
-<xsl:template mode="mal2html.block.mode" match="mal:synopsis">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div class="synopsis">
- <xsl:attribute name="class">
- <xsl:text>synopsis</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:desc"/>
- <div class="synopsis-contents">
- <xsl:for-each select="mal:*[not(self::mal:title or self::mal:desc)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </div>
- </div>
-</xsl:template>
-
-<!-- = title = -->
-<xsl:template mode="mal2html.block.mode" match="mal:title">
- <div class="title title-{local-name(..)}">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </div>
-</xsl:template>
-
-<!-- FIXME -->
-<xsl:template mode="mal2html.block.mode" match="*">
- <xsl:message>
- <xsl:text>Unmatched block element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-css.xsl b/xslt/mallard/html/mal2html-css.xsl
deleted file mode 100644
index f1e016d..0000000
--- a/xslt/mallard/html/mal2html-css.xsl
+++ /dev/null
@@ -1,560 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns="http://www.w3.org/1999/xhtml"
- extension-element-prefixes="exsl"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - CSS
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-mal2html.css.file
-The file to output CSS to
-
-This parameter allows you to output the CSS to separate file which is referenced
-by each HTML file. If this parameter is blank, then the CSS is embedded inside
-a #{style} tag in the HTML instead.
--->
-<xsl:param name="mal2html.css.file" select="''"/>
-
-
-<!--**==========================================================================
-mal2html.css
-Outputs the CSS that controls the appearance of the entire document
-$css_file: Whether to create a CSS file when @{mal2html.css.file} is set.
-
-This template outputs a #{style} or #{link} tag and calls *{mal2html.css.content}
-to output the actual CSS directives. An external CSS file will only be created
-when ${css_file} is true.
--->
-<xsl:template name="mal2html.css">
- <xsl:param name="css_file" select="false()"/>
- <xsl:choose>
- <xsl:when test="$mal2html.css.file != ''">
- <xsl:if test="$css_file">
- <exsl:document href="{$mal2html.css.file}" method="text">
- <xsl:call-template name="mal2html.css.content"/>
- </exsl:document>
- </xsl:if>
- <link rel="stylesheet" type="text/css" href="{$mal2html.css.file}"/>
- </xsl:when>
- <xsl:otherwise>
- <style type="text/css">
- <xsl:call-template name="mal2html.css.content"/>
- </style>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.css.content
-Outputs the actual CSS directives
-
-This template is called by *{mal2html.css} to output CSS content. It also calls
-templates from other modules to output CSS specific to the content addressed in
-those modules.
-
-This template calls *{mal2html.css.custom} at the end. That template may be used
-by extension stylesheets to extend or override the CSS.
--->
-<xsl:template name="mal2html.css.content">
- <xsl:variable name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:variable>
- <xsl:variable name="left">
- <xsl:call-template name="l10n.align.start">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="right">
- <xsl:call-template name="l10n.align.end">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:text>
-html { height: 100%; }
-body {
- margin: 0px;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- padding: 12px;
- min-height: 100%;
- direction: </xsl:text><xsl:value-of select="$direction"/><xsl:text>;
-}
-ul, ol, dl, dd { margin: 0; }
-div, pre, p, li, dt { margin: 1em 0 0 0; padding: 0; }
-.first-child { margin-top: 0; }
-li.condensed { margin-top: 0.2em; }
-a {
- text-decoration: none;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.link"/><xsl:text>;
-}
-a:visited {
- color: </xsl:text>
- <xsl:value-of select="$theme.color.link_visited"/><xsl:text>;
-}
-a:hover { text-decoration: underline; }
-
-div.headbar {
- margin: 0;
- max-width: 48em;
-}
-div.footbar {
- margin: 0;
- max-width: 48em;
-}
-div.body {
- margin: 0;
- padding: 1em;
- max-width: 48em;
- min-height: 20em;
- -moz-border-radius: 6px;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.background"/><xsl:text>;
-}
-div.navbar {
- margin: 0;
- float: right;
-}
-a.navbar-prev::before {
- content: '</xsl:text><xsl:choose>
- <xsl:when test="$left = 'left'"><xsl:text>&#x25C0;&#x00A0;&#x00A0;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text>&#x25B6;&#x00A0;&#x00A0;</xsl:text></xsl:otherwise>
- </xsl:choose><xsl:text>';
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-a.navbar-next::after {
- content: '</xsl:text><xsl:choose>
- <xsl:when test="$left = 'left'"><xsl:text>&#x00A0;&#x00A0;&#x25B6;</xsl:text></xsl:when>
- <xsl:otherwise><xsl:text>&#x00A0;&#x00A0;&#x25C0;</xsl:text></xsl:otherwise>
- </xsl:choose><xsl:text>';
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.copyrights {
- text-align: center;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.section { margin-top: 2.4em; clear: both; }
-div.section div.section {
- margin-top: 1.72em;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
-}
-div.section div.section div.section { margin-top: 1.44em; }
-div.header {
- margin: 0;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- border-bottom: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-h1 {
- font-size: 1.44em;
- margin: 0;
-}
-h2, h3, h4, h5, h6, h7 {
- font-size: 1.2em;
- margin: 0;
-}
-table { border-collapse: collapse; }
-
-div.autolinks ul { margin: 0; padding: 0; }
-div.autolinks div.title { margin: 1em 0 0 1em; }
-div.autolinks div.title span {
- border-bottom: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-li.autolink { margin: 0.5em 0 0 0; padding: 0 0 0 1em; list-style-type: none; }
-
-div.linktrails {
- margin: 0;
-}
-div.linktrail {
- font-size: 0.83em;
- margin: 0 1px 0.2em 1px;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.2em;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-
-table.twocolumn { width: 100%; }
-td.twocolumnleft { width: 48%; vertical-align: top; padding: 0; margin: 0; }
-td.twocolumnright {
- width: 52%; vertical-align: top;
- margin: 0; padding: 0;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
-}
-
-div.linkdiv div.title {
- font-size: 1em;
- color: inherit;
-}
-div.linkdiv {
- margin: 0;
- padding: 0.5em;
- -moz-border-radius: 6px;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.background"/><xsl:text>;
-}
-div.linkdiv:hover {
- border-color: </xsl:text>
- <xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.blue_background"/><xsl:text>;
-}
-div.linkdivsep {
- margin: 0.5em;
- list-style-type: none;
- max-width: 24em;
- border-bottom: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-
-div.title {
- margin: 0 0 0.2em 0;
- font-weight: bold;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.desc { margin: 0 0 0.2em 0; }
-div.desc-listing, div.desc-synopsis { font-style: italic; }
-div.desc-figure { margin: 0.2em 0 0 0; }
-pre.code {
- /* FIXME: In RTL locales, we really want to align this left, but the watermark
- * we have is designed to fit in the top right corner. Either we need a new
- * watermark, or we need a separate RTL version.
- */
- background: url('</xsl:text>
- <xsl:value-of select="$theme.watermark.code"/><xsl:text>') no-repeat top right;
- border: solid 2px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- padding: 0.5em 1em 0.5em 1em;
-}
-div.example {
- border-</xsl:text><xsl:value-of select="$left"/><xsl:text>: solid 4px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
-}
-div.figure {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
- padding: 4px;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
-}
-div.figure-contents {
- margin: 0;
- padding: 0.5em 1em 0.5em 1em;
- text-align: center;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text"/><xsl:text>;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.background"/><xsl:text>;
-}
-div.listing-contents { margin: 0; padding: 0; }
-div.note {
- padding: 0.5em 6px 0.5em 6px;
- border-top: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
- border-bottom: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
-}
-div.note-inner {
- margin: 0;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: </xsl:text>
- <xsl:value-of select="$theme.icon.admon.size + 12"/><xsl:text>px;
- background-position: </xsl:text><xsl:value-of select="$left"/><xsl:text> top;
- background-repeat: no-repeat;
- min-height: </xsl:text><xsl:value-of select="$theme.icon.admon.size"/><xsl:text>px;
- background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.note"/><xsl:text>");
-}
-div.note-advanced div.note-inner { <!-- background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.advanced"/><xsl:text>"); --> }
-div.note-bug div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.bug"/><xsl:text>"); }
-div.note-important div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.important"/><xsl:text>"); }
-div.note-tip div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.tip"/><xsl:text>"); }
-div.note-warning div.note-inner { background-image: url("</xsl:text>
- <xsl:value-of select="$theme.icon.admon.warning"/><xsl:text>"); }
-div.note-contents { margin: 0; padding: 0; }
-div.quote-inner {
- margin: 0;
- background-image: url('</xsl:text>
- <xsl:value-of select="$theme.watermark.blockquote"/><xsl:text>');
- background-repeat: no-repeat;
- background-position: top </xsl:text><xsl:value-of select="$left"/><xsl:text>;
- padding: 0.5em;
- padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 4em;
-}
-div.title-quote {
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 4em;
-}
-blockquote { margin: 0; padding: 0; }
-div.cite-comment {
- margin-top: 0.5em;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.cite-quote {
- margin-top: 0.5em;
- color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.cite-quote::before {
- <!-- FIXME: i18n -->
- content: '&#x2015; ';
-}
-pre.screen {
- padding: 0.5em 1em 0.5em 1em;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border: solid 2px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.synopsis-contents {
- margin: 0;
- padding: 0.5em 1em 0.5em 1em;
- border-top: solid 2px;
- border-bottom: solid 2px;
- border-color: </xsl:text>
- <xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
-}
-div.synopsis pre.code {
- background: none;
- border: none;
- padding: 0;
-}
-
-div.list-contents { margin: 0; padding: 0; }
-div.title-list { margin-bottom: 0.5em; }
-ol.list, ul.list { margin: 0; padding: 0; }
-li.item-list { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em; }
-
-div.steps-contents {
- margin: 0;
- padding: 0.5em 1em 0.5em 1em;
- border-top: solid 2px;
- border-bottom: solid 2px;
- border-color: </xsl:text>
- <xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
-}
-div.steps-contents div.steps-contents {
- padding: 0;
- border: none;
- background-color: none;
-}
-ol.steps, ul.steps { margin: 0; padding: 0; }
-li.item-steps { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em; }
-
-div.terms-contents { margin: 0; }
-dt.item-next { margin-top: 0; }
-dd.item-terms {
- margin-top: 0.2em;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em;
-}
-
-ul.tree {
- margin: 0; padding: 0;
- list-style-type: none;
-}
-li.item-tree { margin: 0; padding: 0; }
-div.item-tree { margin: 0; padding: 0; }
-ul.tree ul.tree { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em; }
-div.tree-lines ul.tree { margin-left: 0; }
-
-table.table {
- border-collapse: collapse;
- border-color: #555753;
- border-width: 1px;
-}
-table.table td {
- padding: 0.1em 0.5em 0.1em 0.5em;
- border-color: #888a85;
- border-width: 1px;
- vertical-align: top;
-}
-
-span.app { font-style: italic; }
-span.cmd {
- font-family: monospace;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- padding: 0 0.2em 0 0.2em;
-}
-span.code { font-family: monospace; }
-span.em { font-style: italic; }
-span.email { color: red; }
-span.file { font-family: monospace; }
-span.gui, span.guiseq { color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>; }
-span.input { font-family: monospace; }
-span.hi {
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
-}
-span.key {
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- padding: 0 0.2em 0 0.2em;
-}
-span.keyseq {
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-span.output { font-family: monospace; }
-pre.screen span.output {
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-pre.screen span.output-error {
-<!-- FIXME: theme -->
- color: #ff0000;
-}
-pre.screen span.output-prompt { font-weight: bold; }
-span.sys { font-family: monospace; }
-span.var { font-style: italic; }
-</xsl:text>
-<xsl:call-template name="mal2html.css.editor"/>
-<xsl:call-template name="mal2html.css.custom"/>
-</xsl:template>
-<!--
-2.4
-2
-1.72
-1.44
-1.2
-1
-0.83
-0.69
-0.5
--->
-
-
-<!--**==========================================================================
-mal2html.css.editor
-Outputs CSS for editor mode
-
-FIXME
--->
-<xsl:template name="mal2html.css.editor">
- <xsl:variable name="direction">
- <xsl:call-template name="l10n.direction"/>
- </xsl:variable>
- <xsl:variable name="left">
- <xsl:call-template name="l10n.align.start">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="right">
- <xsl:call-template name="l10n.align.end">
- <xsl:with-param name="direction" select="$direction"/>
- </xsl:call-template>
- </xsl:variable>
-<xsl:text>
-div.version {
- position: absolute;
- </xsl:text><xsl:value-of select="$right"/><xsl:text>: 12px;
- opacity: 0.2;
- margin-top: -1em;
- padding: 0.5em 1em 0.5em 1em;
- max-width: 24em;
- -moz-border-radius: 6px;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
-}
-div.version:hover { opacity: 0.8; }
-div.version p.version { margin-top: 0.2em; }
-div.linkdiv div.title span.status {
- font-size: 0.83em;
- font-weight: normal;
- padding-left: 0.2em;
- padding-right: 0.2em;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
- border: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
-}
-div.linkdiv div.title span.status-stub { background-color: </xsl:text>
- <xsl:value-of select="$theme.color.red_background"/><xsl:text>; }
-div.linkdiv div.title span.status-draft { background-color: </xsl:text>
- <xsl:value-of select="$theme.color.red_background"/><xsl:text>; }
-div.linkdiv div.title span.status-incomplete { background-color: </xsl:text>
- <xsl:value-of select="$theme.color.red_background"/><xsl:text>; }
-div.linkdiv div.title span.status-review { background-color: </xsl:text>
- <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>; }
-div.linkdiv div.desc {
- margin-top: 0.2em;
- color: </xsl:text>
- <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
-}
-div.comment {
- padding: 0.5em;
- border: solid 2px </xsl:text>
- <xsl:value-of select="$theme.color.red_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.red_background"/><xsl:text>;
-}
-div.comment div.comment {
- margin: 1em 1em 0 1em;
-}
-div.comment div.cite {
- margin: 0 0 0.5em 0;
- font-style: italic;
-}
-</xsl:text>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.css.custom
-Allows extension stylesheets to extend or override CSS
-:Stub: true
-
-This stub template has no content. Extension stylesheets can override this
-template to output extra CSS.
--->
-<xsl:template name="mal2html.css.custom"/>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-inline.xsl b/xslt/mallard/html/mal2html-inline.xsl
deleted file mode 100644
index 7103d61..0000000
--- a/xslt/mallard/html/mal2html-inline.xsl
+++ /dev/null
@@ -1,284 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns:e="http://projectmallard.org/experimental/"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - Inline Elements
-
-REMARK: Describe this module
--->
-
-<xsl:template mode="mal.link.content.mode" match="*">
- <xsl:apply-templates mode="mal2html.inline.mode" select="."/>
-</xsl:template>
-
-
-<!--%%==========================================================================
-mal2html.inline.mode
-Processes an element in inline mode
-
-FIXME
--->
-
-
-<!--%%==========================================================================
-mal2html.inline.content.mode
-Outputs the contents of an inline element
-
-FIXME
--->
-<xsl:template mode="mal2html.inline.content.mode" match="node()">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.span
-Renders an inline element as a #{span}
-$node: The element to render
-
-REMARK: Document this template
--->
-<xsl:template name="mal2html.span">
- <xsl:param name="node" select="."/>
- <xsl:param name="class" select="''"/>
- <span class="{concat($class, ' ', local-name($node))}">
- <xsl:choose>
- <xsl:when test="$node/@xref | $node/@href">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:call-template name="mal.link.tooltip">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.inline.content.mode" select="$node"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.inline.content.mode" select="$node"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = app = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:app">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = cmd = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:cmd">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = code = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:code">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = date = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:date">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = em = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:em">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = email = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:email">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = file = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:file">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = gui = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:gui">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = guiseq = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:guiseq">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = guiseq % mal2html.inline.content.mode = -->
-<xsl:template mode="mal2html.inline.content.mode" match="mal:guiseq">
- <xsl:for-each select="mal:gui">
- <xsl:if test="position() != 1">
- <!-- FIXME: rtl -->
- <xsl:text>&#x00A0;&#x25B8; </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="mal2html.inline.mode" select="."/>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = input = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:input">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = hi = -->
-<xsl:template mode="mal2html.inline.mode" match="e:hi">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = key = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:key">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = keyseq = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:keyseq">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = keyseq % mal2html.inline.content.mode = -->
-<xsl:template mode="mal2html.inline.content.mode" match="mal:keyseq">
- <xsl:variable name="joinchar">
- <xsl:choose>
- <xsl:when test="@type = 'sequence'">
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:when test="contains(concat(' ', @style, ' '), ' hyphen ')">
- <xsl:text>-</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>+</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="* | text()[normalize-space(.) != '']">
- <xsl:if test="position() != 1">
- <xsl:value-of select="$joinchar"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="./self::text()">
- <xsl:value-of select="normalize-space(.)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.inline.mode" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-</xsl:template>
-
-<!-- = link = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:link">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = link % mal2html.inline.content.mode = -->
-<xsl:template mode="mal2html.inline.content.mode" match="mal:link">
- <xsl:choose>
- <xsl:when test="normalize-space(.) != ''">
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="mal.link.content">
- <xsl:with-param name="role" select="@role"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = media = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:media">
- <!-- FIXME -->
-</xsl:template>
-
-<!-- = name = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:name">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = output = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:output">
- <xsl:variable name="style" select="concat(' ', @style, ' ')"/>
- <xsl:call-template name="mal2html.span">
- <xsl:with-param name="class">
- <xsl:choose>
- <xsl:when test="contains($style, ' output ')">
- <xsl:text>output-output</xsl:text>
- </xsl:when>
- <xsl:when test="contains($style, ' error ')">
- <xsl:text>output-error</xsl:text>
- </xsl:when>
- <xsl:when test="contains($style, ' prompt ')">
- <xsl:text>output-prompt</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = quote = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:quote">
- <!-- FIXME: do smart quoting -->
- <xsl:text>"</xsl:text>
- <xsl:call-template name="mal2html.span"/>
- <xsl:text>"</xsl:text>
-</xsl:template>
-
-<!-- = span = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:span">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = sys = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:sys">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = var = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:var">
- <xsl:call-template name="mal2html.span"/>
-</xsl:template>
-
-<!-- = text() = -->
-<xsl:template mode="mal2html.inline.mode" match="text()">
- <xsl:value-of select="."/>
-</xsl:template>
-
-<!-- = FIXME = -->
-<xsl:template mode="mal2html.inline.mode" match="*">
- <xsl:message>
- <xsl:text>Unmatched inline element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-list.xsl b/xslt/mallard/html/mal2html-list.xsl
deleted file mode 100644
index 6ec692c..0000000
--- a/xslt/mallard/html/mal2html-list.xsl
+++ /dev/null
@@ -1,268 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - List Elements
-
-REMARK: Describe this module
--->
-
-
-<!--%%==========================================================================
-mal2html.list.list.mode
-FIXME
-
-FIXME
--->
-<!--%%==========================================================================
-mal2html.list.steps.mode
-FIXME
-
-FIXME
--->
-<!--%%==========================================================================
-mal2html.list.terms.mode
-FIXME
-
-FIXME
--->
-<!--%%==========================================================================
-mal2html.list.tree.mode
-FIXME
-
-FIXME
--->
-
-<!-- = list = -->
-<xsl:template mode="mal2html.block.mode" match="mal:list">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:variable name="el">
- <xsl:choose>
- <xsl:when test="not(@type) or (@type = 'none') or (@type = 'box')
- or (@type = 'check') or (@type = 'circle') or (@type = 'diamond')
- or (@type = 'disc') or (@type = 'hyphen') or (@type = 'square')">
- <xsl:text>ul</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>ol</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div>
- <xsl:attribute name="class">
- <xsl:text>list</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="list-contents">
- <xsl:element name="{$el}" namespace="{$mal2html.namespace}">
- <xsl:attribute name="class">
- <xsl:text>list</xsl:text>
- </xsl:attribute>
- <xsl:if test="@type">
- <xsl:attribute name="style">
- <xsl:value-of select="concat('list-style-type:', @type)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates mode="mal2html.list.list.mode" select="mal:item"/>
- </xsl:element>
- </div>
- </div>
-</xsl:template>
-
-<!-- = list/item = -->
-<xsl:template mode="mal2html.list.list.mode" match="mal:item">
- <li>
- <xsl:attribute name="class">
- <xsl:text>item-list</xsl:text>
- <xsl:if test="not(preceding-sibling::mal:item)">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- <xsl:if test="contains(concat(' ', ../@style, ' '), ' condensed ')">
- <xsl:text> condensed</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:for-each
- select="mal:*[
- ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </li>
-</xsl:template>
-
-<!-- = steps = -->
-<xsl:template mode="mal2html.block.mode" match="mal:steps">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>steps</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="steps-contents">
- <ol class="steps">
- <xsl:apply-templates mode="mal2html.list.steps.mode" select="mal:item"/>
- </ol>
- </div>
- </div>
-</xsl:template>
-
-<!-- = steps/item = -->
-<xsl:template mode="mal2html.list.steps.mode" match="mal:item">
- <li>
- <xsl:attribute name="class">
- <xsl:text>item-steps</xsl:text>
- <xsl:if test="not(preceding-sibling::mal:item)">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:for-each
- select="mal:*[
- ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </li>
-</xsl:template>
-
-<!-- = terms = -->
-<xsl:template mode="mal2html.block.mode" match="mal:terms">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>terms</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>
- <div class="terms-contents">
- <dl class="terms">
- <xsl:apply-templates mode="mal2html.list.terms.mode" select="mal:item"/>
- </dl>
- </div>
- </div>
-</xsl:template>
-
-<!-- = list/item = -->
-<xsl:template mode="mal2html.list.terms.mode" match="mal:item">
- <xsl:for-each select="mal:title">
- <dt>
- <xsl:attribute name="class">
- <xsl:text>item-terms</xsl:text>
- <xsl:if test="not(../preceding-sibling::mal:item)">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- <xsl:if test="preceding-sibling::mal:title">
- <xsl:text> item-next</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </dt>
- </xsl:for-each>
- <dd class="item-terms">
- <xsl:for-each
- select="mal:*[not(self::mal:title)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </dd>
-</xsl:template>
-
-<!-- = tree = -->
-<xsl:template mode="mal2html.block.mode" match="mal:tree">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:variable name="lines" select="contains(concat(' ', @style, ' '), ' lines ')"/>
- <div>
- <xsl:attribute name="class">
- <xsl:text>tree</xsl:text>
- <xsl:if test="$lines">
- <xsl:text> tree-lines</xsl:text>
- </xsl:if>
- <!-- FIXME -->
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <ul class="tree">
- <xsl:apply-templates mode="mal2html.list.tree.mode" select="mal:item">
- <xsl:with-param name="lines" select="$lines"/>
- </xsl:apply-templates>
- </ul>
- </div>
-</xsl:template>
-
-<!-- = tree/item = -->
-<xsl:template mode="mal2html.list.tree.mode" match="mal:item">
- <xsl:param name="lines" select="false()"/>
- <xsl:param name="prefix" select="''"/>
- <li class="item-tree">
- <div class="item-tree">
- <xsl:if test="$lines">
- <xsl:value-of select="$prefix"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates mode="mal2html.inline.mode"
- select="node()[not(self::mal:item)]"/>
- </div>
- <xsl:if test="mal:item">
- <ul class="tree">
- <xsl:for-each select="mal:item">
- <xsl:apply-templates mode="mal2html.list.tree.mode" select=".">
- <xsl:with-param name="lines" select="$lines"/>
- <xsl:with-param name="prefix">
- <xsl:if test="$lines">
- <xsl:value-of select="translate(
- translate($prefix, '&#x251C;', '&#x2502;'),
- '&#x2514;', '&#x202F;')"/>
- <xsl:text>&#x202F;&#x202F;&#x202F;&#x202F;</xsl:text>
- <xsl:choose>
- <xsl:when test="following-sibling::mal:item">
- <xsl:text>&#x251C;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&#x2514;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:for-each>
- </ul>
- </xsl:if>
- </li>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
deleted file mode 100644
index 66e6ac4..0000000
--- a/xslt/mallard/html/mal2html-media.xsl
+++ /dev/null
@@ -1,191 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - Media Elements
-
-REMARK: Describe this module
--->
-
-<!--**==========================================================================
-mal2html.media.image
-FIXME
-
-FIXME
--->
-<xsl:template name="mal2html.media.image">
- <xsl:param name="node" select="."/>
- <xsl:param name="inline" select="false()"/>
- <img src="{$node/@src}">
- <xsl:copy-of select="@height"/>
- <xsl:copy-of select="@width"/>
- <xsl:attribute name="alt">
- <xsl:choose>
- <xsl:when test="$inline">
- <xsl:value-of select="$node"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- FIXME: This is not ideal. Nested block container elements
- will introduce lots of garbage whitespace. But then, XML
- processors are supposed to normalize whitespace in attribute
- values anyway. Ideally, we'd have a set of modes for text
- conversion. That'd probably be best handled in a set of
- mal2text stylesheets.
- -->
- <xsl:for-each select="$node/mal:*">
- <xsl:if test="position() &gt; 1">
- <xsl:text>&#x000A;</xsl:text>
- </xsl:if>
- <xsl:value-of select="string(.)"/>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </img>
-</xsl:template>
-
-<!--**==========================================================================
-mal2html.media.video
-FIXME
-
-FIXME
--->
-<xsl:template name="mal2html.media.video">
- <xsl:param name="node" select="."/>
- <xsl:param name="inline" select="false()"/>
- <video src="{$node/@src}" autobuffer="autobuffer" controls="controls">
- <xsl:copy-of select="$node/@height"/>
- <xsl:copy-of select="$node/@width"/>
- <xsl:choose>
- <xsl:when test="$inline">
- <xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.block.mode" select="$node/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </video>
-</xsl:template>
-
-<!--**==========================================================================
-mal2html.media.audio
-FIXME
-
-FIXME
--->
-<xsl:template name="mal2html.media.audio">
- <xsl:param name="node" select="."/>
- <xsl:param name="inline" select="false()"/>
- <audio src="{$node/@src}" autobuffer="autobuffer" controls="controls">
- <xsl:choose>
- <xsl:when test="$inline">
- <xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.block.mode" select="$node/node()"/>
- </xsl:otherwise>
- </xsl:choose>
- </audio>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = mal2html.block.mode % media = -->
-<xsl:template mode="mal2html.block.mode" match="mal:media">
- <xsl:param name="first_child" select="not(preceding-sibling::*)"/>
- <xsl:choose>
- <xsl:when test="@type = 'image'">
- <div>
- <xsl:attribute name="class">
- <xsl:text>media media-image</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="mal2html.media.image"/>
- </div>
- </xsl:when>
- <xsl:when test="@type = 'video'">
- <div>
- <xsl:attribute name="class">
- <xsl:text>media media-video</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="mal2html.media.video"/>
- </div>
- </xsl:when>
- <xsl:when test="@type = 'audio'">
- <div>
- <xsl:attribute name="class">
- <xsl:text>media media-audio</xsl:text>
- <xsl:if test="$first_child">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <xsl:call-template name="mal2html.media.audio"/>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="mal:*">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1 and $first_child"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = mal2html.inline.mode % media = -->
-<xsl:template mode="mal2html.inline.mode" match="mal:media">
- <xsl:choose>
- <xsl:when test="@type = 'image'">
- <span class="media media-image">
- <xsl:call-template name="mal2html.media.image">
- <xsl:with-param name="inline" select="true()"/>
- </xsl:call-template>
- </span>
- </xsl:when>
- <xsl:when test="@type = 'video'">
- <span class="media media-video">
- <xsl:call-template name="mal2html.media.video">
- <xsl:with-param name="inline" select="true()"/>
- </xsl:call-template>
- </span>
- </xsl:when>
- <xsl:when test="@type = 'audio'">
- <span class="media media-audio">
- <xsl:call-template name="mal2html.media.audio">
- <xsl:with-param name="inline" select="true()"/>
- </xsl:call-template>
- </span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
deleted file mode 100644
index 4e7d29e..0000000
--- a/xslt/mallard/html/mal2html-page.xsl
+++ /dev/null
@@ -1,679 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns:str="http://exslt.org/strings"
- xmlns:exsl="http://exslt.org/common"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - Pages
-
-REMARK: Describe this module
--->
-
-
-<!--@@==========================================================================
-mal2html.editor.mode
-Add information that's useful to writers and editors.
-
-When this parameter is set to true, these stylesheets will output editorial
-comments, status markers, and other information that's useful to writers and
-editors.
--->
-<xsl:param name="mal2html.editor_mode" select="false()"/>
-
-
-<!--**==========================================================================
-mal2html.page.copyrights
-Output the copyright notice at the bottom of a page.
-:Revision:version="1.0" date="2010-01-02"
-$node: The top-level #{page} element.
-
-This template outputs copyright information. By default, it is placed at the
-bottom of the page by *{mal2html.page.footbar}. Copyrights are taken from the
-#{credit} elements in the #{info} element in ${node}.
-
-Copyright information is output in a #{div} element with #{class="copyrights"}.
-Each copyright is output in a nested #{div} element with #{class="copyright"}.
--->
-<xsl:template name="mal2html.page.copyrights">
- <xsl:param name="node"/>
- <div class="copyrights">
- <xsl:for-each select="$node/mal:info/mal:credit[mal:years]">
- <div class="copyright">
- <!-- FIXME: i18n, multi-year, email -->
- <xsl:value-of select="concat('© ', mal:years, ' ', mal:name)"/>
- </div>
- </xsl:for-each>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.topiclinks
-Outputs the automatic links from a guide page or guide section
-$node: The #{page} or #{section} element containing the links
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.topiclinks">
- <xsl:param name="node" select="."/>
- <xsl:variable name="topiclinks">
- <xsl:call-template name="mal.link.topiclinks"/>
- </xsl:variable>
- <xsl:variable name="topicnodes" select="exsl:node-set($topiclinks)/*"/>
- <div class="topiclinks">
- <xsl:choose>
- <xsl:when test="contains(concat(' ', $node/@style, ' '), ' 2column ')">
- <xsl:variable name="coltot" select="ceiling(count($topicnodes) div 2)"/>
- <table class="twocolumn"><tr>
- <td class="twocolumnleft">
- <xsl:for-each select="$topicnodes">
- <xsl:sort data-type="number" select="@groupsort"/>
- <xsl:sort select="mal:title[@type = 'sort']"/>
- <xsl:if test="position() &lt;= $coltot">
- <xsl:variable name="xref" select="@xref"/>
- <xsl:for-each select="$mal.cache">
- <xsl:call-template name="mal2html.page.linkdiv">
- <xsl:with-param name="source" select="$node"/>
- <xsl:with-param name="target" select="key('mal.cache.key', $xref)"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:if>
- </xsl:for-each>
- </td>
- <td class="twocolumnright">
- <xsl:for-each select="$topicnodes">
- <xsl:sort data-type="number" select="@groupsort"/>
- <xsl:sort select="mal:title[@type = 'sort']"/>
- <xsl:if test="position() &gt; $coltot">
- <xsl:variable name="xref" select="@xref"/>
- <xsl:for-each select="$mal.cache">
- <xsl:call-template name="mal2html.page.linkdiv">
- <xsl:with-param name="source" select="$node"/>
- <xsl:with-param name="target" select="key('mal.cache.key', $xref)"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:if>
- </xsl:for-each>
- </td>
- </tr></table>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$topicnodes">
- <xsl:sort data-type="number" select="@groupsort"/>
- <xsl:sort select="mal:title[@type = 'sort']"/>
- <xsl:variable name="xref" select="@xref"/>
- <xsl:for-each select="$mal.cache">
- <xsl:call-template name="mal2html.page.linkdiv">
- <xsl:with-param name="source" select="$node"/>
- <xsl:with-param name="target" select="key('mal.cache.key', $xref)"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.linkdiv
-Outputs an automatic link block from a guide to a page
-$source: The #{page} or #{section} element containing the link
-$target: The element from the cache file of the page being linked to
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.linkdiv">
- <xsl:param name="source" select="."/>
- <xsl:param name="target"/>
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="node" select="$source"/>
- <xsl:with-param name="xref" select="$target/@id"/>
- </xsl:call-template>
- </xsl:attribute>
- <div class="linkdiv">
- <div class="title">
- <xsl:call-template name="mal.link.content">
- <xsl:with-param name="node" select="$source"/>
- <xsl:with-param name="xref" select="$target/@id"/>
- <xsl:with-param name="role" select="'topic'"/>
- </xsl:call-template>
-
- <xsl:if test="$mal2html.editor_mode">
- <xsl:variable name="page" select="$target/ancestor-or-self::mal:page[1]"/>
- <xsl:variable name="date">
- <xsl:for-each select="$page/mal:info/mal:revision">
- <xsl:sort select="@date" data-type="text" order="descending"/>
- <xsl:if test="position() = 1">
- <xsl:value-of select="@date"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="revision"
- select="$page/mal:info/mal:revision[@date = $date][last()]"/>
- <xsl:if test="$revision/@status != '' and $revision/@status != 'final'">
- <xsl:text> </xsl:text>
- <span>
- <xsl:attribute name="class">
- <xsl:value-of select="concat('status status-', $revision/@status)"/>
- </xsl:attribute>
- <!-- FIXME: i18n -->
- <xsl:choose>
- <xsl:when test="$revision/@status = 'stub'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Stub'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'incomplete'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Incomplete'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'draft'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Draft'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'review'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Ready for review'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'final'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Final'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </span>
- </xsl:if>
- </xsl:if>
- </div>
- <xsl:if test="$target/mal:info/mal:desc">
- <div class="desc">
- <xsl:apply-templates mode="mal2html.inline.mode"
- select="$target/mal:info/mal:desc[1]/node()"/>
- </div>
- </xsl:if>
- </div>
- </a>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.autolinks
-Outputs the automatic links from a page to related pages
-$node: The #{topic} or #{section} element containing the links
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.autolinks">
- <xsl:param name="node" select="."/>
- <xsl:variable name="depth"
- select="count($node/ancestor::mal:section) + 2"/>
- <xsl:variable name="id">
- <xsl:choose>
- <xsl:when test="$node/self::mal:section">
- <xsl:value-of select="concat($node/ancestor::mal:page[1]/@id, '#', $node/@id)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$node/@id"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- FIXME: // is slow -->
- <xsl:variable name="inlinks"
- select="$mal.cache//*[mal:info/mal:link[@type = 'seealso'][@xref = $id]]"/>
- <xsl:variable name="outlinks"
- select="$node/mal:info/mal:link[@type = 'seealso']"/>
- <xsl:variable name="guidelinks">
- <xsl:call-template name="mal.link.guidelinks">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="guidenodes" select="exsl:node-set($guidelinks)/*"/>
- <xsl:if test="$inlinks or $outlinks or $guidenodes">
- <div class="section autolinkssection">
- <div class="header">
- <xsl:element name="{concat('h', $depth)}" namespace="{$mal2html.namespace}">
- <xsl:attribute name="class">
- <xsl:text>title</xsl:text>
- </xsl:attribute>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Further Reading'"/>
- </xsl:call-template>
- </xsl:element>
- </div>
- <!-- FIXME: For prev/next series, insert links to first/prev/next/last -->
- <div class="autolinks">
- <xsl:if test="$guidenodes">
- <div class="title"><span>
- <!-- FIXME: i18n -->
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'More About'"/>
- </xsl:call-template>
- </span></div>
- <ul>
- <xsl:for-each select="$guidenodes">
- <xsl:call-template name="mal2html.page.autolink">
- <xsl:with-param name="xref" select="@xref"/>
- <xsl:with-param name="role" select="'guide'"/>
- </xsl:call-template>
- </xsl:for-each>
- </ul>
- </xsl:if>
-
- <xsl:if test="$inlinks or $outlinks">
- <div class="title"><span>
- <!-- FIXME: i18n -->
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'See Also'"/>
- </xsl:call-template>
- </span></div>
- <ul>
- <xsl:for-each select="$inlinks">
- <xsl:call-template name="mal2html.page.autolink">
- <xsl:with-param name="page" select="."/>
- <xsl:with-param name="role" select="'seealso'"/>
- </xsl:call-template>
- </xsl:for-each>
- <xsl:for-each select="$outlinks">
- <xsl:call-template name="mal2html.page.autolink">
- <xsl:with-param name="xref" select="@xref"/>
- <xsl:with-param name="role" select="'seealso'"/>
- </xsl:call-template>
- </xsl:for-each>
- </ul>
- </xsl:if>
- </div>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.autolink
-Outputs an automatic link for a related page
-$page: The element from the cache file of the page being linked to
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.autolink">
- <xsl:param name="page"/>
- <xsl:param name="xref" select="$page/@id"/>
- <xsl:param name="role" select="''"/>
- <li class="autolink">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="xref" select="$xref"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="mal.link.content">
- <xsl:with-param name="node" select="."/>
- <xsl:with-param name="xref" select="$xref"/>
- <xsl:with-param name="role" select="$role"/>
- </xsl:call-template>
- </a>
- <xsl:for-each select="$mal.cache">
- <xsl:variable name="desc" select="key('mal.cache.key', $xref)/mal:info/mal:desc"/>
- <xsl:if test="$desc">
- <span class="desc">
- <xsl:text> &#x2014; </xsl:text>
- <xsl:apply-templates mode="mal2html.inline.mode" select="$desc/node()"/>
- </span>
- </xsl:if>
- </xsl:for-each>
- </li>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.headbar
-FIXME
-
-REMARK: FIXME
--->
-<xsl:template name="mal2html.page.headbar">
- <xsl:param name="node" select="."/>
- <div class="headbar">
- <xsl:call-template name="mal2html.page.linktrails">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.footbar
-FIXME
-
-REMARK: FIXME
--->
-<xsl:template name="mal2html.page.footbar">
- <xsl:param name="node" select="."/>
- <div class="footbar">
- <xsl:call-template name="mal2html.page.copyrights">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-mal2html.page.linktrails
-FIXME
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.linktrails">
- <xsl:param name="node" select="."/>
- <xsl:variable name="linktrails">
- <xsl:call-template name="mal.link.linktrails">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="trailnodes" select="exsl:node-set($linktrails)/*"/>
- <xsl:if test="count($trailnodes) &gt; 0">
- <div class="linktrails">
- <xsl:for-each select="$trailnodes">
- <xsl:sort select="(.//mal:title[@type='sort'])[1]"/>
- <xsl:sort select="(.//mal:title[@type='sort'])[2]"/>
- <xsl:sort select="(.//mal:title[@type='sort'])[3]"/>
- <xsl:sort select="(.//mal:title[@type='sort'])[4]"/>
- <xsl:sort select="(.//mal:title[@type='sort'])[5]"/>
- <xsl:call-template name="mal2html.page.linktrails.trail"/>
- </xsl:for-each>
- </div>
- </xsl:if>
-</xsl:template>
-
-<!--**==========================================================================
-mal2html.page.linktrails.trail
-FIXME
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.linktrails.trail">
- <xsl:param name="node" select="."/>
- <div class="linktrail">
- <xsl:call-template name="mal2html.page.linktrails.link">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-<!--**==========================================================================
-mal2html.page.linktrails.link
-FIXME
-
-REMARK: Describe this template
--->
-<xsl:template name="mal2html.page.linktrails.link">
- <xsl:param name="node" select="."/>
- <a class="linktrail">
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="xref" select="$node/@xref"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="mal.link.content">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="xref" select="$node/@xref"/>
- <xsl:with-param name="role" select="'guide'"/>
- </xsl:call-template>
- </a>
- <xsl:choose>
- <xsl:when test="$node/@child = 'section'">
- <xsl:text> › </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> » </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:for-each select="$node/mal:link">
- <xsl:call-template name="mal2html.page.linktrails.link"/>
- </xsl:for-each>
-</xsl:template>
-
-
-<!-- == Matched Templates == -->
-
-<!-- = / = -->
-<xsl:template match="/">
- <xsl:choose>
- <xsl:when test="$mal.chunk.chunk_top">
- <xsl:call-template name="mal.chunk">
- <xsl:with-param name="node" select="mal:page"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="mal.chunk.content.mode" select="mal:page"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = mal:page % mal.chunk.content.mode = -->
-<xsl:template mode="mal.chunk.content.mode" match="mal:page">
- <!-- FIXME: find a way to just select the version element -->
- <xsl:variable name="date">
- <xsl:for-each select="mal:info/mal:revision">
- <xsl:sort select="@date" data-type="text" order="descending"/>
- <xsl:if test="position() = 1">
- <xsl:value-of select="@date"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="revision"
- select="mal:info/mal:revision[@date = $date][last()]"/>
- <html>
- <head>
- <title>
- <xsl:variable name="title" select="mal:info/mal:title[@type = 'text'][1]"/>
- <xsl:choose>
- <xsl:when test="$title">
- <xsl:value-of select="$title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="mal:title"/>
- </xsl:otherwise>
- </xsl:choose>
- </title>
- <xsl:call-template name="mal2html.css"/>
- </head>
- <body class="{@style}">
- <xsl:call-template name="mal2html.page.headbar">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- <div class="body">
- <xsl:variable name="linkid">
- <xsl:call-template name="mal.link.linkid"/>
- </xsl:variable>
- <xsl:variable name="next" select="mal:info/mal:link[@type='next']"/>
- <xsl:for-each select="$mal.cache">
- <xsl:variable name="prev" select="key('mal.cache.link.key', concat('next:', $linkid))"/>
- <xsl:if test="$prev or $next">
- <!-- FIXME: Get prev/next links in constant position -->
- <div class="navbar">
- <xsl:if test="$prev">
- <a class="navbar-prev">
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="node" select="$prev"/>
- <xsl:with-param name="xref" select="$prev/../../@id"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Previous'"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- <xsl:if test="$prev and $next">
- <xsl:text>&#x00A0;&#x00A0;|&#x00A0;&#x00A0;</xsl:text>
- </xsl:if>
- <xsl:if test="$next">
- <a class="navbar-next">
- <xsl:attribute name="href">
- <xsl:call-template name="mal.link.target">
- <xsl:with-param name="node" select="$next"/>
- <xsl:with-param name="xref" select="$next/@xref"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Next'"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- </div>
- </xsl:if>
- </xsl:for-each>
- <xsl:if test="$mal2html.editor_mode and $revision/@status != ''">
- <div class="version">
- <!-- FIXME: i18n -->
- <div class="title">
- <xsl:choose>
- <xsl:when test="$revision/@status = 'stub'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Stub'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'incomplete'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Incomplete'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'draft'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Draft'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'review'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Ready for review'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$revision/@status = 'final'">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Final'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </div>
- <p class="version">
- <!-- FIXME: i18n -->
- <xsl:text>Version </xsl:text>
- <xsl:value-of select="$revision/@version"/>
- <xsl:text> on </xsl:text>
- <xsl:value-of select="$revision/@date"/>
- </p>
- <xsl:apply-templates mode="mal2html.block.mode" select="$revision/*"/>
- </div>
- </xsl:if>
- <xsl:apply-templates select="."/>
- </div>
- <xsl:call-template name="mal2html.page.footbar">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </body>
- </html>
-</xsl:template>
-
-<!-- = page = -->
-<xsl:template match="mal:page">
- <div class="header">
- <xsl:apply-templates mode="mal2html.title.mode" select="mal:title"/>
- <xsl:apply-templates mode="mal2html.title.mode" select="mal:subtitle"/>
- </div>
- <div class="contents">
- <xsl:for-each
- select="mal:*[not(self::mal:section or self::mal:title or self::mal:subtitle)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- <xsl:if test="@type = 'guide'">
- <xsl:call-template name="mal2html.page.topiclinks"/>
- </xsl:if>
- </div>
- <xsl:apply-templates select="mal:section"/>
- <xsl:call-template name="mal2html.page.autolinks">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
-</xsl:template>
-
-<!-- = section = -->
-<xsl:template match="mal:section">
- <div class="section" id="{@id}">
- <div class="header">
- <xsl:apply-templates mode="mal2html.title.mode" select="mal:title"/>
- <xsl:apply-templates mode="mal2html.title.mode" select="mal:subtitle"/>
- </div>
- <div class="contents">
- <xsl:for-each
- select="mal:*[not(self::mal:section or self::mal:title or self::mal:subtitle)
- and ($mal2html.editor_mode or not(self::mal:comment)
- or processing-instruction('mal2html.show_comment'))]">
- <xsl:apply-templates mode="mal2html.block.mode" select=".">
- <xsl:with-param name="first_child" select="position() = 1"/>
- </xsl:apply-templates>
- </xsl:for-each>
- <xsl:if test="/mal:page/@type = 'guide'">
- <xsl:call-template name="mal2html.page.topiclinks"/>
- </xsl:if>
- </div>
- <xsl:apply-templates select="mal:section"/>
- <xsl:call-template name="mal2html.page.autolinks">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-
-<!--%%==========================================================================
-mal2html.title.mode
-FIXME
-
-FIXE
--->
-<!-- = subtitle = -->
-<xsl:template mode="mal2html.title.mode" match="mal:subtitle">
- <!-- FIXME -->
-</xsl:template>
-
-<!-- = title = -->
-<xsl:template mode="mal2html.title.mode" match="mal:title">
- <xsl:variable name="depth"
- select="count(ancestor::mal:section) + 1"/>
- <xsl:element name="{concat('h', $depth)}" namespace="{$mal2html.namespace}">
- <xsl:attribute name="class">
- <xsl:text>title</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates mode="mal2html.inline.mode"/>
- </xsl:element>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html-table.xsl b/xslt/mallard/html/mal2html-table.xsl
deleted file mode 100644
index d117e41..0000000
--- a/xslt/mallard/html/mal2html-table.xsl
+++ /dev/null
@@ -1,513 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns:str="http://exslt.org/strings"
- xmlns="http://www.w3.org/1999/xhtml"
- extension-element-prefixes="str"
- version="1.0">
-
-<!--!!==========================================================================
-Mallard to HTML - Table Elements
-
-REMARK: Describe this module
--->
-
-
-<!-- == Matched Templates == -->
-
-<!-- = table = -->
-<xsl:template mode="mal2html.block.mode" match="mal:table">
- <xsl:variable name="cols" select="mal:col | mal:colgroup/mal:col"/>
- <xsl:variable name="style">
- <xsl:if test="@frame and @frame != 'none'">
- <xsl:choose>
- <xsl:when test="@frame = 'all'">
- <xsl:text>border-style: solid;</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="str:split(@frame)">
- <xsl:choose>
- <xsl:when test=". = 'top'">
- <xsl:text>border-top-style: solid;</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'bottom'">
- <xsl:text>border-bottom-style: solid;</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'left'">
- <xsl:text>border-left-style: solid;</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'right'">
- <xsl:text>border-right-style: solid;</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="rowrules">
- <xsl:choose>
- <xsl:when test="not(@rules) or @rules = 'none'">
- <xsl:text>none</xsl:text>
- </xsl:when>
- <xsl:when test="@rules = 'all'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test="@rules = 'groups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="str:split(@rules)">
- <xsl:choose>
- <xsl:when test=". = 'rows'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'rowgroups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="colrules">
- <xsl:choose>
- <xsl:when test="not(@rules) or @rules = 'none'">
- <xsl:text>none</xsl:text>
- </xsl:when>
- <xsl:when test="@rules = 'all'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test="@rules = 'groups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="str:split(@rules)">
- <xsl:choose>
- <xsl:when test=". = 'cols'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'colgroups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="rowshade">
- <xsl:choose>
- <xsl:when test="not(@shade) or @shade = 'none'">
- <xsl:text>none</xsl:text>
- </xsl:when>
- <xsl:when test="@shade = 'all'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test="@shade = 'groups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="str:split(@shade)">
- <xsl:choose>
- <xsl:when test=". = 'rows'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'rowgroups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="colshade">
- <xsl:choose>
- <xsl:when test="not(@shade) or @shade = 'none'">
- <xsl:text>none</xsl:text>
- </xsl:when>
- <xsl:when test="@shade = 'all'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test="@shade = 'groups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="str:split(@shade)">
- <xsl:choose>
- <xsl:when test=". = 'cols'">
- <xsl:text>all</xsl:text>
- </xsl:when>
- <xsl:when test=". = 'colgroups'">
- <xsl:text>groups</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div>
- <xsl:attribute name="class">
- <xsl:text>table</xsl:text>
- <xsl:if test="not(preceding-sibling::*)">
- <xsl:text> first-child</xsl:text>
- </xsl:if>
- </xsl:attribute>
- <table class="table">
- <xsl:if test="$style != ''">
- <xsl:attribute name="style">
- <xsl:value-of select="$style"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="mal:thead">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="mal:tfoot">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="mal:tr[1] | mal:tbody">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- </table>
- </div>
-</xsl:template>
-
-<!-- = tbody = -->
-<xsl:template match="mal:tbody">
- <xsl:param name="cols"/>
- <xsl:param name="rowrules"/>
- <xsl:param name="colrules"/>
- <xsl:param name="rowshade"/>
- <xsl:param name="colshade"/>
- <tbody>
- <xsl:apply-templates select="mal:tr[1]">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- </tbody>
-</xsl:template>
-
-<!-- = thead = -->
-<xsl:template match="mal:thead">
- <xsl:param name="cols"/>
- <xsl:param name="rowrules"/>
- <xsl:param name="colrules"/>
- <xsl:param name="rowshade"/>
- <xsl:param name="colshade"/>
- <thead>
- <xsl:apply-templates select="mal:tr[1]">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- </thead>
-</xsl:template>
-
-<!-- = tfoot = -->
-<xsl:template match="mal:tfoot">
- <xsl:param name="cols"/>
- <xsl:param name="rowrules"/>
- <xsl:param name="colrules"/>
- <xsl:param name="rowshade"/>
- <xsl:param name="colshade"/>
- <tfoot>
- <xsl:apply-templates select="mal:tr[1]">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- </xsl:apply-templates>
- </tfoot>
-</xsl:template>
-
-<xsl:template name="repeat">
- <xsl:param name="str" select="''"/>
- <xsl:param name="num" select="0"/>
- <xsl:if test="$num &gt; 0">
- <xsl:value-of select="$str"/>
- <xsl:call-template name="repeat">
- <xsl:with-param name="str" select="$str"/>
- <xsl:with-param name="num" select="$num - 1"/>
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<!-- = tr = -->
-<xsl:template match="mal:tr">
- <xsl:param name="cols"/>
- <xsl:param name="rowrules"/>
- <xsl:param name="colrules"/>
- <xsl:param name="rowshade"/>
- <xsl:param name="colshade"/>
- <xsl:param name="rowspans">
- <xsl:for-each select="mal:td">
- <xsl:text>0:</xsl:text>
- <xsl:if test="@colspan">
- <xsl:call-template name="repeat">
- <xsl:with-param name="str" select="'0:'"/>
- <xsl:with-param name="num" select="number(@colspan) - 1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
- </xsl:param>
- <tr>
- <xsl:apply-templates select="mal:td">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- <xsl:with-param name="rowspans" select="$rowspans"/>
- </xsl:apply-templates>
- </tr>
- <xsl:apply-templates select="following-sibling::mal:tr[1]">
- <xsl:with-param name="cols" select="$cols"/>
- <xsl:with-param name="rowrules" select="$rowrules"/>
- <xsl:with-param name="colrules" select="$colrules"/>
- <xsl:with-param name="rowshade" select="$rowshade"/>
- <xsl:with-param name="colshade" select="$colshade"/>
- <xsl:with-param name="rowspans">
- <xsl:call-template name="rowspans">
- <xsl:with-param name="spans" select="str:split($rowspans, ':')"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template name="rowspans">
- <xsl:param name="spans"/>
- <xsl:param name="pos" select="1"/>
- <xsl:param name="td" select="mal:td[1]"/>
- <xsl:param name="times" select="1"/>
- <xsl:variable name="span" select="number($spans[$pos])"/>
-
- <xsl:choose>
- <xsl:when test="$span &gt; 1">
- <xsl:value-of select="$span - 1"/>
- <xsl:text>:</xsl:text>
- <xsl:if test="$pos &lt; count($spans)">
- <xsl:call-template name="rowspans">
- <xsl:with-param name="spans" select="$spans"/>
- <xsl:with-param name="pos" select="$pos + 1"/>
- <xsl:with-param name="td" select="$td"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="rowspan">
- <xsl:choose>
- <xsl:when test="$td/@rowspan">
- <xsl:value-of select="number($td/@rowspan)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="colspan">
- <xsl:choose>
- <xsl:when test="$td/@colspan">
- <xsl:value-of select="number($td/@colspan)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="repeat">
- <xsl:with-param name="str">
- <xsl:value-of select="$rowspan - 1"/>
- <xsl:text>:</xsl:text>
- </xsl:with-param>
- <xsl:with-param name="num" select="$colspan"/>
- </xsl:call-template>
- <xsl:variable name="nextpos" select="$pos + $colspan"/>
- <xsl:if test="$nextpos &lt;= count($spans)">
- <xsl:call-template name="rowspans">
- <xsl:with-param name="spans" select="$spans"/>
- <xsl:with-param name="pos" select="$nextpos"/>
- <xsl:with-param name="td" select="$td/following-sibling::mal:td[1]"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- = td = -->
-<xsl:template match="mal:td">
- <xsl:param name="cols"/>
- <xsl:param name="rowrules"/>
- <xsl:param name="colrules"/>
- <xsl:param name="rowshade"/>
- <xsl:param name="colshade"/>
- <xsl:param name="rowspans"/>
- <xsl:variable name="trpos" select="count(../preceding-sibling::mal:tr) + 1"/>
- <xsl:variable name="tdcnt" select="count(preceding-sibling::mal:td) + 1"/>
- <xsl:variable name="spans" select="str:split($rowspans, ':')"/>
- <xsl:variable name="tdstr">
- <xsl:for-each select="$spans[. = '0'][$tdcnt]/preceding-sibling::*[not(. = '0')]">
- <xsl:text>.</xsl:text>
- </xsl:for-each>
- <xsl:for-each select="preceding-sibling::mal:td">
- <xsl:text>.</xsl:text>
- <xsl:if test="@colspan">
- <xsl:call-template name="repeat">
- <xsl:with-param name="str" select="'.'"/>
- <xsl:with-param name="num" select="number(@colspan) - 1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="tdpos" select="string-length($tdstr) + 1"/>
- <!-- FIXME: this all breaks with rowspan/colspan -->
- <xsl:variable name="shaderow">
- <xsl:choose>
- <xsl:when test="$rowshade = 'all'">
- <xsl:choose>
- <xsl:when test="../../self::mal:table">
- <xsl:value-of select="($trpos + 1) mod 2"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="bodies"
- select="../../preceding-sibling::mal:tbody |
- ../../preceding-sibling::mal:thead "/>
- <xsl:variable name="trcount" select="count($bodies/mal:tr) + $trpos"/>
- <xsl:value-of select="($trcount + 1) mod 2"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$rowshade = 'groups'">
- <xsl:variable name="bodies"
- select="../../preceding-sibling::mal:tbody |
- ../../preceding-sibling::mal:thead "/>
- <xsl:value-of select="count($bodies) mod 2"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="shadecol">
- <xsl:choose>
- <xsl:when test="$colshade = 'all'">
- <xsl:value-of select="($tdpos + 1) mod 2"/>
- </xsl:when>
- <xsl:when test="$colshade = 'groups'">
- <xsl:if test="count($cols) &gt;= $tdpos">
- <xsl:variable name="col" select="$cols[$tdpos]"/>
- <xsl:if test="$col/../self::mal:colgroup">
- <xsl:value-of
- select="count($col/../preceding-sibling::mal:colgroup) mod 2"/>
- </xsl:if>
- </xsl:if>
- <!-- FIXME -->
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="style">
- <xsl:choose>
- <xsl:when test="$rowrules = 'all'">
- <xsl:choose>
- <xsl:when test="../../self::mal:table">
- <xsl:if test="$trpos != 1">
- <xsl:text>border-top-style: solid;</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$trpos != 1 or
- ../../preceding-sibling::mal:thead or
- ../../preceding-sibling::mal:tbody ">
- <xsl:text>border-top-style: solid;</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$rowrules = 'groups'">
- <xsl:if test="$trpos = 1">
- <xsl:choose>
- <xsl:when test="../../self::mal:tbody">
- <xsl:if test="../../../mal:thead | ../../preceding-sibling::mal:tbody">
- <xsl:text>border-top-style: solid;</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:when test="../../self::mal:tfoot">
- <xsl:text>border-top-style: solid;</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$tdpos = 1"/>
- <xsl:when test="$colrules = 'all'">
- <xsl:text>border-left-style: solid;</xsl:text>
- </xsl:when>
- <xsl:when test="$colrules = 'groups'">
- <xsl:if test="count($cols) &gt;= $tdpos">
- <xsl:variable name="col" select="$cols[$tdpos]"/>
- <xsl:if test="$col/../self::mal:colgroup and
- not($col/preceding-sibling::mal:col)">
- <xsl:text>border-left-style: solid;</xsl:text>
- </xsl:if>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$shaderow = 1 and $shadecol = 1">
- <xsl:text>background-color: #d3d7cf;</xsl:text>
- </xsl:when>
- <xsl:when test="$shaderow = 1 or $shadecol = 1">
- <xsl:text>background-color: #eeeeec;</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <td>
- <xsl:if test="$style != ''">
- <xsl:attribute name="style">
- <xsl:value-of select="$style"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@colspan">
- <xsl:attribute name="colspan">
- <xsl:value-of select="@colspan"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@rowspan">
- <xsl:attribute name="rowspan">
- <xsl:value-of select="@rowspan"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates mode="mal2html.block.mode"/>
- </td>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2html.xsl b/xslt/mallard/html/mal2html.xsl
deleted file mode 100644
index 41d8b09..0000000
--- a/xslt/mallard/html/mal2html.xsl
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns:html="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="mal"
- version="1.0">
-
-<xsl:import href="../../gettext/gettext.xsl"/>
-
-<!--#@ mal.chunk.doctype_public -->
-<xsl:param name="mal.chunk.doctype_public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
-
-<!--#@ mal.chunk.doctype_system -->
-<xsl:param name="mal.chunk.doctype_system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
-
-<xsl:output method="html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
-<xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default"/>
-
-<!--#@ mal2html.namespace -->
-<xsl:param name="mal2html.namespace" select="''"/>
-
-<xsl:param name="mal.chunk.extension" select="'.html'"/>
-
-
-<!--!!==========================================================================
-Mallard to HTML
-
-REMARK: Describe this module
--->
-
-<xsl:include href="../common/mal-chunk.xsl"/>
-<xsl:include href="../common/mal-link.xsl"/>
-
-<xsl:include href="mal2html-block.xsl"/>
-<xsl:include href="mal2html-css.xsl"/>
-<xsl:include href="mal2html-inline.xsl"/>
-<xsl:include href="mal2html-list.xsl"/>
-<xsl:include href="mal2html-media.xsl"/>
-<xsl:include href="mal2html-page.xsl"/>
-<xsl:include href="mal2html-table.xsl"/>
-
-<xsl:include href="../../common/theme.xsl"/>
-<xsl:include href="../../common/utils.xsl"/>
-
-<!-- FIXME -->
-<xsl:template match="*">
- <xsl:message>
- <xsl:text>Unmatched element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/xslt/mallard/html/mal2xhtml.xsl b/xslt/mallard/html/mal2xhtml.xsl
deleted file mode 100644
index 2cb9133..0000000
--- a/xslt/mallard/html/mal2xhtml.xsl
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
-<!--
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program; see the file COPYING.LGPL. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
--->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mal="http://projectmallard.org/1.0/"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="mal"
- version="1.0">
-
-
-<xsl:import href="../../gettext/gettext.xsl"/>
-
-<!--#@ mal.chunk.doctype_public -->
-<xsl:param name="mal.chunk.doctype_public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
-
-<!--#@ mal.chunk.doctype_system -->
-<xsl:param name="mal.chunk.doctype_system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
-
-<xsl:output method="xml"
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
-
-<!--#@ mal2html.namespace -->
-<xsl:param name="mal2html.namespace" select="'http://www.w3.org/1999/xhtml'"/>
-
-<xsl:param name="mal.chunk.extension" select="'.xhtml'"/>
-
-<!--!!==========================================================================
-Mallard to HTML
-
-REMARK: Describe this module
--->
-
-<xsl:include href="../common/mal-chunk.xsl"/>
-<xsl:include href="../common/mal-link.xsl"/>
-
-<xsl:include href="mal2html-block.xsl"/>
-<xsl:include href="mal2html-css.xsl"/>
-<xsl:include href="mal2html-inline.xsl"/>
-<xsl:include href="mal2html-list.xsl"/>
-<xsl:include href="mal2html-media.xsl"/>
-<xsl:include href="mal2html-page.xsl"/>
-<xsl:include href="mal2html-table.xsl"/>
-
-<xsl:include href="../../common/theme.xsl"/>
-<xsl:include href="../../common/utils.xsl"/>
-
-<!-- FIXME -->
-<xsl:template match="*">
- <xsl:message>
- <xsl:text>Unmatched element: </xsl:text>
- <xsl:value-of select="local-name(.)"/>
- </xsl:message>
- <xsl:apply-templates/>
-</xsl:template>
-
-</xsl:stylesheet>