I've been doing more reading and playing and I really want to do what is described in the 'Abstractions' section of the 'Concepts' page - http://xml.apache.org/cocoon/userdocs/concepts/index.html#c2-abstractions. I want to implement the 'Included Logicsheet' model, but have not been able to figure it out. Has anybody done this or are there any samples of this? What would the sitemap look like?
Here's what I was trying to do: <map:match pattern="user.xsp"> <map:generate type="serverpages" src="documents/user.xml"/> <map:transform type="xslt" src="stylesheets/user.xsl"/> <map:serialize type="xml"/> </map:match> <map:match pattern="user.html"> <map:generate type="serverpages" src="cocoon://user.xsp"/> <map:transform type="xslt" src="stylesheets/simple-page2html.xsl"/> <map:serialize type="html"/> </map:match> Thanks for your suggestions, Paul -----Original Message----- From: Paul Pattison [mailto:[EMAIL PROTECTED]] Sent: 13 April 2002 04:01 To: Cocoon Mailing List Subject: Using Included Logicsheets I think I'm starting to get this Cocoon thing... I'm designing a database web application. Most pages will have some content on them and then have some results returned from the database. I would like to keep the content part separate from the db query. It seems to me that I should store my db queries in logicsheets using esql. Then these data and db results would be combined before having an xslt transformation to html. My problem is that while I can get the content and db query to work separately, I'm a little foggy on how to integrate them. Do I use aggregation, xinclude or cinclude. I don't really understand the difference between these. I read the 'Abstraction' section in the Concepts doc, and I think I should use an 'Included Logicsheet', but it doesn't say how to do that. Suggestions greatly appreciated, Paul --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]>