Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14009 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91675 invoked by uid 1010); 6 Dec 2004 16:26:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91573 invoked from network); 6 Dec 2004 16:26:58 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 6 Dec 2004 16:26:58 -0000 Received: from DELL (c-24-6-109-102.client.comcast.net [24.6.109.102]) by colo.lerdorf.com (8.13.1/8.13.1/Debian-18) with ESMTP id iB6GQoID009718; Mon, 6 Dec 2004 08:26:52 -0800 Date: Mon, 6 Dec 2004 08:27:21 -0800 (Pacific Standard Time) To: Goformusic Support cc: internals@lists.php.net In-Reply-To: <34e3bcd5041206072562e93430@mail.gmail.com> Message-ID: References: <34e3bcd5041206072562e93430@mail.gmail.com> X-X-Sender: rasmus@lerdorf.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Parsing multiple XML documents as strings. From: rasmus@php.net (Rasmus Lerdorf) This isn't an internals question. Please post such questions to php-general. It's also pretty well documented. Please see the documentation for domxml_open_mem() and domxml_xslt_stylesheet_file() -Rasmus On Mon, 6 Dec 2004, Goformusic Support wrote: > Hi, > > We worked with Sablotron before but switched over to the libxslt > library on PHP5 to perform XSL transformations. We used the wrapper > code found on http://be.php.net/xsl so that our old xslt_ functions > continued to work. > > Now, with Sablotron we used to parse multiple XML documents as strings > and one XSL file from disk. With libxslt it doesn't seem possible > parsing XML documents as strings. > > This is the old method which worked fine, using Sablotron: > > $args["/list_docu"] = "some xml"; > $result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $args, $params); > > This node could then be access with XSL: > > > When I run this code using libxslt/PHP5 and the wrapper I get the error: > Warning: I/O warning : failed to load external entity "arg:/list_docu" > > This is because the XML documents must be saved on disk I guess. > Isn't there any way to load the XML documents as strings??? > > Grtz, > > Bart > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >