I found this site useful for giving an example of writing a simple logicsheet.
http://www.cocooncenter.org/cc/documents/resources/logicsheet/index.html
If you don't want to declare your logicsheet in cocoon.xconf(so you do not have to restart Tomcat every time you change the logicsheet), you can do this in your xsp page (and not change cocoon.xconf at all):
<?xml version="1.0" encoding="UTF-8"?>
<?xml-logicsheet href=""otda_1/logicsheets/db_query.xsl"?>" <-- reference to your logicsheet
<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:db_query="http://apache.org/otda/logicsheet/dbquery/1.0" <-- namespace for your logicsheet
xmlns:log="http://apache.org/xsp/log/2.0"
>
...
<intro>
<!-- use logicsheet-->
<db_query:work_queue_summary />
</intro>
...
=================================================================================================
Then in your logicsheet file (here db_query.xsl):
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsp="http://apache.org/xsp"
xmlns:db_query="http://apache.org/otda/logicsheet/dbquery/1.0" <-- same namespace as above xsp page
>
...
<xsl:template match="db_query:work_queue_summary">
<!-- your logic here -->
</xsl:template>
...
-----Original Message-----
From: daniel robinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: Re: write logicsheet
Chris,
Have you looked at:
docs\userdocs\xsp\logicsheet-concepts.html
and also the examples in:
docs\samples\xsp\aggregate.xsp
I would suggest that you get one of the samples running and then work
from there. I'm just beginning myself but it seems like your xconf
entry is for a "request" logicsheet (see doc re: logicsheet-concepts and
others. You can use the xconf file from the Cocoon demo until you get a
little more proficient. Also I have used the CHello project (on
sourceforge.net) as a basis for my own work. Some on the list have
suggested there are problems with it, but it has worked well for me.
Regards,
Dan
Christoph Stocker wrote:
>hi!
>
>
>anyone knows how to write a logicsheet and how
>to install it - so that i can use it in my xsp-site?
>
>
>i know, that i have to do some settings in the cocoon.xconf
>and to write something like this -->
>
><builtin-logicsheet>
> <parameter name="prefix" value="xsp-request"/>
> <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
> <parameter name="href"
>value="resource://org/apache/cocoon/components/language/markup/xsp/java/
>request.xsl"/>
></builtin-logicsheet>
>
>but what does these parameters are for? how will changes to these
>parameters affect cocoon?
>
>are there more parameters?
>
>
>
>maybe, someone have links to sites, explaining to to this.
>
>greetings, chris
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>