Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/prolog_3.txt
Test checks the prolog generation with dynamic attributes

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Display the prolog -->
<opt:root>
foo
<opt:prolog parse:encoding="$fff" />
foo
</opt:root>

>>>>expected.txt
OUTPUT

>>>>data.php
$view->assign('fff', 'UTF-8');

>>>>result.txt
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
foo
foo
Return current item: Open Power Template