XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> IBM, Internationalization, XSLT and Java Tutorials -> An XSLT style sheet and an XML dictionary approach to internationalization

An XSLT style sheet and an XML dictionary approach to internationalization

Date: May. 28, 2001
Link: http://www-106.ibm.com/developerworks/web/library/wa-xslt/?dwzone=web
Source Author or Organization: Laura Menke, IBM developerWorks

This article demonstrates a strategy for internationalizing a site's Web pages, based upon HTML, XML, Extensible Stylesheet Language Transformations (XSLT) and Java Server Pages (JSP). The construction of a generic style sheet and XML dictionary files is explained, including code samples. The style sheet gets the appropriate language from the XML dictionary, saving the developer from making versions of each page for each supported language.

The technique works with client side transformations (for example, in Internet Explorer 5 or later), but using JSP will address a larger audience that reaches Personal Digital Assistants (PDAs), phones, and other Web-enabled devices. Localizing HTML pages using JSP for the transformations is detailed, including a code listing for a servlet transformation example.