Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/attribute_1.txt
The test checks the basic opt:attribute functionality.

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

>>>>expected.txt
OUTPUT

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