Annotation of embedaddon/php/ext/xsl/tests/xslt002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test 2: Transform To HTML String
        !             3: --SKIPIF--
        !             4: <?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
        !             5: --FILE--
        !             6: <?php
        !             7: echo "Test 2: Transform To HTML String";
        !             8: include("prepare.inc");
        !             9: // changing output method to html
        !            10: $xp = new domxpath($xsl);
        !            11: $res = $xp->query("/xsl:stylesheet/xsl:output/@method");
        !            12: if ($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);
        !            18: print "\n";
        !            19: print $proc->transformToXml($dom);
        !            20: print "\n";
        !            21: 
        !            22: 
        !            23: --EXPECT--
        !            24: Test 2: Transform To HTML String
        !            25: <html><body>bar
        !            26: a1 b1 c1 <br> 
        !            27: a2 c2 <br> 
        !            28: ä3 b3 c3 <br> 
        !            29: </body></html>

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