Governments should pass tax laws in some sort of industry standard tax rules specification[2]. This way, companies and the open source world can write rules engines to process taxes and online stores can pick among the competitors, not having to worry about the complexities themselves. Costs are reduced, competition increased, and consumers win.
[2] this might also make taxes simpler. If legislators can't encode (compile) it, they can't legislate it!