cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: include xsp in other xsp? (logicsheets?)
Date Wed, 02 Jan 2002 14:59:02 GMT
sxk99c@Cs.Nott.AC.UK wrote:

> Happy new year,
> I have multiple xsp files which are then chewed and styled to produce
> html. Unfortunately a lot of the XSP files have repeat code in them. Is
> it possible for me to store this repeating code separately and then call
> it when needed. I have been told that logic sheets maybe the answer but
> I don't know how to implement it? Do create a separate xsp file with the
> code in and use a namespace in the calling xsp file??

That's what a logicsheet is!

You have to write it in a stylesheet (because the generator is created by
applying a succession of stylesheets for all the logicsheets), and add the
entry to the cocoon.xconf.

> Any help and simple to follow instructions would be much appreciated. 

Sorry, I don't have enough time to write one out for you.  Check the docs
for how to write logicsheets, and that should get you started.


"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message