#23734 [NEW]: xslt_process doesn't accept the use of variables as parameters for xsl-function

From: Date: Wed, 21 May 2003 11:12:54 +0000
Subject: #23734 [NEW]: xslt_process doesn't accept the use of variables as parameters for xsl-function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40128@lists.php.net to get a copy of this message
From: philipp dot krueger at forbatec dot com Operating system: Windows 2000 PHP version: 4CVS-2003-05-21 (stable) PHP Bug Type: XSLT related Bug description: xslt_process doesn't accept the use of variables as parameters for xsl-function When using following code to transform xml with xsl an error occurs stating "token '{' not recognized1" (yes, the 1 is part of the error-message - i get the errormessage using xslt_error()) the error-code is "20" (got it from "xslt_errno()"): $result = xslt_process($xh, $xmlfile, $xslfile, NULL, $arguments, $parameters); the expression xsl_process complains about is "<xsl:sort select="{$sort}"/>". as i read on http://www.xml.com/pub/a/2001/02/07/trxml9.html?page=2 it is valid to use variables as parameters for "<xsl:"-functions... without the curly braces the parser won't use the variables value but rather the variable itself (in this case "$sort"). i guess that is a sablotron-issue but it could as well be php's fault - either way: where can i submit bugs in sablotron? -- Edit bug report at http://bugs.php.net/?id=23734&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23734&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23734&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23734&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23734&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23734&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23734&r=support Expected behavior: http://bugs.php.net/fix.php?id=23734&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23734&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23734&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23734&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23734&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23734&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23734&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23734&r=gnused

« previous php.bugs (#40128) next »