Content Previous Next Top
"XUL + Language-specific DTD"
In this approach, we declare general (text) entities for all locale sensitive resources in an external DTD (Document Type Definition) subset and use XML entity reference, "&entity_name;", to reference them.
Sample XUL:  openLocation.xul  
 <window ...  title="&title.label;" > 

<html:div style="width: 100%;"> &prompt.label;</html:div>

Sample DTD: openLocation.dtd
  <!ENTITY title.label "Open File or Location">
<!ENTITY prompt.label "Enter the World Wide Web location (URL) you would like to open or use the Choose File... button to select a local file:">

Previous 8