cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tatsuhiko Miyabe <>
Subject [OT] The CSS-like logicsheets.
Date Thu, 05 May 2005 14:06:54 GMT
Dear Cocoon-Dev members,

First, please excuse me if it is improper.

My name is Tatsuhiko Miyabe, a student.
Please let me introduce CSS-like logicsheet that I developed.

For example, if you would like to turn text to red,
you can write following template:

<span cls-logic="[present: a; |attribute: 'style' 'color: Red']">
This text will be turned red.

cls-logic="[present: a; |attribute: 'style' 'color: Red']"
says "if present value _a_ then filter to set style attribute has value 'color: Red;'".

Also, this template can be separated to two files:

-- CSS-like logicsheet.
.if-present-a-turn-it-to-red {
    present: a;
    |attribute: 'style' 'color: Red'

-- Template
<span cls-class="if-present-a-turn-it-to-red">
This text will be turned red.

3 years ago, I was impressed with code generation mechanism of XSP logicsheet.
But also, I began to think while hacking it.
"Logicsheet is very powerful, but it seems pretty complex.
Perhaps, there might can be a Cascading Logicsheet for the XSP logicsheet as
there is Cascading Stylesheet for the XSLT stylesheet."

I started coding and made experiments on apply to a forum application and
shopping cart,etc.
And, it has been understood to be able to endure practical use powerful enough 

This is a forum application war packege.
[Scanned by Norton Antivirus]

Please deploy it on servlet engine and access to

And this is the all source code of the "Pasta" template engine.
[Scanned by Norton Antivirus]

This is the specification of "CLS" processing system.
(Sorry, this is machine translation from japanese.
Probably very heavy.)

Pasta based Excalibur Fortress container and, borrowd many ideas from Cocoon.
But almost parts are different to Cocoon.
For example, Pasta can construct SAX pipeline for each "element".

Unforunally, there are not a lot of people interested
in Cocoon and Avalon in Japan
(I'm not.I'm very interested in Cocoon and respect its developers!). 
It is one of the reasons to post this mail. 

Three attachments are template, style and logic of top-page of forum
They are separeted completely and a part of completed forum application.

Tatuhiko Miyabe

View raw message