You could always do it in ASP.

Eww...

But anyway, if you have access to either PHP or ASP on the server (any decent host will have one of these at a minimum), it would probably be the easiest route. I don't remember SSI being that great for what you are wanting to do with combining the two files into one. Then again, the last time I used it was a few years back under Apache.