cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: input module question
Date Tue, 28 Jan 2003 13:12:10 GMT
From: "Jeremy Quinn" <jeremy@media.demon.co.uk>

> Hi All,
>
> I am interested in seeing whether Input Modules in the Sitemap can use
> Sitemap params as their own params.
>
> I am looking at all the different ways to solve a problem .... before
> we choose a solution
>
> Say I have a set of urls:
>
> /archive/people/ABC
> <snip/>
> /archive/people/WXYZ
>
> Which result in modifications to an SQL Query:
>
> WHERE surname LIKE 'A%' OR 'B%' OR 'C%'
> <snip/>
> WHERE surname LIKE 'W%' OR 'X%' OR 'Y%' OR 'Z%'
>
> Say I had an XML file, used by the XMLFileModule (mapped to
> 'alphabet'), that mapped each (allowed) letter group to the query
> modification it needed, then this could be passed by the sitemap to the
> SQLTransformer via a map:parameter into a <substitute-value
> sql:name="alphabet"/>.
>
> But is this possible?
>
> <map:match pattern="archive/(.*)/([A-Z]*)$" type="regexp">
>    <map:generate src="{our:content}/archive/{1}.xml"/>
>    <snip/>
>    <map:transform type="sql">
>      <map:parameter name="alphabet" value="{alphabet:{2}}"/>
>    </map:transform>                                  ^^^      ????????
>    <snip/>
> </map:match>
>
> Is this possible to do?

Unfortunately no. I've raised this issue on dev list, but no one had a
solution to it (I hope we'd invent something for that).

--
  Konstantin

>
> This is just one solution I am looking at ..... but thanks for any help
> anyway ....
>
> regards Jeremy
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>


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


Mime
View raw message