php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23734 xslt_process doesn't accept the use of variables as parameters for xsl-function
Submitted: 2003-05-21 06:12 UTC Modified: 2003-05-21 09:18 UTC
From: philipp dot krueger at forbatec dot com Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 4CVS-2003-05-21 (stable) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philipp dot krueger at forbatec dot com
New email:
PHP Version: OS:

 

 [2003-05-21 06:12 UTC] 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-21 09:18 UTC] jay@php.net
This is almost certainly a Sablotron problem. You can 
contact the Sablot developers at 
 
http://www.gingerall.com/ 
 
J 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC