#CoSoTech
Protip: don't use the conventional '/' as an expression separator in a sed command if you're hoping to parse/insert/replace a URL...
I only wasted about 20 minutes trying to figure out why my script to template an XML file was working for everything but the URLs.