Hi Chris,
I'm doing similar things. Some things I've done (note: check syntax, I'm
doing this from the top of my head):
<map:match pattern="**/*/*.html">
<map:generate src="content/{3}.xml"/>
<map:transform src="system/langselect.xsl">
<map:parameter name="lang" value="{2}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{2}"/>
</map:transform>
<map:transform src="system/tohtml.xsl"/>
<map:serialize type="html"/>
</map:match>
In my pages I use i18n for small things (i.e. 1 sentence max.) and my
langselect construction for the larger things:
<langselect>
<select lang="de">
<!-- german text here -->
</select>
<select lang="en">
<!-- english text here -->
</select>
</langselect>
langselect.xsl:
<xsl:param name="lang" select="de"/>
<xsl:template match="langselect">
<xsl:copy-of select="[EMAIL PROTECTED]"/>
</xsl:template>
<!-- catch all template to copy the rest -->
---
If the text between <select> and </select> gets really long, you can
also opt for:
<langselect>
<select lang="de">
<!-- german text here -->
<cinclude:include src="content/de/mygermanversion.xml"/>
</select>
<select lang="en">
<!-- english text here -->
<cinclude:include src="content/en/myenglishversion.xml"/>
</select>
</langselect>
HTH.
Bye, Helma
> -----Original Message-----
> From: Chris. Grobmeier [mailto:[EMAIL PROTECTED]
> Sent: Friday, 04 March, 2005 11:56
> To: [email protected]
> Subject: Re: Localization
>
>
> >I haven't used the i18n transformer myself yet,
> > so don't know how it is configured actually. XML lookup I expect?
>
> Don't know it myself... but you are right with maintenance
> thing. I will carry on with translating labels and navigation
> links with i18n and including different static xml files.
>
> Regards,
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]