Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65635 invoked by uid 1010); 31 Oct 2003 15:19:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65520 invoked from network); 31 Oct 2003 15:19:33 -0000 Received: from unknown (HELO bambi.bitflux.ch) (212.71.97.156) by pb1.pair.com with SMTP; 31 Oct 2003 15:19:33 -0000 Received: from localhost (reh [127.0.0.1]) by bambi.bitflux.ch (Postfix) with ESMTP id D600B7F7DB; Fri, 31 Oct 2003 16:19:32 +0100 (CET) Received: from bambi.bitflux.ch ([127.0.0.1]) by localhost (bambi [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02923-03; Fri, 31 Oct 2003 16:19:32 +0100 (CET) Received: from bitflux.ch (bx-109.bitflux.ch [212.71.98.109]) by bambi.bitflux.ch (Postfix) with ESMTP id A59197F67D; Fri, 31 Oct 2003 16:19:32 +0100 (CET) Message-ID: <3FA27D83.9050502@bitflux.ch> Date: Fri, 31 Oct 2003 16:19:31 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Dickmeiss Cc: internals@lists.php.net References: <3FA23826.8080807@indexdata.dk> <3FA23BA9.8080407@bitflux.ch> <3FA24588.5080307@indexdata.dk> In-Reply-To: <3FA24588.5080307@indexdata.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p3 (Debian) at bitflux.ch X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) Subject: Re: [PHP-DEV] Scheme handlers for XSLT in progress. From: chregu@bitflux.ch (Christian Stocker) Just as an update to this question According to Adam, the stream-wrapper support in ext/xsl seems to have the same possibilities as the schemes support in the former sablotron extension. But he will further look into it and keep us/me updated about the outcome ;) I will talk about stream-wrapper support in ext/dom and ext/xsl in my talk next week at the php conference (and in the slides/examples published afterwards) ;) chregu On 10/31/03 12:20 PM, Adam Dickmeiss wrote: > Christian Stocker wrote: > >> >> >> On 10/31/03 11:23 AM, Adam Dickmeiss wrote: >> >>> Hi, >>> >>> we miss the scheme facility from PHP4's XSLT extension. So, we are >>> making a new one for PHP5's XSL extension, i.e. interfacing libXSLT's >>> xsltRegisterExtModuleFunction. If nobody else have done it/is doing >>> it we'd like to contribute. >> >> >> >> Can't you just use the stream-wrappers provided by PHP5? These are >> very well supported even in xslt. What's the difference between them >> and the sablotron way? Besides the different API in PHP userland? >> >> chregu > > > Don't know the stream-wrappers, but from what I can see it doesn't do > what we need. We want to be called by XSLT (with args etc) when XSLT > meets registered elements&NS. So if you want a stylesheet with side > effects, say that search in a database, just chaning the stream of XML > doesn't help. XSLT must be in control - must have processed the args to > the handler A stream approach is "separate" pass. Again, I may have > misunderstood something, so we'd really like to know if it can be > achived already.. > > -- Adam > >> >> > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB