Sorry, just have to butt in and giggle at 'pragmatically' making an Infopath template.
And also, don't know why you would want to do this - do you mean from scratch? Or are you trying to unpack the template, modify it a little bit, and then repack it?
Ok, that's me out, sorry for not really being helpful ;-)