Hello.
I'm trying to figure out an architecture for a multilingual site. One of the
ideas, that seem pretty nice, is described by the sitemap code:
<map:match pattern="en/*.html">
<map:generate type="serverpages" src="sources/{1}.xsp">
<map:parameter name="lang" value="en"/>
</map:generate>
<map:transform src="stylesheets/en/{1}.xsl">
</map:transform>
<map:serialize type="html"/>
</map:match>
That would create a "virtual" subdirectory "en", and all the page requests
in that dir will in fact execute a .xsp file (the same for all the
languages) and apply a different logicsheet, stored in different dirs, one
for each language.
The problem is that I'm unable to get the value of the "lang" parameter in
my xsp pages...
In xsl, you would normally use <xsl:param>, but here... I have no idea.
Is this idea totally wrong, or can someone give me a sollution to the
problem?
In any case, did anybody devised a way to build multilanguage sites (other
than the i18n internationalisation taglib, which is great for text in the
page, but not for layout, or if the site is full of images).
Thanks in advance,
Tibi Dondera
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>