- Port stylesheets to namespaced processing

This commit is contained in:
Gabor Kovesdan 2013-06-30 09:58:03 +00:00
parent b422bc43c3
commit 4db9d86d82
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42093
7 changed files with 963 additions and 964 deletions

View file

@ -3,12 +3,14 @@
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="db"
version='1.0'>
<!-- Global customisation -->
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:template match="buildtarget|command|userinput">
<xsl:template match="db:buildtarget|db:command|db:userinput">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>

View file

@ -3,9 +3,7 @@
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
version='1.0'>
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook-ns/epub/docbook.xsl"/>

View file

@ -4,9 +4,9 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
version='1.0'
exclude-result-prefixes="#default">
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="db"
version="1.0">
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook-ns/fo/docbook.xsl"/>
@ -69,7 +69,7 @@
</xsl:template>
-->
<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
<xsl:template match="db:abstract" mode="article.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
</fo:block>

View file

@ -5,7 +5,8 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="db">
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook-ns/xhtml/chunk.xsl"/>

View file

@ -4,10 +4,10 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:str="http://exslt.org/strings"
extension-element-prefixes="str"
exclude-result-prefixes="#default">
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="db"
extension-element-prefixes="str">
<!-- Include the common customizations -->
<xsl:import href="freebsd-common.xsl"/>
@ -65,16 +65,16 @@
</div>
</xsl:template>
<xsl:template match="citerefentry" mode="no.anchor.mode">
<xsl:template match="db:citerefentry" mode="no.anchor.mode">
<xsl:apply-templates select="*" mode="no.anchor.mode"/>
</xsl:template>
<xsl:template match="refentrytitle" mode="no.anchor.mode">
<xsl:template match="db:refentrytitle" mode="no.anchor.mode">
<xsl:value-of select="."/>
</xsl:template>
<!-- Add title class to emitted hX -->
<xsl:template match="bridgehead">
<xsl:template match="db:bridgehead">
<xsl:variable name="container" select="(ancestor::appendix|ancestor::article|ancestor::bibliography|
ancestor::chapter|ancestor::glossary|ancestor::glossdiv|ancestor::index|ancestor::partintro|
ancestor::preface|ancestor::refsect1|ancestor::refsect2|ancestor::refsect3|ancestor::sect1|
@ -157,7 +157,7 @@
</a>
</xsl:template>
<xsl:template match="svnref">
<xsl:template match="db:svnref">
<xsl:call-template name="svnref.genlink"/>
</xsl:template>
@ -220,7 +220,7 @@
</span>
</xsl:template>
<xsl:template match="contrib">
<xsl:template match="db:contrib">
<xsl:apply-templates/>
</xsl:template>

File diff suppressed because it is too large Load diff

View file

@ -3,9 +3,7 @@
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
version='1.0'>
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook-ns/xhtml/docbook.xsl"/>