cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ans...@tnoo.net (Martin Lüthi)
Subject Re: i18n catalogue and sql
Date Sun, 05 Jan 2003 11:38:48 GMT

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/> ?

-- 
Martin Lüthi                 answer@tnoo.net



---------------------------------------------------------------------
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