Andreas, I tried this strategy instead of what I had used, but I am not getting the result. I am getting the following in the output instead of the document getting embedded:
<include xmlns="http://apache.org/cocoon/include/1.0" src="site:/en/leftmenu" /> I had made the following changes. 1. xmlns:ci="http://apache.org/cocoon/include/1.0" (added this in page2xhtml.xsl in xsl:stylesheet declaration) 2. <ci:include src="site:/{$language}/leftmenu"/> (at a location where I am expecting leftmenu to show up) Did I do something wrong? regards, Ramesh ----- Original Message ---- From: Andreas Hartmann <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, October 16, 2008 4:15:10 AM Subject: Re: Newbie question - strategy to develop a simple website Hi Ramesh, Ramesh Chandra schrieb: > So I am planning to use the following strategy. > 1. Create the following documents which contain xhtml fragments > a)/header b)/leftmenu c)/footer > 2. Create documents for each page containing only the "Content" part > 3. Edit page2xhtml.xsl so that it would automatically include > /header, /leftmenu and /footer automatically at appropriate > positions. > 4. /leftmenu, /header can be edited at any later time by the editor > (without needing to tinker with xsl), so that the whole website is > affected at one go. > The question is 'How do I implement Step 3'? to include a document using its language and sitetree path, you can use the IncludeTransformer [1] with the site protocol [2]: <i:include src="site:/{$language}/footer"/> [1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/IncludeTransformer.html [2] http://lenya.apache.org/docu20/reference/protocols/siteprotocol.html HTH, -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 --------------------------------------------------------------------- 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]
