You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by yp...@freemail.gr on 2007/04/09 12:59:35 UTC

Pipeline output as map:parameter to sql transformer (sql:substitute-value)

Can I use the output of a pipeline inside an <sql:substitute-value> ?

Something like:

<map:pipeline>
	<map:match pattern="listStuff">
		<map:generate src="listStuff.xml"/>
		<map:transform type="sql">
			<map:parameter name="some_key" value="cocoon:/getKey"/>
		</map:transform>
		<map:transform src="listStuff.xsl"/>
	</map:match>
</map:pipeline>

and

<sql:query>
	SELECT something FROM somewhere WHERE name = '<sql:substitute-value name="some_key"/>'))
</sql:query>



If not, how can I use a pipeline output like <some_key>blahblah</some_key> for a query?


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