1--TEST-- 2Test 2: Transform To HTML String 3--SKIPIF-- 4<?php require_once dirname(__FILE__) .'/skipif.inc'; ?> 5--FILE-- 6<?php 7echo "Test 2: Transform To HTML String"; 8include("prepare.inc"); 9// changing output method to html 10$xp = new domxpath($xsl); 11$res = $xp->query("/xsl:stylesheet/xsl:output/@method"); 12if ($res->length != 1) { 13 print "No or more than one xsl:output/@method found"; 14 exit; 15} 16$res->item(0)->value = "html"; 17$proc->importStylesheet($xsl); 18print "\n"; 19print $proc->transformToXml($dom); 20print "\n"; 21 22 23--EXPECT-- 24Test 2: Transform To HTML String 25<html><body>bar 26a1 b1 c1 <br> 27a2 c2 <br> 28�3 b3 c3 <br> 29</body></html> 30