Gilbert,
<p>
The original goes like this:
<p>
<pre>
html
head
title@title@/title
@header_stuff@
/head
body multiple name=attribute@attribute.key@="@attribute.value@"/multiple
slave
</pre>
The significant differences are that @header_stuff@ is within the HEAD block, and the multiple is within the BODY tag. I'm not sure which is causing your problem but they both look significant to me.