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