xslt009.phpt 603 B

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