1--TEST-- 2Test 2: Transform To HTML String 3--EXTENSIONS-- 4xsl 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--EXPECT-- 23Test 2: Transform To HTML String 24<html><body>bar 25a1 b1 c1 <br> 26a2 c2 <br> 27�3 b3 c3 <br> 28</body></html> 29