You can do this kind of conditional include in Cocoon quite easily. In an xsl script you can use xsl:if to conditionally produce xinclude references to your other xml documents (toolbar, header, etc). Then your pipeline can use the xinclude transformer to process these "include" elements and actually include the referenced documents together into a single document.
-----Original Message----- From: Sreedhar Chintalapaty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 March 2002 09:39 To: Cocoon Users Subject: Some Design Help, please Hi, I am an absolute newbie to Cocoon. Being from a JSP background, I suspect there are some fundamental differences in the way a database driven web site is designed for Cocoon (with XSP/XML/XSL). Let's say the users enter the site by the way of "index". This page draws its content from several other component pages, namely header, majorTabs, toolBar and contentPage. The requirement is: The active majorTab must be highlighted, each majorTab has a different toolBar associated with it, and the contentPage can be either a static XML file or a database search results page. In the JSP world, I would create an index.jsp page that took in a bunch of request parameters like 'toolBarName', etc., and dynamically include the jsp components specified therein. How would I do something like that in Cocoon? Can one XSP page dynamically include other XSP pages? I would appreciate -any- examples/sample code! Best Regards, Sreedhar Chintalapaty Consultant, PTC - 140 Kendrick St., Needham MA 02494 ____________________________________________________________________________ ______________ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell --------------------------------------------------------------------- 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]>