summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-17 20:07:05 +0000
committer <>2015-07-07 10:18:30 +0000
commit802da9dd5d4bc18f46a916eedc0c5c1980a15e59 (patch)
treef78a8637465b7a4c9624fef03d27eb7aeaa779d4 /template
parent18f63104106b81bf37ca1af774d7be38051e5444 (diff)
downloaddocbook-xsl-master.tar.gz
Imported from /home/lorry/working-area/delta_docbook-xsl/docbook-xsl-1.78.1.tar.bz2.HEADdocbook-xsl-1.78.1master
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">