summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-06 11:50:51 +0100
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-06 11:50:51 +0100
commit14b660c1b43c74e8db2abb51e38e7a1aa38220a2 (patch)
treef78a8637465b7a4c9624fef03d27eb7aeaa779d4 /template
parentb2d73bee5e123c5e69352a447d4bc318132612d9 (diff)
downloaddocbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.gz
docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.bz2
docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.zip
Imported Upstream version 1.78.1upstream/1.78.1
Diffstat (limited to 'template')
-rw-r--r--template/titlepage.xml2
-rw-r--r--template/titlepage.xsl12
2 files changed, 10 insertions, 4 deletions
diff --git a/template/titlepage.xml b/template/titlepage.xml
index b9fb6c5..80b58ae 100644
--- a/template/titlepage.xml
+++ b/template/titlepage.xml
@@ -6,7 +6,7 @@
<info>
<title>Titlepage Template Stylesheet Reference</title>
<releaseinfo role="meta">
- $Id: titlepage.xsl 9394 2012-06-02 21:18:04Z bobstayton $
+ $Id: titlepage.xsl 9600 2012-09-11 12:12:09Z kosek $
</releaseinfo>
</info>
<partintro xml:id="intro_partintro">
diff --git a/template/titlepage.xsl b/template/titlepage.xsl
index 836be0e..388d4e3 100644
--- a/template/titlepage.xsl
+++ b/template/titlepage.xsl
@@ -9,7 +9,7 @@
version='1.0'>
<!-- ********************************************************************
- $Id: titlepage.xsl 9394 2012-06-02 21:18:04Z bobstayton $
+ $Id: titlepage.xsl 9600 2012-09-11 12:12:09Z kosek $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -21,7 +21,13 @@
<!-- ==================================================================== -->
<!-- Namespace for wrapper elements. Please set it for XHTML. -->
-<xsl:param name="ns"/>
+<xsl:param name="ns">
+ <!-- Guess correct setting for cases where parameter is not supplied -->
+ <xsl:choose>
+ <xsl:when test="//*[namespace-uri() = 'http://www.w3.org/1999/XSL/Format']">http://www.w3.org/1999/XSL/Format</xsl:when>
+ <xsl:when test="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']">http://www.w3.org/1999/xhtml</xsl:when>
+ </xsl:choose>
+</xsl:param>
<xsl:template match="/">
<xsl:text>&#x0a;</xsl:text>
@@ -35,7 +41,7 @@
<info>
<title>Titlepage Template Stylesheet Reference</title>
<releaseinfo role="meta">
- $Id: titlepage.xsl 9394 2012-06-02 21:18:04Z bobstayton $
+ $Id: titlepage.xsl 9600 2012-09-11 12:12:09Z kosek $
</releaseinfo>
</info>
<partintro xml:id="intro_partintro">