xref: /PHP-7.2/ext/xsl/tests/xslt006.phpt (revision f1d7e3ca)
1--TEST--
2Test 6: Transform To Doc
3--SKIPIF--
4<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
5--FILE--
6<?php
7echo "Test 6: Transform To Doc";
8include("prepare.inc");
9$proc->importStylesheet($xsl);
10print "\n";
11$doc = $proc->transformToDoc($dom);
12print $doc->saveXML();
13print "\n";
14--EXPECT--
15Test 6: Transform To Doc
16<?xml version="1.0" encoding="iso-8859-1"?>
17<html><body>bar
18a1 b1 c1 <br/>
19a2 c2 <br/>
20�3 b3 c3 <br/>
21</body></html>
22