cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: SQL Transformer substitute-value woes with 2.0.4
Date Fri, 17 Jan 2003 10:01:08 GMT

On Thursday, Jan 16, 2003, at 12:21 Europe/London, Andrew Savory wrote:

>
> Hi,
>
> As far as I can tell, using substitute-value with SQL Transformer does 
> not
> work in 2.0.4 (and there aren't any examples of it in the samples,
> something I'll rectify if I ever get the darn thing working!).
>
> Here's what I've got:
>

<snip/>

>       SELECT DISTINCT contributor_id, name FROM foo WHERE 
> contributor_id='<substitute-value sql:name="contributor_id"/>'
>     </sql:query>

<snip/>

>
> ... as far as I can tell, the substitute value just doesn't work. I've
> tried swapping {1} for 1 in the sitemap, and that doesn't help.
>
> Any ideas?

I use this in 2.1 successfully, did you try leaving the quotes out?

ie.

	SELECT DISTINCT contributor_id, name FROM foo WHERE contributor_id = 
<substitute-value sql:name="contributor_id"/>

this is how mine look ...

regards Jeremy


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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