Hello Christian,
First, thanks for your help!
I think I've done what you told me concerning the input module. And in fact,
I've just changed the value of the parameter 'locale', given the
successfull pattern using localeAction:
**** localeAction ***
<map:pipeline>
<map:act type="locale">
<map:match pattern="localeAction">
<map:generate src="documents/participants.xml"/>
<map:transform src="stylesheets/participantsINT.xsl">
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{../locale}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
</map:act>
*****input module *****************
<map:match pattern="inputModule">
<map:generate src="documents/participants.xml"/>
<map:transform src="stylesheets/participantsINT.xsl">
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{request-header:accept-language}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
but unfortunately, I receive the following error message, that I didn't have
with the preceding localAction:
type fatal
message Unable to locate resource: messages
description org.apache.cocoon.ProcessingException: Unable to locate
resource: messages:
org.apache.avalon.framework.component.ComponentException: Unable to locate
resource: messages
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
Is it normal?
Thanks again for your help,
Regards,
Cyril.
----- Original Message -----
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 4:23 PM
Subject: Re: How can the result of a pipeline be a parameter for a
transformation in another pipeline?
> On 31.Jan.2003 -- 04:07 PM, Cyril Vidal wrote:
> > Hello,
> >
> > I would like to retrieve the language of the user's browser, so that I
could
> > call the I18n Trasnformer in the right way (by passing the locales's
value
> > equal to the browser's language).
> >
> > To retrieve the language set up in the browser, I've used the Request
> > Generator, and applied the following simple stylesheet to it:
>
> Starting with version 2.0.4 you could try
> {request-header:accept-language} for that. See input modules in
> "concepts" and javadocs.
>
> Chris.
> --
> C h r i s t i a n H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> 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]>