XSLT select syntax
| From: | Pasha Zubkov | Date: | Mon, 09 Aug 2004 13:58:58 +0000 |
| Subject: | XSLT select syntax | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193196@lists.php.net to get a copy of this message | ||
Hi,
In php5.0.0 I can use next select syntax:
<xsl:variable name="menus" select="php:function('Menu::createXML')/menus"/>
but in php5.1.0-dev I see this warning
/mnt/data/www/html/web/Includes/Theme.php on line 117 Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: runtime error: file /mnt/data/www/html/linux.grodno.by/web/Themes/FreeWay/Templates/Modules/module.xsl line 22 element variable in /mnt/data/www/html/web/Includes/Theme.php on line 117 Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: Evaluating global variable being computed ... failed in /mnt/data/www/html/web/Includes/Theme.php on line 117Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: Invalid type in
Menu::createXML() static method, returns XML document... in php5.0 all work fine, but in 5.1.0-dev dasn't. How i can do this in php5.1... or it's a bug?