You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2003/08/07 14:26:09 UTC
cvs commit: xml-forrest/src/resources/skins/common/xslt/html document2html.xsl
jefft 2003/08/07 05:26:09
Modified: src/resources/skins/common/xslt/html document2html.xsl
Log:
If disable-pdf-link is undefined, as in 0.4 sites, assume it is false (so PDFs
are displayed)
Revision Changes Path
1.21 +2 -2 xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- document2html.xsl 29 Jul 2003 22:00:17 -0000 1.20
+++ document2html.xsl 7 Aug 2003 12:26:09 -0000 1.21
@@ -125,7 +125,7 @@
<!-- Generates the PDF link -->
<xsl:template name="pdflink">
- <xsl:if test="$disable-pdf-link = 'false'">
+ <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">
<td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.pdf" class="dida">
<img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF"/><br/>
PDF</a>