An extension to the bug #144. >>>>templates/test.tpl <?xml version="1.0" ?> <opt:extend file="extended1.tpl"> <opt:snippet name="html"> <opt:parent/> Some content. </opt:snippet> <opt:snippet name="html"> <opt:attribute name="lang" value="pl" /> </opt:snippet> </opt:extend> >>>>templates/extended1.tpl <?xml version="1.0" ?> <opt:root> <html opt:use="html"> </html> </opt:root> >>>>expected.txt OUTPUT >>>>result.txt <html lang="pl"> Some content. </html>