diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-15 06:55:11 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-15 06:55:11 +0900 |
commit | d2cfd1f36d94c2377115f9ac79213eae31f83464 (patch) | |
tree | d33d3aadc7edbb0b5dd84194e053e16fc4410c06 /common/targets.xsl | |
parent | 4c7d5230da2c9c32ccfd18cf1f46b8c50d32db7a (diff) | |
download | docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.gz docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.bz2 docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.zip |
Imported Upstream version 1.79.2upstream/1.79.2
Diffstat (limited to 'common/targets.xsl')
-rw-r--r-- | common/targets.xsl | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/common/targets.xsl b/common/targets.xsl index 31e1fe3..aa9430c 100644 --- a/common/targets.xsl +++ b/common/targets.xsl @@ -1,16 +1,15 @@ <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + xmlns:d="http://docbook.org/ns/docbook" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exsl="http://exslt.org/common" - exclude-result-prefixes="doc exsl" + exclude-result-prefixes="doc exsl d" version='1.0'> <!-- ******************************************************************** - $Id: targets.xsl 9286 2012-04-19 10:10:58Z bobstayton $ - ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://docbook.sf.net/release/xsl/current/ for + See ../README or http://cdn.docbook.org/release/xsl/current/ for copyright and other information. ******************************************************************** --> @@ -210,65 +209,65 @@ document output. </xsl:template> --> -<xsl:template match="set" mode="olink.mode"> +<xsl:template match="d:set" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="book" mode="olink.mode"> +<xsl:template match="d:book" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="preface|chapter|appendix" mode="olink.mode"> +<xsl:template match="d:preface|d:chapter|d:appendix" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="part|reference" mode="olink.mode"> +<xsl:template match="d:part|d:reference" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="article" mode="olink.mode"> +<xsl:template match="d:article" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="topic" mode="olink.mode"> +<xsl:template match="d:topic" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="bibliography|bibliodiv" mode="olink.mode"> +<xsl:template match="d:bibliography|d:bibliodiv" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="biblioentry|bibliomixed" mode="olink.mode"> +<xsl:template match="d:biblioentry|d:bibliomixed" mode="olink.mode"> <xsl:call-template name="obj"/> </xsl:template> -<xsl:template match="refentry" mode="olink.mode"> +<xsl:template match="d:refentry" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="section|sect1|sect2|sect3|sect4|sect5" mode="olink.mode"> +<xsl:template match="d:section|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="refsection|refsect1|refsect2|refsect3" mode="olink.mode"> +<xsl:template match="d:refsection|d:refsect1|d:refsect2|d:refsect3" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> -<xsl:template match="figure|example|table" mode="olink.mode"> +<xsl:template match="d:figure|d:example|d:table" mode="olink.mode"> <xsl:call-template name="obj"/> <xsl:apply-templates mode="olink.mode"/> </xsl:template> -<xsl:template match="equation[title or info/title]" mode="olink.mode"> +<xsl:template match="d:equation[d:title or d:info/d:title]" mode="olink.mode"> <xsl:call-template name="obj"/> </xsl:template> -<xsl:template match="qandaset|qandaentry" mode="olink.mode"> +<xsl:template match="d:qandaset|d:qandaentry" mode="olink.mode"> <xsl:call-template name="div"/> </xsl:template> <!-- handle an glossary collection --> -<xsl:template match="glossary[@role='auto']" mode="olink.mode" priority="2"> +<xsl:template match="d:glossary[@role='auto']" mode="olink.mode" priority="2"> <xsl:variable name="collection" select="document($glossary.collection, .)"/> <xsl:if test="$glossary.collection = ''"> <xsl:message> @@ -298,7 +297,7 @@ document output. </xsl:template> <!-- construct a glossary in memory --> -<xsl:template match="glossary" mode="assemble.auto.glossary"> +<xsl:template match="d:glossary" mode="assemble.auto.glossary"> <xsl:copy> <xsl:copy-of select="@*[not(local-name() = 'role')]"/> <xsl:apply-templates select="node()" mode="assemble.auto.glossary"/> @@ -308,17 +307,17 @@ document output. <xsl:template name="select.glossentries"> <xsl:param name="collection" select="document($glossary.collection, .)"/> - <xsl:param name="terms" select="//glossterm[not(parent::glossdef)]|//firstterm"/> + <xsl:param name="terms" select="//d:glossterm[not(parent::d:glossdef)]|//d:firstterm"/> - <xsl:for-each select="$collection//glossentry"> - <xsl:variable name="cterm" select="glossterm"/> + <xsl:for-each select="$collection//d:glossentry"> + <xsl:variable name="cterm" select="d:glossterm"/> <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> <xsl:copy-of select="."/> </xsl:if> </xsl:for-each> </xsl:template> -<xsl:template match="glossentry" mode="assemble.auto.glossary"> +<xsl:template match="d:glossentry" mode="assemble.auto.glossary"> <!-- skip the dummy entries --> </xsl:template> |