If you use the transformer xsl with pass the parameter to the xslt, is not
necessary to declare the parameters and use the match. Prove this:
<map:match pattern="D*/*.xml">
<map:generate src="D{1}/{2}.xml"/>
<map:transform src="doc.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:transform/>
<map:serialize type="html"/>
</map:match>
The tag <map:parameter name="use-request-parameters" value="true"/> send to xslt
all the parameters from the url or the post request.
See the cocoon documentation for other examples.
Olivier Boulanger wrote:
> Hi all,
>
> I've got something like :
> <map:match pattern="D*/*.xml">
> <map:generate src="D{1}/{2}.xml"/>
> <map:match type="request" pattern="lang">
> <map:transform src="doc.xsl">
> <map:parameter name="lang" value="{1}"/>
> </map:transform>
> <map:serialize type="html"/>
> </map:match>
> </map:match>
> In my sitemap.
>
> But I'm not sure that "lang" - optional parameter of doc.xsl - has been sent
> by the URL, and :
> URL like xxx.xml?lang= => ok
> URL like xxx.xml => ressource not found error
>
> => How can I manage optional request parameters in the sitemap ?
>
> Many thanks,
>
> Olivier
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
begin:vcard
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de C�lcul i Informatizaci�
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>