File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / xsl / tests / xslt005.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

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

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