Internationalization

As you might expect of a technology that has been nurtured and evolved by a worldwide open source project, support for internationalization is a key feature of XMLC. One of the other advantages of viewing HTML/XML pages as templates that can be loaded into your Java program is that you can localize each template as well.

The template approach is good for more than device independence. In Figure 2.8, you can see that a per-language/per-template approach gives your application the capability to load the appropriate page object depending on the requested language.

Figure 2.8. Using XMLC templates to achieve localizations.

Get Enhydra XMLC™ Java™ Presentation Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.