goba            Sun Feb 10 07:12:44 2002 EDT

  Modified files:              
    /phpdoc/xsl htmlhelp.xsl.in 
  Log:
  Use import for html-common.xsl to allow template overrides
  Introduce special function page formatting scheme for our HH pages.
  
  
Index: phpdoc/xsl/htmlhelp.xsl.in
diff -u phpdoc/xsl/htmlhelp.xsl.in:1.12 phpdoc/xsl/htmlhelp.xsl.in:1.13
--- phpdoc/xsl/htmlhelp.xsl.in:1.12     Sun Feb 10 06:04:16 2002
+++ phpdoc/xsl/htmlhelp.xsl.in  Sun Feb 10 07:12:44 2002
@@ -3,7 +3,7 @@
 
   HTML Help specific stylesheet
 
-  $Id: htmlhelp.xsl.in,v 1.12 2002/02/10 11:04:16 goba Exp $
+  $Id: htmlhelp.xsl.in,v 1.13 2002/02/10 12:12:44 goba Exp $
 
 -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
@@ -172,6 +172,40 @@
     <xsl:with-param name="allow-anchors" select="0"/>
     <xsl:with-param name="template" select="'%t'"/>
   </xsl:call-template>
+</xsl:template>
+
+<!-- Special reference page formatting for HH -->
+
+<!--  Function page sample:
+<h2 class="subheader">Format a local time/date. (PHP 3, PHP 4 &gt;= 4.0.0)<br>
+Usage: string date (string format, int [timestamp])<br></h2>
+-->
+<xsl:template match="refnamediv">
+  <div class="{name(.)}">
+    <xsl:call-template name="anchor"/>
+    <h2 class="subheader">
+      <xsl:value-of select="./refpurpose"/>
+      (<xsl:value-of 
+select="$version/function[@name=string(current()/refname)]/@from"/>)
+      <br/>
+      <xsl:apply-templates select="../refsect1/methodsynopsis" 
+mode="htmlhelp.methodsyn"/>
+    </h2>
+  </div>
+</xsl:template>
+
+<!-- Drop out constant "Description" -->
+<xsl:template match="refsect1/title"/>
+<xsl:template match="refsect1/refpurpose"/>
+
+<!-- Avoid printout of methosyns, where we do not want them,
+     but print out them in header -->
+<xsl:template match="methodsynopsis"/>
+<xsl:template match="methodsynopsis" mode="htmlhelp.methodsyn">
+  <xsl:apply-templates/><br/>
+</xsl:template>
+
+<!-- do not enclose <methodname> in a <tt> -->
+<xsl:template match="methodname">
+  <xsl:call-template name="inline.charseq"/>
 </xsl:template>
 
 </xsl:stylesheet>


Reply via email to