goba            Sun Feb 10 06:04:17 2002 EDT

  Modified files:              
    /phpdoc/xsl htmlhelp.xsl.in 
  Log:
  Do not use "./title" for title printing, as we have pages with
  title, where the title is not in a title element's text children
  Use a custom title printer instead, omitting the autogenerated
  "Chapter" and the like from nav. links
  
  
Index: phpdoc/xsl/htmlhelp.xsl.in
diff -u phpdoc/xsl/htmlhelp.xsl.in:1.11 phpdoc/xsl/htmlhelp.xsl.in:1.12
--- phpdoc/xsl/htmlhelp.xsl.in:1.11     Sat Feb  9 19:30:31 2002
+++ phpdoc/xsl/htmlhelp.xsl.in  Sun Feb 10 06:04:16 2002
@@ -3,7 +3,7 @@
 
   HTML Help specific stylesheet
 
-  $Id: htmlhelp.xsl.in,v 1.11 2002/02/10 00:30:31 goba Exp $
+  $Id: htmlhelp.xsl.in,v 1.12 2002/02/10 11:04:16 goba Exp $
 
 -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
@@ -72,7 +72,7 @@
               </xsl:call-template>
             </xsl:attribute>
             <xsl:text>&lt;&lt; </xsl:text>
-            <xsl:value-of select="$prev/title"/>
+            <xsl:apply-templates select="$prev" mode="htmlhelp.object.title"/>
           </a>
         </xsl:if>
       </td>
@@ -89,7 +89,7 @@
                 <xsl:with-param name="object" select="$next"/>
               </xsl:call-template>
             </xsl:attribute>
-            <xsl:value-of select="$next/title"/>
+            <xsl:apply-templates select="$next" mode="htmlhelp.object.title"/>
             <xsl:text> &gt;&gt;</xsl:text>
           </a>
         </xsl:if>
@@ -122,7 +122,7 @@
   <!-- Do not link if actual page, put " : " between links -->
   <xsl:choose>
     <xsl:when test="$actpage = true()">
-      <xsl:value-of select="./title"/>
+      <xsl:apply-templates select="." mode="htmlhelp.object.title"/>
     </xsl:when>
     <xsl:otherwise>
       <a>
@@ -131,7 +131,7 @@
             <xsl:with-param name="object" select="."/>
           </xsl:call-template>
         </xsl:attribute>
-        <xsl:value-of select="./title"/>
+        <xsl:apply-templates select="." mode="htmlhelp.object.title"/>
       </a>
       <xsl:text> : </xsl:text>
     </xsl:otherwise>
@@ -163,6 +163,15 @@
       </xsl:otherwise>
     </xsl:choose>
   </a>
+</xsl:template>
+
+<!-- Custom mode for titles for navigation without
+     "Chapter 1" and other autogenerated content -->
+<xsl:template match="*" mode="htmlhelp.object.title">
+  <xsl:call-template name="substitute-markup">
+    <xsl:with-param name="allow-anchors" select="0"/>
+    <xsl:with-param name="template" select="'%t'"/>
+  </xsl:call-template>
 </xsl:template>
 
 </xsl:stylesheet>


Reply via email to