php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37511 XSLTProcessor([DOMDocument $stylesheet])
Submitted: 2006-05-18 20:50 UTC Modified: 2011-02-21 21:26 UTC
From: spam01 at pornel dot net Assigned:
Status: Open Package: XSLT related
PHP Version: 5.1.4 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spam01 at pornel dot net
New email:
PHP Version: OS:

 

 [2006-05-18 20:50 UTC] spam01 at pornel dot net
Description:
------------
Currently XSLTProcessor does not accept any parameters for constructor.

However it has to be used with a stylesheet, so why not accept it in constructor?

That'd make typical usage simpler/shorter.

It will be 100% backwards-compatible if parameter is optional.

Expected result:
----------------
$proc = new XSLTProcessor($sheet);

Actual result:
--------------
$proc = XSLTProcessor();
$proc->importStylesheet($sheet);

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:26 UTC] jani@php.net
-Package: Feature/Change Request +Package: XSLT related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC