Følgende XSLT anvendes til translate-funktionalitet i XSLT-templates i Dynamicweb CMS:
<xsl:template name="translate"> <xsl:param name="translationkey" /> <xsl:param name="defaulttranslation" /> <xsl:choose> <xsl:when test="$translationfile/translations/ key[@name=$translationkey]"> <xsl:value-of select="$translationfile/ key[@name=$translationkey]/ translation[@culture=$currentlanguage]" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$defaulttranslation" /> </xsl:otherwise> </xsl:choose> </xsl:template>