cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cocoon User <coc...@eng.gr>
Subject Re: i18n catalogue and sql
Date Wed, 01 Jan 2003 22:55:24 GMT


hi konstantin

i know how to make a src file selection based to requested url using
matches

http://...../el/test
http://...../en/test

<map:match pattern="*/*">
	<map:generate src="{1}_{2}.xml"/>
</map:patch>

but how can do  something similar using parameter?

http://..../test?locale=el
http://..../test?locale=en

using {1} or {2} i refer to first or second * in pattern
but how can i refer to locale prameter value inside <map:match/> ?




thnx
stavros






On Mon, 30 Dec 2002, Konstantin Piroumian wrote:

> From: "Cocoon User" <cocoon@eng.gr>
>
> >
> > hy people
> >
> > i have found very usefull the i18n processing
> > but what happend when you  have large text?
>
> It's not recommended to use i18n transformer for large texts. There are
> several other ways to solve that task: use XInclude/CInclude, XSLT with
> document() function, sitemap aggregation, etc. Another possibility is to use
> separate content files for different languages, e.g: index_en.xml,
> index_ru.xml, ..., and then use an action or an input module to retrieve the
> needed one based on the user's locale (you can use LocaleAction and its
> 'language' sitemap parameter).
>
> >
> >
> >
> > is it possible for catalogues to retrieve data from an sql server
> > mySQL for example
>
> Recently there was commited a patch that allowed to use any source as input
> for the XML catalogue, so you can easily use 'cocoon:/' protocol or any
> other to retrieve your dictionary data from a database. Note, that
> implementation of i18n and especially the catalogue handling part is quite
> different in 2.0.x and 2.1-dev versions.
>
> Konstantin
>
> >
> >
> > xml page -ID-> catalogue -ID-> data from SQL
> >
> >
> > thnx
> >
> > stavros
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message