cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <ghow...@crosswalk.com>
Subject RE: giving cinclude parameters?
Date Sun, 02 Jun 2002 03:11:30 GMT
well, that was how I have been going about it - i just wondered is there a
cleaner way to do this?  the transformation to create that url is a little
messy.  Thank you though.

Geoff

-----Original Message-----
From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Sent: Saturday, June 01, 2002 11:04 PM
To: cocoon-users@xml.apache.org
Subject: RE: giving cinclude parameters?


> From: Geoff Howard [mailto:ghoward@crosswalk.com]
> 
> I am generating a page with several cinclude elements which need to
call
> another pipeline with parameters - .ie:,
> cocoon:/includedStuff.xml?param1=foo&param2=bar
> 
> How would you go about this?

<cinclude:include
src="cocoon:/includedStuff.xml?param1=foo&param2=bar"/>

should work.

Vadim


> What I'd wanted to do is to provide the params inside the cinclude
element
> like so:
> <cinclude:include src="cocoon:/includedStuff.xml">
> 	<cinclude:param1>foo</cinclude:param1>
> 	<cinclude:param2>bar</cinclude:param2>
> </cinclude:include>
> 
> But don't see any support for that in the source for CInclude.
> 
> I won't know in advance how many there will be, and I obviously won't
know
> what they are.  They do not already exist in the object model, and
because
> the same pipeline can be included  multiple times in the same page
with
> different parameters, the object model doesn't really work.
> 
> Geoff Howard


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