You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Michael Wechner <mi...@wyona.org> on 2003/08/04 10:13:37 UTC
Re: logicsheet updated
Andreas Hartmann wrote:
> Christian Egli wrote:
>
> [...]
>
>> I think a logic sheet that simply invokes the page envelope input
>> module a couple of times would be fine with me.
>
>
> +1
>
> IMHO logicsheets should only simplify XSP development and should
> contain as little "knowledge" as possible, because they are very
> difficult to maintain (no IDE support).
+1
>
>>>> I'm against
>>>>
>>>> - accessing variables of the logicsheet from XSPs
>>>
>>>
>>> what's the problem with that? Transparency?
>>
>>
>> It defines no clear interface.
>
>
> - it relies on implicit contracts (e.g., variable initialization)
> - you don't see the variable type
> - changing it's value could break the logicsheet
> - variable name clashes may occur
>
> IMHO, logicsheets should only define local variables within
> template blocks:
>
> <xsl:template match="...">
> {
> int i = 0;
> }
> </xsl:template>
makes sense to me
>
>>>> - implicitely inserting XML fragments, Java code etc.
>>>
>>>
>>> AFAIK one cannot inherit XSPs, or am I wrong on this?
>>> What's the alternative?
>>
>>
>> I think the reason why Andreas doesn't want the logic sheet to insert
>> arbitrary Java code is to ensure that the stuff is handled where it
>> should be handled, i.e. in the Java code of the PageEnvelope,
>> Document, etc classes.
>
>
> Exactly (see above).
> With "implicitely" I mean that the tag name should show everything
> that is done by the tag, maybe it's better to call it "tags should
> have no side effects".
ok
Thanks
Michael
>
> Andreas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
>
>
--
Michael Wechner
Wyona Ltd. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://cocoon.apache.org/lenya/
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org