Re: i18n catalogue and sql [act howto]

2003-01-08 Thread Cocoon User

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 [EMAIL PROTECTED]

  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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: i18n catalogue and sql [act howto]

2003-01-08 Thread Konstantin Piroumian
From: Cocoon User [EMAIL PROTECTED]


 hi konstantin

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

There is already such action in Cocoon:
src\java\org\apache\cocoon\acting\RequestParamAction.java

But I'd prefer to use already implemented input module, which looks much
better in the sitemap.

Konstantin


 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 [EMAIL PROTECTED]
 
   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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 
 


 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]