opentag.com
\\ XML and Localization :: Book :: Samples

This page lists the source code of the different listing and examples of the book.

Various tools are used with these examples. You can also download them:
- MSXSL is Microsoft XSL processor.
- XMLint is Microsoft XML validation tool.
- Rainbow and Album can be downloaded with the ENLASO Tools.

You can also download the complete collection of source code listings in a self-extractable Zip file:
- Source Code


Chapter 1 - Globalization with XML

  • Listing 1.01 - Namespaces1.xml
  • Listing 1.02 - Namespaces2.xml
  • Chapter 2 - Character Representation

  • Listing 2.03 - HexaUTF16.xml
  • Listing 2.04 - UTF8.xml
  • Listing 2.05 - Ja_ShiftJIS.xml
  • Listing 2.06 - Ja_UTF8.xml
  • Figure 2.06 - Ja_ShiftJIS.xml and Ja_UTF8.xml comparison
  • Listing 2.07 - XHTML_zh-cn.htm
  • Listing 2.08 - Entity.xml
  • Listing 2.09 - MultiLang.xml
  • Listing 2.10 - ZHTags.xml
  • Listing 2.11 - Vietnamese.xml
  • Listing 2.12 - Comp.xml
  • Listing 2.13 - Comp2.xml
  • Chapter 3 - Miscellaneous Tagging

    Chapter 4 - Coding the Presentation

  • Listing 4.01 - Sample.dsl
  • Listing 4.02 - Charset.css
  • Listing 4.03 - HexaNotation.css
  • Listing 4.04 - FontFace.css
  • Listing 4.05 - Fonts.xml
  • Listing 4.06 - Fonts.css
  • Listing 4.07 - Note.xml
  • Listing 4.08 - Note.css
  • Listing 4.09 - Quotes.css
  • Listing 4.10 - Quotes.xml
  • Listing 4.11 - Lists.css
  • Listing 4.12 - Lists.xml
  • Listing 4.13 - TextTransform.css
  • Listing 4.14 - TextTransform.xml
  • Listing 4.15 - Discours.xml
  • Listing 4.16 - Excerpts.xsl
  • Listing 4.17 - FObjects.xsl
  • Chapter 5 - Special Aspects of Rendering

  • Listing 5.01 - Bidi_Text.xml
  • Listing 5.02 - Bidi_Text.css
  • Listing 5.03 - Vertical.svg
  • Listing 5.04 - Ruby_Text.htm
  • Listing 5.05 - Boten.xml
  • Listing 5.06 - Boten.css
  • Listing 5.07 - Wrapping_Thai.xml
  • Listing 5.08 - Sorting.xsl
  • Listing 5.09 - Sorting.xml
  • Chapter 6 - XML Conversion

  • Listing 6.01 - XmlConverterDlg.cpp (OnConvertToRTF)
  • Listing 6.02 - XmlConverterDlg.cpp (ConvertXMLStringToRTF)
  • Listing 6.03 - XmlConverterDlg.cpp (OnConvertToFlash)
  • Listing 6.04 - XmlConverterDlg.cpp (ConvertXMLStringToFlash)
  • XmlConverter.zip - XmlConvert source code and executable
  • Flashi18n.zip - Flash sample source file and movie
  • Chapter 7 - Creating Internationalized Document Types

  • Listing 7.01 - ConditionalTrans.xml
  • Listing 7.02 - VoiceXMLOutput.vxml
  • Listing 7.03 - WMLOutput.wml
  • Listing 7.04 - Conditions.xml
  • Listing 7.05 - LocProp.dtd
  • Listing 7.06 - LocProp.lpd
  • Listing 7.07 - UIML.lpd
  • Chapter 8 - Writing Internationalized Documents

  • Listing 8.01 - LocProp.mod
  • Listing 8.02 - LocIDSample.html
  • Listing 8.03 - LocPropUsage1.xml
  • Listing 8.04 - LocPropUsage2.ent
  • Listing 8.05 - LocPropUsage3.po
  • Chapter 9 - Automated References

  • Listing 9.01 - Style_Entities.svg
  • Listing 9.02 - Simple_Links.xml
  • Listing 9.03 - Simple_Links.dtd
  • Listing 9.04 - Base_Attribute.xml
  • Listing 9.05 - Inc_Repository.xml
  • Listing 9.06 - Inc_Document.xml
  • Listing 9.07 - Inc_Result.xml
  • Listing 9.08 - JavaApp.properties
  • Listing 9.09 - DeskApp.po
  • Listing 9.10 - Prompts.vxml
  • Listing 9.11 - Section6.xml
  • Listing 9.12 - CommonText.ent
  • Listing 9.13 - References1.subst
  • Listing 9.14 - References2.subst
  • Listing 9.15 - Section6.out
  • Listing 9.16 - Section6_pl.out
  • Chapter 10 - Segmentation

  • Listing 10.01 - Context.html
  • Listing 10.02 - Section_v1.xml
  • Listing 10.03 - Section_v2.xml
  • Listing 10.04 - Section_v2_fr.xml
  • Chapter 11 - Mixed Data

  • Listing 11.01 - Sample.js
  • Listing 11.02 - Sales.xml
  • Listing 11.03 - EntSample.svg
  • Listing 11.04 - XMLResource1.str
  • Listing 11.05 - XMLResource2.str
  • Listing 11.06 - ListEvents1.sql
  • Listing 11.07 - ListEvents2.sql
  • Listing 11.08 - ListEvents3.sql
  • Listing 11.09 - ListEvents1.xsl
  • Listing 11.10 - Events.xsql
  • Listing 11.11 - ListEvents2.xsl
  • Chapter 12 - XML and Databases

  • Listing 12.01 - Descriptions.xdr
  • Listing 12.02 - RawOutput.xml
  • Listing 12.03 - ToTrans.xsl
  • Listing 12.04 - to_translation.xlf
  • Listing 12.05 - from_translation.xlf
  • Listing 12.06 - FromTrans.xsl
  • Listing 12.07 - GetSpecials.xml
  • Listing 12.08 - QueryResults_en.xml
  • Listing 12.09 - Rendering_pl.xsl
  • Listing 12.10 - Packages_pl.wml
  • Chapter 13 - Localization Kits

  • Listing 13.01 - WordCount.html
  • Listing 13.02 - PreLeverage.html
  • Chapter 14 - XML-Enabled Translation Tools

  • Listing 14.01 - Test_Simple.xml
  • Listing 14.02 - Test.dtd
  • Listing 14.03 - Test.anl
  • Listing 14.04 - Test_Conditions.xml
  • Listing 14.05 - Test_UTF16LE.xml (Test_UTF16BE.xml and Test_UTF8.xml)
  • Listing 14.06 - Test_CDATA.xml
  • Listing 14.07 - Test_Quotes.xml
  • Listing 14.08 - Test_QuotesRU.xml
  • Listing 14.09 - Test_Attributes.xml
  • Listing 14.10 - Test_Entities.xml
  • Listing 14.11 - Test_Entities_SDLX.xml
  • Listing 14.12 - Test_Entities_Transit.xml
  • Listing 14.13 - Test_TagsLatin1.xml
  • Listing 14.14 - Test_TagsLatin1.dtd
  • Listing 14.15 - Test_TagsLatin1_Transit.xml
  • Listing 14.16 - Test_TagsHan.xml
  • Listing 14.17 - Test_TagsHan.dtd
  • Chapter 15 - Online Translation

    Chapter 16 - Using XML to Localize

  • Listing 16.01 - Firmware_en.xml
  • Listing 16.02 - FirmwareCheck.xsl
  • Listing 16.03 - DbResults.xml
  • Listing 16.04 - FlashText_en.xml
  • Listing 16.05 - FlashXML.fla

  • Listing 16.06 - SampleFile.xml
  • Listing 16.07 - VoiceForm.xml
  • Chapter 17 - Text Extraction

  • Listing 17.01 - Sample1.rc
  • Listing 17.02 - Sample1.rc.otf
  • Listing 17.03 - Sample1.rc.skl
  • Listing 17.04 - Sample1.xlf
  • Listing 17.05 - Sample1_skl1.xlf
  • Listing 17.06 - Sample1_skl2.xlf
  • Listing 17.07 - Sample2.xlf
  • Listing 17.08 - Sample3.xlf
  • Listing 17.09 - StdOTFDisplay.xsl
  • Chapter 18 - TMX

  • Listing 18.01 - Sample1.tmx
  • Listing 18.02 - Sample2.tmx
  • Listing 18.03 - UserCharacters.tmx
  • Listing 18.04 - Test_Sample.xml
  • Listing 18.05 - DejaVu_Output.tmx
  • Listing 18.06 - SDLX_Output.tmx
  • Listing 18.07 - TWB_Output.tmx
  • Listing 18.08 - Transit_Output.tmx
  • Chapter 19 - Terminology Exchange

  • Listing 19.01 - Olif2Sample.xml
  • Listing 19.02 - MinimalTBX.tbx
  • Listing 19.03 - Sample1.tbx
  • Chapter 20 - Conclusion

    • <No source code in this chapter>