goba            Mon Feb 11 04:06:50 2002 EDT

  Modified files:              
    /phpdoc/xsl htmlhelp.xsl.in 
  Log:
  Use a var to store the page title (use our own page title if we cannot
  go up more => first page). This needs some error corrections, but I
  would not like to forget to commit it.
  
  Also all the literal text stuff here needs some localization (I am on it).
  
  
Index: phpdoc/xsl/htmlhelp.xsl.in
diff -u phpdoc/xsl/htmlhelp.xsl.in:1.19 phpdoc/xsl/htmlhelp.xsl.in:1.20
--- phpdoc/xsl/htmlhelp.xsl.in:1.19     Sun Feb 10 13:42:01 2002
+++ phpdoc/xsl/htmlhelp.xsl.in  Mon Feb 11 04:06:50 2002
@@ -3,7 +3,7 @@
 
   HTML Help specific stylesheet
 
-  $Id: htmlhelp.xsl.in,v 1.19 2002/02/10 18:42:01 goba Exp $
+  $Id: htmlhelp.xsl.in,v 1.20 2002/02/11 09:06:50 goba Exp $
 
 -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
@@ -123,13 +123,20 @@
       <xsl:apply-templates select="parent::*" mode="path.to.this.page">
         <xsl:with-param name="actpage" select="false()"/>
       </xsl:apply-templates>
+      <xsl:variable name="object.title">
+        <xsl:apply-templates select="." mode="htmlhelp.object.title"/>
+      </xsl:variable>
     </xsl:when>
+    <xsl:otherwise>
+      <xsl:variable name="object.title" select="'Main'"/>
+    </xsl:otherwise>
   </xsl:choose>
+  
 
   <!-- Do not link if actual page, put " : " between links -->
   <xsl:choose>
     <xsl:when test="$actpage = true()">
-      <xsl:apply-templates select="." mode="htmlhelp.object.title"/>
+      <xsl:value-of select="$object.title"/>
     </xsl:when>
     <xsl:otherwise>
       <a>
@@ -138,7 +145,7 @@
             <xsl:with-param name="object" select="."/>
           </xsl:call-template>
         </xsl:attribute>
-        <xsl:apply-templates select="." mode="htmlhelp.object.title"/>
+        <xsl:value-of select="$object.title"/>
       </a>
       <xsl:text> : </xsl:text>
     </xsl:otherwise>
@@ -429,3 +436,4 @@
 </xsl:template>
 
 </xsl:stylesheet>
+


Reply via email to