[library-web] In gtkmm mode look for doxygen elements when there is no div/@id=content
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [library-web] In gtkmm mode look for doxygen elements when there is no div/@id=content
- Date: Fri, 28 Aug 2009 12:08:08 +0000 (UTC)
commit a47aa8e32aa6c085eca2d97d513f7946f6bb093d
Author: Frédéric Péters <fpeters 0d be>
Date: Fri Aug 28 14:06:47 2009 +0200
In gtkmm mode look for doxygen elements when there is no div/@id=content
data/xslt/html2html.xsl | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/data/xslt/html2html.xsl b/data/xslt/html2html.xsl
index c2a89bb..ea98903 100644
--- a/data/xslt/html2html.xsl
+++ b/data/xslt/html2html.xsl
@@ -210,7 +210,17 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<xsl:choose>
<xsl:when test="$libgo.h2hmode = 'gtkmm'">
<h1 class="lgotitle"><xsl:value-of select="//html:title" /></h1>
- <xsl:apply-templates select="//html:div[ id='content']" mode="gtkmm"/>
+ <xsl:choose>
+ <xsl:when test="//html:div[ id='content']">
+ <xsl:apply-templates select="//html:div[ id='content']" mode="gtkmm"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <div id="content">
+ <xsl:apply-templates select="//html:div[ class='navigation']" mode="gtkmm"/>
+ <xsl:apply-templates select="//html:div[ class='contents']" mode="gtkmm"/>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:when test="$libgo.h2hmode = 'content-id'">
<xsl:apply-templates select="//html:div[ id='content']"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]