KS1003
A block is never closed. Every { needs a }, and in XML every start tag needs its end tag.
<for each="i" in="0..3">
<echo value="$i" />
</for> <!-- this line was missing -->for i in 0..3 {
echo $i
} // this line was missing