Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52165 invoked by uid 1010); 6 Dec 2004 15:27:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33617 invoked from network); 6 Dec 2004 15:25:10 -0000 Received: from unknown (HELO wproxy.gmail.com) (64.233.184.204) by pb1.pair.com with SMTP; 6 Dec 2004 15:25:10 -0000 Received: by wproxy.gmail.com with SMTP id 58so134283wri for ; Mon, 06 Dec 2004 07:25:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=eaW+uMwrj+Z+V1YBXcudIoyKzcmjmvPNM6+oCn/LYtMcIHBo+o2aPufDbSYMfptZQKv0Urc+NmoRkRifdxYJ/UX5Y9bafFRfMJrOIssZb0nBZ/i9Ya2wl/WVyNZFi2oq31/7NFYIyEuUZA121zqiZYHBQ0V5JbD6owUCKHoo+S8= Received: by 10.54.6.78 with SMTP id 78mr26069wrf; Mon, 06 Dec 2004 07:25:09 -0800 (PST) Received: by 10.54.44.20 with HTTP; Mon, 6 Dec 2004 07:25:09 -0800 (PST) Message-ID: <34e3bcd5041206072562e93430@mail.gmail.com> Date: Mon, 6 Dec 2004 16:25:09 +0100 Reply-To: Goformusic Support To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Parsing multiple XML documents as strings. From: goformusic@gmail.com (Goformusic Support) 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