xref: /PHP-5.6/ext/xsl/tests/xslt009.phpt (revision 1504c700)
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
24
25--EXPECT--
26Test 9: Stream Wrapper XPath-Document()
27<?xml version="1.0" encoding="iso-8859-1"?>
28foo
29