[gnome-doc-utils] [mal2html-page.xsl] Adding text titles
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-doc-utils] [mal2html-page.xsl] Adding text titles
- Date: Mon, 25 Jan 2010 16:10:27 +0000 (UTC)
commit 5a82923cd7eae512e1a2d5c682fdb67a0824b19a
Author: Shaun McCance <shaunm gnome org>
Date: Mon Jan 25 10:09:15 2010 -0600
[mal2html-page.xsl] Adding text titles
xslt/mallard/html/mal2html-page.xsl | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 673c02d..4e7d29e 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -491,7 +491,15 @@ REMARK: Describe this template
<html>
<head>
<title>
- <xsl:value-of select="mal: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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]