The following samples correspond to the "Shedding a little light on XML" Q&A column for the October 2001 XML Journal.

For more information on theses samples, contact David Silverlight:

Emails:
DSilverlight@Infoteria.com
HeadGeek@xmlpitstop.com

URLs:
Infoteria
XMLPitstop XSLT Library

Method1: Using a seperate XSLT Stylesheet for each language.

file Description
InputForm.XML XML File containing the Input Form Data
InputFormFR.xsl XSLT Stylesheet used for display of XML elements in French
InputFormEN.xsl XSLT Stylesheet used for display of XML elements in English
InputFormES.xsl XSLT Stylesheet used for display of XML elements in Spanish
InputFormFRoutput.htm Output generated from the transformation of InputFormFR.XSL Stylesheet with InputForm.XML
InputFormENoutput.htm Output generated from the transformation of InputFormEN.XSL Stylesheet with InputForm.XML
InputFormESoutput.htm Output generated from the transformation of InputFormES.XSL Stylesheet with InputForm.XML
Method1.zip All files for this example

Method 2 - Using lang() with a single translation document

file Description
InputForm.XML XML File containing the Input Form Data
AllHeadings.xml The Single XML document that contains all of the translations for headings in the xml document.
InputForm.xsl XSLT Stylesheet used to display the XML data in InputForm.xml and the translations from AllHeadings.xml
Method2.zip All files for this example.

method3: Using xsl:lang with an XML translation document. In this example each translation document is kept in a seperate language-specific directory.

file Description
InputForm.XML XML File containing the Input Form Data
InputForm.xsl XSLT Stylesheet used to display the XML data in InputForm.xml and the translations from seperate translation files, each kept in a language specific directory
Headings.xml Translation XML document used for "English" translations. It is located in the "/translations/en/Headings.xsl" directory
Headings.xml Translation XML document used for "Spanish" translations.It is located in the "/translations/es/Headings.xsl" directory
Headings.xml Translation XML document used for "French" translations. It is located in the "/translations/fr/Headings.xsl" directory.
Method3.zip All files for this example

Method 4: Using translations inline, when needed

file Description
InputForm.XML XML File containing the Input Form Data
InputForm.xsl XSLT Stylesheet used to display the XML data in InputForm.xml with required translation performed inline using a xsl:choose element.
Method4.zip All files for this example