[library-web] add possibility to hide source uri for remote documents



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]