]> granicus.if.org Git - docbook-dsssl/commitdiff
Added $rootid support also for title of HTML Help window
authorJirka Kosek <jirka@kosek.cz>
Tue, 27 Nov 2001 21:30:03 +0000 (21:30 +0000)
committerJirka Kosek <jirka@kosek.cz>
Tue, 27 Nov 2001 21:30:03 +0000 (21:30 +0000)
xsl/htmlhelp/htmlhelp.xsl

index 1853db94a93c4dc4078f53f57f8d919eb8736d06..e2f035427e447d9496b562827ca01cdb0fb89368 100644 (file)
@@ -98,7 +98,15 @@ Language=</xsl:text>
   <xsl:text>0x0409 English (United States)</xsl:text>
 </xsl:if>
 <xsl:text>
-Title=</xsl:text><xsl:value-of select="normalize-space(//title[1])"/>
+Title=</xsl:text>
+  <xsl:choose>
+    <xsl:when test="$rootid != ''">
+      <xsl:value-of select="normalize-space(key('id',$rootid)//title[1])"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:value-of select="normalize-space(//title[1])"/>
+    </xsl:otherwise>
+  </xsl:choose>
 <xsl:text>
 
 [FILES]