xsl-list
[Top] [All Lists]

Re: [xsl] XSLT arguments in PHP 5

2006-06-24 02:04:21
[Seems that xsl-list doesn't like digitally signed messages. Resending...]

Martynas Jusevicius wrote:

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-functions.php

--
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka(_at_)kosek(_dot_)cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbližší termíny školení:
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
     ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
------------------------------------------------------------------
   http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>