Subject: Re: [xsl] XSLT arguments in PHP 5 From: Jirka Kosek <jirka@xxxxxxxx> Date: Sat, 24 Jun 2006 11:03:43 +0200 |
how do I pass XML arguments (*not* name/value parameters) to the XSLT processor that could be retrieved with document()? The processor and API have changed in PHP 5 and now I'm struggling to find a way. Should I imitate files using stream wrappers in some way? :/
You can call your own PHP5 function within XSLT transformation. If such function returns DOM node or node-list, it can be used to simulate passing of DOM trees without need for serialization/deserialization. See
http://cz2.php.net/manual/en/function.xsl-xsltprocessor-register-php-function s.php
-- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@xxxxxxxx http://www.kosek.cz ------------------------------------------------------------------ Profesionalnm 9kolenm a poradenstvm v oblasti technologim XML. Podmvejte se na na9 novl spu9tln} web http://DocBook.cz Podrobn} pxehled 9kolenm http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbli>9m termmny 9kolenm: ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 ** ** XSLT 23.-26.10.2006 ** XML schimata 13.-15.11.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT arguments in PHP 5, Martynas Jusevicius | Thread | RE: [xsl] XSLT arguments in PHP 5, Buchcik, Kasimier |
Re: [xsl] Concatenating multiple va, Mohsen Saboorian | Date | [xsl] [FXSL] Using document('') to , Florent Georges |
Month |