XML documents can be localized by referring to an external DTD document that contains the translations. For example in Mozilla XULRunner it looks like this:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://configpanel/locale/configpanel.dtd">
<window title="&CONFIG_PANEL;">
<label value="&WELCOME_TEXT;"/>
</window>
I've tried it in a HTML document but it didn't seem to work. Is this supposed to work for HTML documents? Or is there a similar mechanism that can be used here?