[yelp-xsl] Changes to allow Yelp to highlight a section on #anchor click
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] Changes to allow Yelp to highlight a section on #anchor click
- Date: Thu, 1 Apr 2010 22:14:15 +0000 (UTC)
commit 7565e1c28515923ab31117625bb33ff5895c926f
Author: Shaun McCance <shaunm gnome org>
Date: Thu Apr 1 16:21:22 2010 -0500
Changes to allow Yelp to highlight a section on #anchor click
xslt/docbook/html/db2html-division.xsl | 8 +++++---
xslt/mallard/html/mal2html-page.xsl | 11 +++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 5809cc3..8ffad77 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -313,9 +313,11 @@ REMARK: Talk about some of the parameters
</xsl:attribute>
</xsl:when>
</xsl:choose>
- <xsl:call-template name="db2html.anchor">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
+ <xsl:if test="$node/@id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="$node/@id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:call-template name="db2html.header">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="title_node" select="$title_node"/>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 98466b3..d7b5f3d 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -346,6 +346,16 @@ REMARK: Describe this template
<!--**==========================================================================
+mal2html.page.head.extra
+FIXME
+:Stub: true
+
+REMARK: Describe this stub template.
+-->
+<xsl:template name="mal2html.page.head.extra"/>
+
+
+<!--**==========================================================================
mal2html.page.headbar
FIXME
@@ -497,6 +507,7 @@ REMARK: Describe this template
</xsl:choose>
</title>
<xsl:call-template name="mal2html.css"/>
+ <xsl:call-template name="mal2html.page.head.extra"/>
</head>
<body class="{ style}">
<xsl:call-template name="mal2html.page.headbar">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]