From: pascal dot heus at gmail dot com Operating system: GNU/Linux PHP version: 5.1.6 PHP Bug Type: XSLT related Bug description: xsl:key macth attribute fails with $variable
Description: ------------ The following xsl code works fine with the Sablotron engine under pHp4 or with XMLSpy: <xsl:key name="course-key" match="/gmu/programs/[EMAIL PROTECTED]//courseRef" use="concat(@subject,@course,@subcourse)"/> When using libxslt under pHp 5, it fails to execute. The problem comes form the $program-id variable used in the match= attribute. If I replace it with a hard coded value, the XSLT works fine: <xsl:key name="course-key" match="/gmu/programs/[EMAIL PROTECTED]'csi-phd-qis']//courseRef" use="concat(@subject,@course,@subcourse)"/> This is under pHp 5.0.4 running on an institutional server, I don't have the authority to upgrade that system for further testing. Reproduce code: --------------- You can retrieve the xslt and xml file at: http://scs.gmu.edu/~rgomez/qc/xml/gmu_program_schedule_bug.xslt http://scs.gmu.edu/~rgomez/qc/xml/gmu.xml -- Edit bug report at http://bugs.php.net/?id=39299&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39299&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39299&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39299&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39299&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39299&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39299&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39299&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39299&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39299&r=support Expected behavior: http://bugs.php.net/fix.php?id=39299&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39299&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39299&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39299&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39299&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39299&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39299&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39299&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39299&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39299&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39299&r=mysqlcfg