File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
1
2
<books >
2
3
<book >
3
4
<title >The Grapes of Wrath</title >
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Test: Xinclude and Streams
3
+ --SKIPIF--
4
+ <?php require_once ('skipif.inc ' ); ?>
5
+ --FILE--
6
+ <?php
7
+ $ dom = new domdocument ;
8
+ $ dom ->load (dirname (__FILE__ )."/xinclude.xml " );
9
+ $ dom ->xinclude ();
10
+ print $ dom ->saveXML ();
11
+
12
+ --EXPECT --
13
+ <? xml version="1.0 "?>
14
+ <foo xmlns:xi="http://www.w3.org/2001/XInclude">
15
+ <book xml:base="compress.zlib://ext/dom/tests/book.xml">
16
+ <title>The Grapes of Wrath</title>
17
+ <author>John Steinbeck</author>
18
+ </book><book xml:base="compress.zlib://ext/dom/tests/book.xml">
19
+ <title>The Pearl</title>
20
+ <author>John Steinbeck</author>
21
+ </book>
22
+ </foo>
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <foo xmlns : xi =" http://www.w3.org/2001/XInclude" >
3
+ <xi : include href =" compress.zlib://ext/dom/tests/book.xml#xpointer(/books/book)" />
4
+ </foo >
You can’t perform that action at this time.
0 commit comments