cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
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. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message