[library-web] add possibility to hide source uri for remote documents
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] add possibility to hide source uri for remote documents
- Date: Sun, 20 Mar 2011 11:35:34 +0000 (UTC)
commit 0ac7d66147cf04281a9cc492a4b45ab248009087
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Mar 20 12:19:16 2011 +0100
add possibility to hide source uri for remote documents
data/xslt/html2html.xsl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/xslt/html2html.xsl b/data/xslt/html2html.xsl
index c2f9c4f..beac329 100644
--- a/data/xslt/html2html.xsl
+++ b/data/xslt/html2html.xsl
@@ -35,6 +35,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<xsl:param name="libgo.extracss"/>
<xsl:param name="libgo.originalhref"/>
<xsl:param name="libgo.h2hmode" select="'body'"/>
+ <xsl:param name="libgo.hidehref" select="'false'"/>
<xsl:output method="html" encoding="UTF-8" indent="yes"
omit-xml-declaration="yes"
@@ -219,7 +220,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<body>
<xsl:call-template name="libgo.header" />
<div class="body {$libgo.h2hmode}">
- <xsl:if test="$libgo.originalhref">
+ <xsl:if test="$libgo.originalhref and $libgo.hidehref != 'true'">
<p class="canonical-ref">
Canonical document reference:
<a href="{$libgo.originalhref}"><xsl:value-of select="$libgo.originalhref"/></a>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]