Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 86252 invoked by uid 500); 10 Aug 2001 06:25:41 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 86241 invoked from network); 10 Aug 2001 06:25:41 -0000 From: "Piroumian, Konstantin" To: cocoon-users@xml.apache.org Message-ID: <080001c12165$43224f20$9d0a000a@flagship.ru> References: <000901c120ed$99d81de0$1101a8c0@JetOnline> Subject: Re: Can the sitemap pass parameters to XSP, like it passes them to XSL? Date: Fri, 10 Aug 2001 10:25:34 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > 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: > > > > > > > > > > > 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... Why don't you use LocaleSelect action? This will allow you to get the 'lang' parameter from the request attributes and use it (session and cookies are also supported). > In xsl, you would normally use , 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). Do you have any suggestions how i18n transformer can be advanced to meet your needs? What's is the problem with images? You can use different directories for your locale-sensitive images and use i18n taglib to specify the path. Note, that you can use i18n attributes in your XSP source: and have this in your dictionary: hello.gif en/hello.gif en/hellow.gif ru/hello.gif What else do you need for images? Any ideas are appreciated. > > Thanks in advance, > Tibi Dondera Best regards, Konstantin Piroumian Senior software developer Protek Flagship LLC Phone: + 7 095 795 0520 (add. 1288) Fax: + 7 095 795 0525 E-mail: kpiroumian@flagship.ru http://www.protek.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: