Hi, I'm just starting with Cocoon and had a newbie question:

Does Cocoon have a mechanism for iteration in the sitemap file? An
example would be running some sort of pipeline with the results of a
xmldb query. The SQLTranformer has something like this, but only
for additional SQL queries. If a query returned something that
needed fetched from a different source/transformer/etc, how would
one turn the list of queries into the invocations of the pipelines?

I'm imagining something like:

   <map:match pattern="query/**">
     <map:generate src="xmldb:xindice://localhost:4080/db/{1}"/>
     <map:iterate element="link">
       <map:generate src="cocoon:/{link}"/>
       <map:transform src="getstuff.xsl"/>
     </map:iterate>
     <map:serialize/>
   </map:match>

I think I could do this with CIncludes, but that would hide the
iteration in an XSLT file. Is that the best way to do something
like this? Is putting this sort of stuff in the sitemap a bad
idea? Or am I just way off?

Thanks,
 Phil

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to