Write an I18N-friendly template

  • Internationalize the generated text:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">
  <xsl:import href="/sourceforge/docbook/xsl/html/docbook.xsl"/>
  <xsl:include href="tpage.xsl"/>
  <xsl:template match="contractnum" mode="titlepage.mode">
    <div class="contract">
      <xsl:apply-templates select="." mode="object.title.markup"/>
    </div>
  </xsl:template>
</xsl:stylesheet>
  • Easy, right? But where does the text come from?