← Prev in month ← Prev in thread

DOCBOOK-APPS: Compiled HTML Help - Home Menu Item

From
Nicholas Atkinson <>
Date
2002-10-12T15:10:03+00:00
ID
001001c27201$0e6810b0$0300000a@natkinwkstn
Thread
DOCBOOK-APPS: Compiled HTML Help - Home Menu Item
What is the correct procedure for contributing bug 
fixes?

 

I have discovered a problem with the v 1.56.1 
stylesheets for creating HTML Help.  The bug occurs if you do not have a 
home button (i.e if the htmlhelp.button.home parameter is 0).  If you do 
not have a home button then the Options->Home menu item does not take 
you to 

the right place (instead it takes you to an error 
page).

 

My solution for this problem is to replace these 
lines at line 190 of htmlhelp-common.xsl:

 

<xsl:if test="$htmlhelp.button.home != 
0">
  <xsl:text>"</xsl:text>
  <xsl:value-of 
select="$htmlhelp.button.home.url"/>
  
<xsl:text>"</xsl:text>
</xsl:if>

 

With these replacement lines:

 

<xsl:choose>
<xsl:when 
test="$htmlhelp.button.home != 0">
  
<xsl:text>"</xsl:text>
  <xsl:value-of 
select="$htmlhelp.button.home.url"/>
  
<xsl:text>"</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>"</xsl:text>
<xsl:value-of 
select="$default.topic"/>
<xsl:text>"</xsl:text>
</xsl:otherwise>
</xsl:choose>

 

nik
← Prev in month ← Prev in thread