Tom, try selecting "Clean" from the "Project" menu... the markup in your post looks syntactically correct, which causes me to suspect there's a minor corruption issue in your template design. A project clean typically clears out such corruption, allowing the build to complete successfully. Also, I'd recommend disabling "build automatically" (if you haven't already); do a manual build whenever you've made changes that you want to test, instead of allowing Designer to perform a full build every time.
On a side note, our names are eerily similar. Just a coincidence?