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