xref: /php-src/ext/xsl/tests/xslt007.phpt (revision f39b5c4c)
1--TEST--
2Test 7: Transform To Uri
3--EXTENSIONS--
4xsl
5--FILE--
6<?php
7echo "Test 7: Transform To Uri";
8include("prepare.inc");
9$proc->importStylesheet($xsl);
10print "\n";
11$doc = $proc->transformToUri($dom, "file://".__DIR__."/out.xml");
12print file_get_contents(__DIR__."/out.xml");
13unlink(__DIR__."/out.xml");
14print "\n";
15?>
16--EXPECT--
17Test 7: Transform To Uri
18<?xml version="1.0" encoding="iso-8859-1"?>
19<html><body>bar
20a1 b1 c1 <br/>
21a2 c2 <br/>
22�3 b3 c3 <br/>
23</body></html>
24