xref: /PHP-8.0/ext/xsl/tests/xslt009.phpt (revision c5401854)
1--TEST--
2Test 9: Stream Wrapper XPath-Document()
3--SKIPIF--
4<?php
5    require_once __DIR__ .'/skipif.inc';
6    if (!extension_loaded('zlib')) die('skip zlib extension not available');
7?>
8--FILE--
9<?php
10echo "Test 9: Stream Wrapper XPath-Document()";
11include("prepare.inc");
12
13$xsl = new domDocument;
14$xsl->load(__DIR__."/documentxpath.xsl");
15if(!$xsl) {
16  echo "Error while parsing the document\n";
17  exit;
18}
19
20$proc->importStylesheet($xsl);
21print "\n";
22print $proc->transformToXML($dom);
23?>
24--EXPECT--
25Test 9: Stream Wrapper XPath-Document()
26<?xml version="1.0" encoding="iso-8859-1"?>
27foo
28