Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/tag_2.txt
The test checks the basic opt:tag functionality with the "name" attribute added.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:root>
<opt:tag name="foo">
<opt:attribute str:name="name" str:value="bar" />
bar
</opt:tag>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
<foo name="bar">
bar
</foo>
Return current item: Open Power Template