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 [act howto]
Date Wed, 08 Jan 2003 12:19:57 GMT

hi konstantin

i plan to create an action that will create sitiemap variables for
specific request-parameters not for use only with i18n

is there any simple action or any howto create an action for cocoon?
i need just a point to start form (something for example)


thnx
stavros

On Wed, 8 Jan 2003, Konstantin Piroumian wrote:

> From: "Cocoon User" <cocoon@eng.gr>
>
> > hi martin this is a way to send a parameter inside your xsl file (pretty
> > good) but i need something else
> >
> > i want to use a request parameter as a variable inside my sitemap
> >
> > example
> >
> > if i have http://../...?locale=el
> >
> > src="{locale}_data.xml"
> >
> > point to el_data.xml
> >
> > (i have do something similar using a action just like in i18n example from
> > 2.1 version of cocoon but i'm wondering if there is another way to do this
> > without action)
>
> Another possibility is to create an InputModule that will act exactly like
> the LocaleAction, so you'll be able to use it like this:
>
> src="{i18n:locale}_data.xml"
>
> and even now you can use the 'request-param' module for that:
>
> src="{request-param:locale}_data.xml"
>
> Konstantin
>
> >
> > thnx stavros
> >
> >
> > On 5 Jan 2003, Martin L├╝thi wrote:
> >
> > >
> > > You can use the request parameter like this:
> > >
> > >   <map:transform src="stylesheets/mystyle.xsl">
> > >      <map:parameter name="use-request-parameters" value="true"/>
> > >      <map:parameter name="region" value="{request:locale}"/>
> > >   </map:transform>
> > >
> > > Cheers Martin
> > >
> > >
> > > Cocoon User <cocoon@eng.gr> writes:
> > >
> > > > 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/>
?
> > >
> > >
>
>
> ---------------------------------------------------------------------
> 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