[EMAIL PROTECTED] 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. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>