You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by sx...@Cs.Nott.AC.UK on 2002/01/02 15:48:25 UTC

include xsp in other xsp? (logicsheets?)

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??

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

Sharat Koya
Sxk99c@cs.nott.ac.uk


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: include xsp in other xsp? (logicsheets?)

Posted by Berin Loritsch <bl...@apache.org>.
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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>