cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: Can I do this?
Date Wed, 26 Mar 2003 10:29:50 GMT
You can also use XPath expressions to parse your parameters, e.g.:
{request:translate(query, '+', ' ')}

--
  Konstantin

> From: joaocesar@duploclique.com [mailto:joaocesar@duploclique.com]
>
> It's really working :) Thanks ! :)
>
> I just have one problem, if I search for two terms it goes as
> term1+term2 and it produces no results, as well if i type
> them under quotes, like "term1 term2" :|
>
> Can I parse the querystring on the fly ?
>
> Thanks
>
> ----- Original Message -----
> From: <joaocesar@duploclique.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, March 25, 2003 11:01 PM
> Subject: Re: Can I do this?
>
>
> > Oops... forget it I've changed the wrong cocoon.xconf (I'm
> working on
> > the network, but have changed local file :| ), it's now error free:)
> >
> > Thanks
> >
> >
> > ----- Original Message -----
> > From: "Reinhard Pötz" <reinhard_poetz@gmx.net>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Tuesday, March 25, 2003 10:56 PM
> > Subject: RE: Can I do this?
> >
> >
> > Which cocoon version do you use?
> >
> > If you use 2.04 it seems to me that input modules are not
> supported by
> > the compiled sitemap. But I'm not sure because I've been
> using Cocoon
> > 2.1dev for month (interpreted sitemap and input modules
> work). But be
> > warned - Cocoon 2.1 is still alpha!!! But I think this will
> change in
> > the nearer future.
> >
> > Regards,
> > Reinhard
> >
> > > -----Original Message-----
> > > From: joaocesar@duploclique.com [mailto:joaocesar@duploclique.com]
> > > Sent: Tuesday, March 25, 2003 11:48 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: Re: Can I do this?
> > >
> > >
> > > Thanks :)
> > >
> > > I've added them into cocoon.xconf, but know i'm having this:
> > >
> > > message Error while creating node 'generate' at file:/C:/Program
> > > Files/Apache Group/Tomcat
> > > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> > >
> > > description
> > > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > > on: Error while creating node 'generate' at file:/C:/Program
> > > Files/Apache Group/Tomcat
> > > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> > >
> > > that's here:
> > >
> > >       <map:match pattern="do-search">
> > >
> > > <map:generate type="file"
> > > src="http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
> > > fcgi?db=pubmed
> > > &amp;term={request:query}&amp;retmax=200"/>
> > >         <map:transform type="xslt"
> src="stylesheets/pubmed2html.xsl"/>
> > >         <map:serialize type="html"/>
> > > </map:match>
> > >
> > >
> > > I'm doing anything wrong? Or do I need to use, <input-module
> > > name="request"/> ?
> > >
> > > TIA
> > >
> > > Joao Cesar
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Reinhard Pötz" <reinhard_poetz@gmx.net>
> > > To: <cocoon-users@xml.apache.org>
> > > Sent: Tuesday, March 25, 2003 10:29 PM
> > > Subject: RE: Can I do this?
> > >
> > >
> > > Checkout input modules - they should be available in 2.04. They
> > > grant you easy access to the request parameters.
> > >
> > > <map:generate type="file"
> > > src=http://blablabla?term={request:query}/>
> > >
> > > Regards,
> > > Reinhard
> > >
> > >
> > > -----Original Message-----
> > > From: joaocesar@duploclique.com [mailto:joaocesar@duploclique.com]
> > > Sent: Tuesday, March 25, 2003 10:54 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: Can I do this?
> > >
> > >
> > > Can I (?) do anything like this:
> > >
> > > <map:match pattern="search?query=*">
> > >         <map:generate type="file" src=http://blablabla?term={1}/>
> > >         <map:transform type="xslt"
> src="stylesheets/search2html.xsl"/>
> > >         <map:serialize type="html"/>
> > > </map:match>
> > >
> > > I've found that if I do (...) pattern="*.search"> (...)
> it works,
> > > and i can do for example "search phrase".search in the
> address bar
> > > and it matches with the generate prototype.. but i want
> to use that
> > > notation to match a GET form.
> > >
> > > Thanks
> > >
> > > João César
> > > joaocesar@netcabo.pt
> > >
> > >
> > >
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> > >
> > >
> > >
> > >
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org



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