Thanks a lot, but the problem i have is quite different : in fact, i'd like
to take these url-encoded parameters in account in the XSL stylesheets used
to generate the html code. I may have many parameters in the same url, but
i'd like to generate the corresponding html file with only one parametered
XSL stylesheet.

The reason why I want to proceed like that is that i've got a huge
repository of XML i used to publish with cocoon1 parametered XSL files, and
i would appreciate not to have to modify everything...

Example :

I'd like to manage [...]myXMLDoc?bgcolor=FFFFFF with this XSL code :

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:param name="bgcolor">FFFFFF</xsl:param>
  <xsl:template match="/">
    <html>
      <body bgcolor="#{$bgcolor}">
      [...]

Many thanks !

Olivier


-----Message d'origine-----
De : Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 20 septembre 2001 10:00
Ŕ : [EMAIL PROTECTED]
Objet : AW: Cocoon2 : Managing URL-encoded parameters


The usual sitemap match (map:match pattern="xyz") tests
only the request uri. It does not take any parameter into
account.
For testing parameters you can use the parameters matcher:

<map:match pattern="my-xml-document.xml">
   <map:match type="request" pattern="param">
        <!-- At this point {1} refers to the value of the parameter
    named "param"
        <map:generate src="xml_doc_number{1}.xml"/>
         ...
  </map:match>

</map:match>

The example above should (if there is not a typo in it) test
the request against the uri "my-xml-document.xml", if this
test is successful, the request matcher gets the value of
the request parameter "param" and makes it available for
the included components, so a call "my-xml-document.xml?param=2"
would read "xml_doc_number2.xml".

HTH


Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: [EMAIL PROTECTED]
================================================================

-----Ursprüngliche Nachricht-----
Von: Sparkes, Peter [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 09:41
An: '[EMAIL PROTECTED]'
Betreff: RE: Cocoon2 : Managing URL-encoded parameters


HI,
I have the same problem.
Peter
---------- Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St       Tel. +44 (0)20 7424 2084
London          Fax. +44 (0) 20 7344 2815
WC2B 5DF                Email. [EMAIL PROTECTED]
UK                      Website: http://www.derwent.com/
> -----Original Message-----
> From: Olivier Boulanger [mailto:[EMAIL PROTECTED]]
> Sent: 19 September 2001 18:52
> To: [EMAIL PROTECTED]
> Subject: Cocoon2 : Managing URL-encoded parameters
>
>
> Hi all,
>
> I have just installed cocoon 2. I first thought that defining
> a sitemap was
> a great idea, but i'm wondering by now if it's possible to manage
> URL-encoded parameters in an XML2HTML process (like i used to
> with cocoon
> 1).
>
> Considering an url like
> "localhost/my-project/my-xml-document.xml?param=1",
> what should be written in the sitemap file to make it work fine ?
> I've tried to define several kinds of "map:match" corresponding to my
> pattern, without any success...
>
> Thanks a lot in advance,
>
> Olivier Boulanger
>


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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




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

Reply via email to