php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52470 XSLTProcessor allows only import/include of one XSL stylshet
Submitted: 2010-07-28 14:22 UTC Modified: 2013-12-02 11:44 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: borislavmaric at boro dot org Assigned:
Status: Open Package: XSLT related
PHP Version: Irrelevant OS: Linux/Unix
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: borislavmaric at boro dot org
New email:
PHP Version: OS:

 

 [2010-07-28 14:22 UTC] borislavmaric at boro dot org
Description:
------------
When procesing one XSLT stylesheet that try to import multiple XSTL stylesheets
displays only the last one.

Test script:
---------------
$xslDoc = new DOMDocument();
$xslDoc->load("XML/index.xsl");

$xmlDoc = new DOMDocument();
$xmlDoc->load("XML/index.xml");

$proc = new XSLTProcessor();
$proc->importStylesheet($xslDoc);
echo $proc->transformToXML($xmlDoc);

Expected result:
----------------
to import more then one XSLT stylesheet

Actual result:
--------------
display only the last XSLT stylesheet

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-02 11:44 UTC] mike@php.net
-Type: Bug +Type: Feature/Change Request
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 09:01:27 2019 UTC