php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15249 xslt processor accepting dom object
Submitted: 2002-01-27 22:26 UTC Modified: 2002-01-28 03:00 UTC
From: r dot klinkenberg at student dot utwente dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.0 OS:
Private report: No CVE-ID: None
 [2002-01-27 22:26 UTC] r dot klinkenberg at student dot utwente dot nl
Recently I discussed the way how xslt is implemented in php with some java user. We came to the conclusion that there is probably much overhead in php, since the xslt processor doesn't accept dom object.

When I'm building my xml dynamicly using a dom object, is has to be serialized to a string before it can be passed to sabletron. That means that sabletron has to parse that string again to make a dom object out of it.

To me that looks quitte inefficient. Why not let the xslt processor accept a dom object? That would probably speed up everything very much.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 03:00 UTC] chregu@php.net
Because the underlying sablotron library does not accept Dom-Objects (from libxml2) as input, so there's no way to doing it without serializing in between.

But in PHP 4.2, the domxml extension will have it's own xslt engine, which accepts Dom-Objects just fine (if someone implements (gnome-)libxslt-support into ext/xslt, then this is maybe also possible with the xslt-extension, but not with sablotron...)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC