#23734 [Opn->Bgs]: xslt_process doesn't accept the use of variables as parameters for xsl-function
ID: 23734
Updated by: jay@php.net
Reported By: philipp dot krueger at forbatec dot com
-Status: Open
+Status: Bogus
Bug Type: XSLT related
Operating System: Windows 2000
PHP Version: 4CVS-2003-05-21 (stable)
New Comment:
This is almost certainly a Sablotron problem. You can
contact the Sablot developers at
http://www.gingerall.com/
J
Previous Comments:
------------------------------------------------------------------------
[2003-05-21 06:12:54] philipp dot krueger at forbatec dot com
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 this bug report at http://bugs.php.net/?id=23734&edit=1
Thread (2 messages)