xref: /PHP-8.2/ext/xsl/tests/xslt008.phpt (revision 8567bc10)
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--EXPECT--
21Test 8: Stream Wrapper Includes
22<?xml version="1.0" encoding="iso-8859-1"?>
23<html><body>bar
24a1 b1 c1 <br/>
25a2 c2 <br/>
26�3 b3 c3 <br/>
27</body></html>
28