chregu Mon Oct 27 10:32:45 2003 EDT
Added files:
/php-src/ext/dom/tests dom_xinclude.phpt xinclude.xml
Modified files:
/php-src/ext/dom/tests book.xml
Log:
xinclude test
Index: php-src/ext/dom/tests/book.xml
diff -u php-src/ext/dom/tests/book.xml:1.1 php-src/ext/dom/tests/book.xml:1.2
--- php-src/ext/dom/tests/book.xml:1.1 Mon Oct 27 06:24:30 2003
+++ php-src/ext/dom/tests/book.xml Mon Oct 27 10:32:44 2003
@@ -1,3 +1,4 @@
+<?xml version="1.0" ?>
<books>
<book>
<title>The Grapes of Wrath</title>
Index: php-src/ext/dom/tests/dom_xinclude.phpt
+++ php-src/ext/dom/tests/dom_xinclude.phpt
--TEST--
Test: Xinclude and Streams
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$dom = new domdocument;
$dom->load(dirname(__FILE__)."/xinclude.xml");
$dom->xinclude();
print $dom->saveXML();
--EXPECT--
<?xml version="1.0"?>
<foo xmlns:xi="http://www.w3.org/2001/XInclude">
<book xml:base="compress.zlib://ext/dom/tests/book.xml">
<title>The Grapes of Wrath</title>
<author>John Steinbeck</author>
</book><book xml:base="compress.zlib://ext/dom/tests/book.xml">
<title>The Pearl</title>
<author>John Steinbeck</author>
</book>
</foo>
Index: php-src/ext/dom/tests/xinclude.xml
+++ php-src/ext/dom/tests/xinclude.xml
<?xml version="1.0"?>
<foo xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="compress.zlib://ext/dom/tests/book.xml#xpointer(/books/book)"/>
</foo>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php