goba Sat Feb 9 11:09:36 2002 EDT
Modified files:
/phpdoc/xsl htmlhelp.xsl.in
Log:
So, will be OK now ;) I have also tried to add
some "path to this page" code, but ended up in an infinite
loop, because context allways stayed the same, but commit
this before I forget about it
Index: phpdoc/xsl/htmlhelp.xsl.in
diff -u phpdoc/xsl/htmlhelp.xsl.in:1.5 phpdoc/xsl/htmlhelp.xsl.in:1.6
--- phpdoc/xsl/htmlhelp.xsl.in:1.5 Sat Feb 9 10:05:15 2002
+++ phpdoc/xsl/htmlhelp.xsl.in Sat Feb 9 11:09:36 2002
@@ -3,7 +3,7 @@
HTML Help specific stylesheet
- $Id: htmlhelp.xsl.in,v 1.5 2002/02/09 15:05:15 goba Exp $
+ $Id: htmlhelp.xsl.in,v 1.6 2002/02/09 16:09:36 goba Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -18,6 +18,10 @@
<xsl:param name="default.encoding" select="'@HTMLHELP_ENCODING@'"/>
<xsl:param name="saxon.character.representation" select="'native'"/>
+<!-- ======================================================================
+ Custom XSL code for PHP CHM Nanual
+ -->
+
<!-- Custom head content to make HTML files *small* -->
<xsl:template name="head.content">
<xsl:param name="node" select="."/>
@@ -50,7 +54,7 @@
<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>
@@ -67,7 +71,13 @@
</xsl:if>
</td>
<td align="center">
- ::path to this page here::
+ <!-- this is infinite resursion ;)
+ <xsl:call-template name="path.to.this.page">
+ <xsl:with-param name="actpage" select="true()"/>
+ <xsl:with-param name="up" select="parent::*"/>
+ </xsl:call-template>
+ -->
+ :: path to this page here ::
</td>
<td align="right">
<xsl:if test="count($next)>0">
@@ -86,11 +96,46 @@
<tr align="center" valign="middle">
<td colspan="3">
<a href="javascript:thisPageOnline();">This page online</a>
- <xsl:text><![CDATA[ ]]></xsl:text>
+ <xsl:text disable-output-escaping="yes"> &nbsp; </xsl:text>
<a href="javascript:bugOnPage();">Report a bug</a>
</td>
</tr>
</table>
</xsl:template>
+
+<!-- Comment out infinite recursion for now
+<!- Try to figure out the path to this page from the main page ->
+<xsl:template name="path.to.this.page">
+ <xsl:param name="actpage" select="false()"/>
+ <xsl:variable name="up" select="parent::*"/>
+
+ <!- Call this recursively for the parent ->
+ <xsl:choose>
+ <xsl:when test="count($up)>0">
+ <xsl:call-template name="path.to.this.page">
+ <xsl:with-param name="actpage" select="false()"/>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+
+ <!- Do not link if actual page, put " : " between links ->
+ <xsl:choose>
+ <xsl:when test="$actpage = true()">
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="."/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </a>
+ <xsl:text> : </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+-->
</xsl:stylesheet>