cvs: phpdoc /xsl param_html.xsl.in phpweb.xsl
| From: | Gabor Hojtsy | Date: | Mon, 21 Apr 2003 12:50:55 +0000 |
| Subject: | cvs: phpdoc /xsl param_html.xsl.in phpweb.xsl | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969352760@lists.php.net to get a copy of this message | ||
goba Mon Apr 21 08:50:55 2003 EDT
Modified files:
/phpdoc/xsl param_html.xsl.in phpweb.xsl
Log:
Making the phpweb header really parameterized...
Index: phpdoc/xsl/param_html.xsl.in
diff -u phpdoc/xsl/param_html.xsl.in:1.1 phpdoc/xsl/param_html.xsl.in:1.2
--- phpdoc/xsl/param_html.xsl.in:1.1 Sat Apr 19 13:00:02 2003
+++ phpdoc/xsl/param_html.xsl.in Mon Apr 21 08:50:55 2003
@@ -3,7 +3,7 @@
param_html.xsl: Parameters generated by the configure-script
- $Id: param_html.xsl.in,v 1.1 2003/04/19 17:00:02 goba Exp $
+ $Id: param_html.xsl.in,v 1.2 2003/04/21 12:50:55 goba Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -15,5 +15,17 @@
<!-- Set output encoding for the chunker
(was: default.encoding ) -->
<xsl:param name="chunker.output.encoding"
select="'@ENCODING@'"/>
+
+<!-- Configure parameterized header of the PHP
+ output of the phpweb stylesheet -->
+<xsl:template name="phpweb.header">
+
+ <xsl:text disable-output-escaping="yes"><?php
+ require('shared-manual.inc');
+ sendManualHeaders('@ENCODING@','@LANG@');
+ setupNavigation(array(
+ 'home' => </xsl:text>
+
+</xsl:template>
</xsl:stylesheet>
Index: phpdoc/xsl/phpweb.xsl
diff -u phpdoc/xsl/phpweb.xsl:1.2 phpdoc/xsl/phpweb.xsl:1.3
--- phpdoc/xsl/phpweb.xsl:1.2 Sun Apr 20 05:08:23 2003
+++ phpdoc/xsl/phpweb.xsl Mon Apr 21 08:50:55 2003
@@ -3,7 +3,7 @@
PHP.net web site specific stylesheet
- $Id: phpweb.xsl,v 1.2 2003/04/20 09:08:23 goba Exp $
+ $Id: phpweb.xsl,v 1.3 2003/04/21 12:50:55 goba Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -32,18 +32,14 @@
<xsl:variable name="home" select="/*[1]"/>
<xsl:variable name="up" select="parent::*"/>
- <xsl:text disable-output-escaping="yes"><?php
- require('shared-manual.inc');
- sendManualHeaders('@ENCODING@','@LANG@');
- setupNavigation(array(
- 'home' => </xsl:text>
+ <xsl:call-template name="phpweb.header"/>
<xsl:call-template name="phpdoc.nav.array">
<xsl:with-param name="node" select="$home"/>
</xsl:call-template>
<xsl:text disable-output-escaping="yes">,
- 'prev' => </xsl:text>
+ 'prev' =< </xsl:text>
<xsl:call-template name="phpdoc.nav.array">
<xsl:with-param name="node" select="$prev"/>