xref: /php-src/ext/xsl/tests/xslt005.phpt (revision f39b5c4c)
1--TEST--
2Test 5: Checking Indent
3--EXTENSIONS--
4xsl
5--FILE--
6<?php
7echo "Test 5: Checking Indent";
8include("prepare.inc");
9$xp = new domxpath($xsl);
10$res = $xp->query("/xsl:stylesheet/xsl:output/@indent");
11if ($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);
17print "\n";
18print $proc->transformToXml($dom);
19print "\n";
20?>
21--EXPECT--
22Test 5: Checking Indent
23<?xml version="1.0" encoding="iso-8859-1"?>
24<html>
25  <body>bar
26a1 b1 c1 <br/>
27a2 c2 <br/>
28�3 b3 c3 <br/>
29</body>
30</html>
31