Bug #17112 Updated: PHP xslt support needs apache to be compiled with --disable-rule=EXPAT
| From: | eru@php.net | Date: | Tue, 02 Jul 2002 20:57:23 +0000 |
| Subject: | Bug #17112 Updated: PHP xslt support needs apache to be compiled with --disable-rule=EXPAT | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-12865@lists.php.net to get a copy of this message | ||
ID: 17112
Updated by: eru@php.net
Reported By: andreas.schmitz@as-dataservice.de
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
Operating System: linux 2-2-16
PHP Version: 4.2.0
New Comment:
Per default the apache searches the system for an expat-lib and if it
finds one, this lib is used. Could you please verify, what library is
used by your apache, if you configure it without giving an expat-rule?
I couldn't verify this specific problem on my RedHat 7.3 system with
expat-1.95.2-2.
Previous Comments:
------------------------------------------------------------------------
[2002-05-09 16:49:36] mfischer@php.net
Reopening, documentation problem then.
------------------------------------------------------------------------
[2002-05-09 10:41:43] andreas.schmitz@as-dataservice.de
Hi again,
it was my mistake. I have forgotten to recompile apache with
--disable-rule=EXPAT, to disable the expat-lite version in apache. Can
someone add these hint to the XSLT Documentation.
Thanx
Greetings
Andreas
------------------------------------------------------------------------
[2002-05-09 05:30:59] andreas.schmitz@as-dataservice.de
My Server: http://www.as-dataservice.de/phpinfo.php
if I call $xsl =
xslt_process($xh,'arg:/_xml','arg:/_xsl',NULL,$arguments); this works
fine and I'll get the xslt result. But when I do a stress test
(sometimes only 10 fast reloads of the page), there are manny httpd
prozesses, which get all the cpu usage and are killed after
max_execution_time (php.ini).
-- Here the XML Code
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<as-cms><header><variables><string name="Adresse">Andreas
Schmitz,
Kastanienallee 24, 54662 Speicher</string><string
name="testvar">xtest</string></variables></header><body><menu
id="102"
tempname="temp1" name="Prodäukte"><text
style="atesttemplate">test</text><ul
style="atesttemplate"><li>Aufzählung 1</li></ul><menu
id="105"
name="Haushaltsgeräte"><menu id="123"
name="Waschmaschine"></menu></menu><menu id="122"
name="Elektro"></menu></menu><menu id="121"
name="Profil"></menu></body></as-cms>
-- Here the XSL code
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><head></head><body>
<xsl:apply-templates select="as-cms/body" />
<xsl:for-each select="/as-cms/body//menu[@tempname]">
<font size="5"><xsl:value-of select="@name" /></font><br
/>
</xsl:for-each>
</body></html>
</xsl:template>
<xsl:template match="as-cms/body">
<xsl:for-each select="menu">
<font size="3"><xsl:value-of select="@name" /></font><br
/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I hope, this description will help you.
Greetings
Andreas
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17112&edit=1