cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [c2] bugs in xsp engine
Date Fri, 13 Apr 2001 10:42:51 GMT
Sylvain,
Give me a day or so. I need to dig a bit more before we jump into implementing
"first-time-applied" param.

Thanks,
dims

--- Sylvain Wallez <sylvain.wallez@anyware-tech.com> wrote:
> 
> Dims, I looked at your changes at XSPMarkupLanguage et al, but didn't
> understand how they solve Donald's problem. What I understand is that
> there's a need for the logicsheet transformer (i.e. the XSL) to know
> that it already has been applied in the generation process in order
> avoid redeclaring some class-level elements (often implemented within a
> <template match="xsp:page">).
> 
> If this is the problem, AbstractMarkupLanguage could give the logicsheet
> a boolean parameter indicating if it's applied for the first time or
> not. A logicsheet could then use it as follows :
> 
> <xsl:param name="first-time-applied"/>
> 
> <xsl:template match="xsp:page">
>   <xsp:page>
>     <xsl:apply-templates select="@*"/>
>     <xsl:if test="$first-time-applied = 'true'>
>       <xsp:structure>
>         <!-- inner classes, methods and class members declarations -->
>       </xsp:structure>
>     </xsl:if>
>     ...
>   </xsp:page>
> </xsl:template>
> 
> What do you think of it ?
> -- 
> Sylvain Wallez
> Anyware Technologies - http://www.anyware-tech.com


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message