[library-web] handle the case where @single is not set



commit d63f10653c81b0c1383a369114bc421429198b79
Author: Frédéric Péters <fpeters 0d be>
Date:   Thu Apr 7 14:23:02 2011 +0530

    handle the case where @single is not set

 data/xslt/dev_indexes.xsl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/xslt/dev_indexes.xsl b/data/xslt/dev_indexes.xsl
index 013ee09..9c07ca9 100644
--- a/data/xslt/dev_indexes.xsl
+++ b/data/xslt/dev_indexes.xsl
@@ -263,7 +263,7 @@ $lang]"/>
 </xsl:if>
 </xsl:template>
 
-<xsl:template match="document[ path != '' and @single != 'true']" mode="modindex">
+<xsl:template match="document[ path != '' and (not(@single) or @single != 'true')]" mode="modindex">
 <xsl:param name="lang"/>
 <xsl:if test="concat('/', @channel, '/', @modulename, '/') != @path">
 <!-- don't write document index if the document is not versioned -->



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]