From:             fidanza at uniroma3 dot it
Operating system: Windows Server 2003
PHP version:      5.1.2
PHP Bug Type:     XSLT related
Bug description:  XSLT stylesheet can't be processed more

Description:
------------
A simple xslt stylesheet used on a production website with php 5.0.4
doesn't work more since we installed php 5.1.2.รน

Reproduce code:
---------------
PHP code:

public function loadXslFile(filewrapper $xslFile) {
                
        $this->xslDom->load( $xslFile->getFileName() );
        $this->xslProcessor->importStylesheet( $this->xslDom );
                                
}

XSLT file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"
omit-xml-declaration="yes" />
<xsl:strip-space elements="*" />
<xsl:param name="current"/>
        <xsl:template match="[EMAIL PROTECTED]">
                        <xsl:if test="not(@id='home')">
                                :: <xsl:value-of select="@title" />             
                        
                        </xsl:if>
        </xsl:template>
</xsl:stylesheet>

Expected result:
----------------
The XSLT is expected to return the title attribute of a node element which
id matches 'current' param value.

Actual result:
--------------
We obtain the message:

XSLTProcessor::importStylesheet() [function.importStylesheet]: Undefined
variable

Trying to extend the scope of xsl:param to enclose the whole template will
result in:

XSLTProcessor::importStylesheet() [function.importStylesheet]: compilation
error: file D:/InetPub/wwwroot/www.uniroma3.it/xml/pagetitle.xsl line 6
element template

-- 
Edit bug report at http://bugs.php.net/?id=36416&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36416&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36416&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36416&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36416&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36416&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36416&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36416&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36416&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36416&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36416&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36416&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36416&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36416&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36416&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36416&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36416&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36416&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36416&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36416&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36416&r=mysqlcfg

Reply via email to