]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix ugly performance problem with chunking (thanks Guillaume du Bourguet)
authorNorman Walsh <ndw@nwalsh.com>
Mon, 24 Nov 2003 16:39:24 +0000 (16:39 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 24 Nov 2003 16:39:24 +0000 (16:39 +0000)
xsl/html/chunk-common.xsl

index ab43a561acb797f5af44c0e007cada56263ed18b..b222ea0061b0c46d3e7d0b11cc3158218fd91d95 100644 (file)
   <xsl:variable name="row1" select="$navig.showtitles != 0"/>
   <xsl:variable name="row2" select="count($prev) &gt; 0
                                     or (count($up) &gt; 0 
-                                        and $up != $home
+                                       and generate-id($up) != generate-id($home)
                                         and $navig.showtitles != 0)
                                     or count($next) &gt; 0"/>
 
               <th width="60%" align="center">
                 <xsl:choose>
                   <xsl:when test="count($up) > 0
-                                  and $up != $home
+                                 and generate-id($up) != generate-id($home)
                                   and $navig.showtitles != 0">
                     <xsl:apply-templates select="$up" mode="object.title.markup"/>
                   </xsl:when>