xref: /PHP-7.0/ext/xsl/tests/xslt008.phpt (revision 1504c700)
1--TEST--
2Test 8: Stream Wrapper Includes
3--SKIPIF--
4<?php
5	require_once dirname(__FILE__) .'/skipif.inc';
6	if (!extension_loaded('zlib')) die('skip zlib extension not available');
7?>
8--FILE--
9<?php
10echo "Test 8: Stream Wrapper Includes ";
11include("prepare.inc");
12$xsl = new domDocument;
13$xsl->load(dirname(__FILE__)."/streamsinclude.xsl");
14if(!$xsl) {
15  echo "Error while parsing the document\n";
16  exit;
17}
18chdir(dirname(__FILE__));
19$proc->importStylesheet($xsl);
20print "\n";
21print $proc->transformToXML($dom);
22
23
24--EXPECT--
25Test 8: Stream Wrapper Includes
26<?xml version="1.0" encoding="iso-8859-1"?>
27<html><body>bar
28a1 b1 c1 <br/>
29a2 c2 <br/>
30�3 b3 c3 <br/>
31</body></html>
32