This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
 

Multi-Lingual with XSLT


These stylesheets demonstrate using XSL to create output for different languages. This process is sometimes referred to as Internationalization. French, Spanish and English are demonstrated here.

Stylesheet Description Files
Method1 Using a seperate XSL Stylesheet for each language. Note that this method is quite easy to implement, simply create a new XSL file for each language. One word of warning, using this approach could lead to maintenance headaches when the pages require modifications. XML Form Data
French XSL File
Output in French
Spanish XSL File
Output in Spanish
English XSL File
Output in English
Download this sample
     
Method2 Using lang() with a single translation document. In this example, a single XML file is used to contain all of the translation elements. The XSL lang() function and the xml:lang attribute are used to determine what language to tranlate to. XML Form Data
Translating XSL file
Language Translation document
French Output
Download this sample
     
Method3 Using xsl:lang with multiple XML translation document (each stored in a different, language-specific, directory). In this example each translation document is kept in a seperate language-specific directory. XML Form Data
Translating XSL file
English Translation document
French Translation document
Spanish Translation document
Download this sample
     
Method4 Using translations inline, when needed. In this example, different elements are translated in-line using the xsl:choose element. This techniques is used best for documents that require only small sections to be translated. If used too frequently, it could lead to difficult to read XSL documents. XML Form Data
Translating XSL file
Spanish Output
Download this sample
     
 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP