Well - I thought about using the cinclude transformer (since I'm using it elsewhere). But - the problem is, that doesnt seem to help me with the conditional part.
I only want to cinclude under certain conditions. So I'm not exactly sure how I could use a cinclude to do this. Also.. is it even possible to cinclude an XSP? Most of the usage I've seen for cinclude is for including XML fragments from other XML docs. The data I'm pulling and needing to include is SOAP response data.. so it has to be an XSP. Thanks, - Brent > -----Original Message----- > From: Morley Howell [mailto:[EMAIL PROTECTED] > Sent: Monday, January 26, 2004 2:34 PM > To: [EMAIL PROTECTED] > Subject: RE: Conditional Aggregation? > > > Brent, > > My suggestion: use the cinclude transformer instead of > map:aggregate. Check out > http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-tr > ansformer.html > . I think there's even an article kicking around somewhere > about why the cinclude transformer is 'better' than map:aggregate. > > Morley > > > -----Original Message----- > > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > > Sent: Monday January 26, 2004 2:07 PM > > To: [EMAIL PROTECTED] > > Subject: Conditional Aggregation? > > > > > > I'm currently using map:aggregate to pull together > > multiple XSP's into a single source. This works fine > > for all the "static" XSP content I want. But what > > about conditional content? > > > > I.e. Im writing a builtin google search. I've got an > > XSP that does a SOAP call to pull the search results. > > But I do *not* want make that soap call if a search > > wasnt meant to be run. Here is what Im trying to do: > > > > <map:aggregate element="data"> > > <map:part src="cocoon:/weather.xml"/> > > <map:part src="cocoon:/feedsList.xsp"/> > > <map:part src="cocoon:/emails.xsp"/> > > <!--+ > > | Google Search > > +--> > > <map:select type="request-parameter"> > > <map:parameter name="parameter-name" value="search"/> > > <map:when test="1"> > > <map:part src="cocoon:/google/search.xsp"/> > > </map:when> > > </map:select> > > </map:aggregate> > > > > This doesnt work because you cant have a map:select inside > > a map:aggregate. But you probably get the point of what > > I'm trying to do. > > > > Anyone have any suggestions? > > > > Thanks, > > > > - Brent > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
