xslt009.phpt 475 B

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