xref: /PHP-7.3/ext/xsl/tests/xslt009.phpt (revision b746e698)
1--TEST--
2Test 9: Stream Wrapper XPath-Document()
3--SKIPIF--
4<?php
5	require_once dirname(__FILE__) .'/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(dirname(__FILE__)."/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--EXPECT--
24Test 9: Stream Wrapper XPath-Document()
25<?xml version="1.0" encoding="iso-8859-1"?>
26foo
27