From: felixsigl at gmail dot com Operating system: Windows PHP version: 5.3.0 PHP Bug Type: XSLT related Bug description: XSLTProcessor returns Error at xsl:variable with comment inside
Description: ------------ I have a lot of XSL files which i want to process with the libxml XSLTProcessor. But the XSLTProcessor returns Error at xsl:variable with a comment inside. I don´t know exactly if this is a bug but i think so. I know that i should use either a select attribute or child nodes in the variable to define the variable. but shouldn´t comments be ignored in that way? Reproduce code: --------------- the variable in the xsl file: doesnt work!: <xsl:variable select="1" name="var" > <!-- comment --> </xsl:variable> works: <xsl:variable select="1" name="var" /> works too: <xsl:variable name="var" > <!-- comment --> </xsl:variable> Expected result: ---------------- transformed XML Actual result: -------------- Error 1: compilation error: file file:///C:/Programme/xampp/test01.xsl line 4 element variable Line: 0 Column: 0 Error 1: XSLT-variable: The must be no child nodes, since the attribute 'select' was specified. Line: 0 Column: 0 -- Edit bug report at http://bugs.php.net/?id=49820&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49820&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49820&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49820&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49820&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49820&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49820&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49820&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49820&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49820&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49820&r=support Expected behavior: http://bugs.php.net/fix.php?id=49820&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49820&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49820&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49820&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49820&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49820&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49820&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49820&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49820&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49820&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49820&r=mysqlcfg