File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / xsl / tests / xslt009.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Test 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
   10: echo "Test 9: Stream Wrapper XPath-Document()";
   11: include("prepare.inc");
   12: 
   13: $xsl = new domDocument;
   14: $xsl->load(dirname(__FILE__)."/documentxpath.xsl");
   15: if(!$xsl) {
   16:   echo "Error while parsing the document\n";
   17:   exit;
   18: }
   19: 
   20: $proc->importStylesheet($xsl);
   21: print "\n";
   22: print $proc->transformToXML($dom);
   23: 
   24: 
   25: --EXPECT--
   26: Test 9: Stream Wrapper XPath-Document()
   27: <?xml version="1.0" encoding="iso-8859-1"?>
   28: foo

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>