cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Multani, Dal" <Dalvinder.Mult...@softwareagusa.com>
Subject RE: Cocoon2 : Managing URL-encoded parameters
Date Thu, 20 Sep 2001 18:27:37 GMT
Has anyone used this to capture more that one parameter ?

Dal Multani

-----Original Message-----
From: giacomo [mailto:giacomo@apache.org]
Sent: Thursday, September 20, 2001 2:08 PM
To: 'cocoon-users@xml.apache.org'
Subject: RE: Cocoon2 : Managing URL-encoded parameters


On Thu, 20 Sep 2001, Sparkes, Peter wrote:

> Thanks Carsten,
>
> With your help I have got it working.
>
> A commented sitemap DTD would be a great help, is anyone working on it?

Not that I know. There has been an draft of an XML Schema in xdocs/draft
but that one is really old.

Giacomo

>
> 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. peter.sparkes@derwent.co.uk
> UK			Website: http://www.derwent.com/
>
> > -----Original Message-----
> > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > Sent: 20 September 2001 09:00
> > To: cocoon-users@xml.apache.org
> > Subject: 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: cziegeler@sundn.de
> > ================================================================
> >
> > -----Urspr√ľngliche Nachricht-----
> > Von: Sparkes, Peter [mailto:peter.sparkes@derwent.co.uk]
> > Gesendet: Donnerstag, 20. September 2001 09:41
> > An: 'cocoon-users@xml.apache.org'
> > 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. peter.sparkes@derwent.co.uk
> > UK                      Website: http://www.derwent.com/
> > > -----Original Message-----
> > > From: Olivier Boulanger [mailto:Boulanger@Lucid-IT.com]
> > > Sent: 19 September 2001 18:52
> > > To: cocoon-users@xml.apache.org
> > > 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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> >
>
>
> **********************************************************************
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message