cvs: php-gtk /docs/stylesheets/xsl/html class.xsl
| From: | James Moore | Date: | Tue, 27 Mar 2001 18:42:11 +0000 |
| Subject: | cvs: php-gtk /docs/stylesheets/xsl/html class.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1154@lists.php.net to get a copy of this message | ||
jmoore Tue Mar 27 10:42:11 2001 EDT
Modified files:
/php-gtk/docs/stylesheets/xsl/html class.xsl
Log:
Write output from template parse to correct HTML file
Index: php-gtk/docs/stylesheets/xsl/html/class.xsl
diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.13
php-gtk/docs/stylesheets/xsl/html/class.xsl:1.14
--- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.13 Tue Mar 27 09:30:59 2001
+++ php-gtk/docs/stylesheets/xsl/html/class.xsl Tue Mar 27 10:42:10 2001
@@ -141,12 +141,14 @@
<xsl:text> and modify the stylesheets instead. -*- */
</xsl:text>
<xsl:text>



- require_once("../scripts/TemplateParser.class");
- $tpl = new TemplateParser("../templates/");
- $tpl->addtemplate("classentry_tpl","classentry.tpl");
- $tpl->addtemplate("classmethod_tpl","classentry.tpl");
- $tpl->addtemplate("classsignals_tpl","classsignals.tpl");
- $tpl->addtemplate("classattributes_tpl","classattributes.tpl");
+ require_once("../scripts/TemplateParser.class");

+ require_once("../scripts/CommonFuncs.inc");

+ $tpl = new TemplateParser("../templates/");

+ $tpl->addtemplate("classentry_tpl","classentry.tpl");

+ $tpl->addtemplate("classmethod_tpl","classentry.tpl");

+ $tpl->addtemplate("classsignals_tpl","classsignals.tpl");

+ $tpl->addtemplate("classattributes_tpl","classattributes.tpl");

+ $filename = ereg_replace(".xml","", __FILE__ );
</xsl:text>
<!-- Page Variables -->
@@ -361,7 +363,19 @@
<xsl:value-of select="$attributes.content"/>
<xsl:value-of select="$signals.content"/>
- <xsl:text>

</xsl:text>
+ <xsl:text>
</xsl:text>
+ <xsl:text>
+ $tpl->define("class_hierachy",get_class_hierachy(
+ </xsl:text>
+ <xsl:value-of select="$class.title"/>
+ <xsl:text>),0);
</xsl:text>
+ <xsl:text>
+ $tpl->parse("classtentry_out","classentry_tpl");

+ $classentry_html = $tpl->output("classentry_out");

+ $fp = fopen($filename,"w");

+ fwrite($fp, $classentry_html);

+ fclose($fp);


+ </xsl:text>
<!-- hack for bug in saxon -->
<xsl:text>?</xsl:text>