goba Sat Feb 9 09:43:16 2002 EDT
Modified files:
/phpdoc/xsl htmlhelp.xsl.in
Log:
Adding core of customizations for HTMLHelp pages
Index: phpdoc/xsl/htmlhelp.xsl.in
diff -u phpdoc/xsl/htmlhelp.xsl.in:1.3 phpdoc/xsl/htmlhelp.xsl.in:1.4
--- phpdoc/xsl/htmlhelp.xsl.in:1.3 Sat Feb 9 07:21:23 2002
+++ phpdoc/xsl/htmlhelp.xsl.in Sat Feb 9 09:43:16 2002
@@ -3,7 +3,7 @@
HTML Help specific stylesheet
- $Id: htmlhelp.xsl.in,v 1.3 2002/02/09 12:21:23 goba Exp $
+ $Id: htmlhelp.xsl.in,v 1.4 2002/02/09 14:43:16 goba Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -17,5 +17,80 @@
<xsl:param name="htmlhelp.encoding" select="'@HTMLHELP_ENCODING@'"/>
<xsl:param name="default.encoding" select="'@HTMLHELP_ENCODING@'"/>
<xsl:param name="saxon.character.representation" select="'native'"/>
+
+<!-- Custom head content to make HTML files *small* -->
+<xsl:template name="head.content">
+ <xsl:param name="node" select="."/>
+
+ <title>
+ <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
+ </title>
+
+ <script language="JavaScript1.2" src="_script.css"></script>
+
+</xsl:template>
+
+<!-- We need quite different body attribute[s] than the defaults -->
+<xsl:template name="body.attributes">
+ <xsl:attribute name="onload">displayPage();</xsl:attribute>
+</xsl:template>
+
+<!-- Our HTML head part is *extra* slim -->
+<xsl:template name="html.head">
+ <head>
+ <xsl:call-template name="head.content"/>
+ </head>
+</xsl:template>
+
+<!-- We need no header navigation (we'll need footer, so this is
+ why I have not used supress.navigation=1) -->
+<xsl:template name="header.navigation" />
+
+<!-- Footer part with special table for our special needs ;) -->
+<xsl:template name="footer.navigation">
+ <xsl:param name="prev" select="/foo"/>
+ <xsl:param name="next" select="/foo"/>
+
+ <table width="100%" border="0" cellspacing="10" cellpadding="0" class="navigation">
+ <tr align="left" valign="middle">
+ <td>
+ <xsl:if test="count($prev)>0">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$prev"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:text><< </xsl:text>
+ <xsl:apply-templates select="$prev" mode="object.title.markup"/>
+ </a>
+ </xsl:if>
+ </td>
+ <td align="center">
+ ::path to this page here::
+ </td>
+ <td align="right">
+ <xsl:if test="count($next)>0">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$next"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="$next" mode="object.title.markup"/>
+ <xsl:text> >></xsl:text>
+ </a>
+ </xsl:if>
+ </td>
+ </tr>
+ <tr align="center" valign="middle">
+ <td colspan="3">
+ <a href="javascript:thisPageOnline();">This page online</a>
+ <xsl:text> &nbsp; </xsl:text>
+ <a href="javascript:bugOnPage();">Report a bug</a>
+ </td>
+ </tr>
+ </table>
+</xsl:template>
</xsl:stylesheet>