Solprovider Lenya Kongregate Registration for Free Flash Games and Chat with solprovider

Using i18n Transformations in XMAPs

The code for an i18n transformation is:

<map:transform type="i18n">
<map:parameter name="locale" value="{page-envelope:document-language}"/>
</map:transform>


This must be placed after all other transformations, but before:
<map:transform src="../../xslt/util/strip_namespaces.xsl"/>

When in doubt, add the i18n transformation multiple times.

Default publication


To fix the default publication to use i18n, add the i18n transformation after the normal XSL transformation:
<map:match pattern="lenyabody-*/*/*/*/**">
...
<map:transform src="xslt/page2xhtml-{4}.xsl">
...
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{page-envelope:document-language}"/>
</map:transform>
...
</map:match>


<< Consistent URLsi18n Files >>

Contact Solprovider
Paul Ercolino