cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Smirnoff" <asmirn...@vistar.ca>
Subject Re: how to make XSP to extend the abstract class?
Date Tue, 25 Jun 2002 20:12:36 GMT
Write your own xsp.xsl and change "core-logicsheet" in cocoon.xconf (I don't think 
it will be compliant with future versions of cocoon)

or quick and dirty way - write your own taglib like that:

<xsl:template match="/xsp:page/*[not(starts-with(name(.), 'xsp:'))][1]">
        <xsp:structure>
            <xsp:include>...<xsp:include>
            </xsp:structure>
        <xsp:logic>
            private void your_method()
            {
                ...
            }
        </xsp:logic>
        <!-- Fist element processing from XSP page -->
        <xsl:element name="{name()}">
            <xsl:apply-templates/>
        </xsl:element>
</xsl:template>

I'm using the last one and its works fine.....

Good luck,
Alex.

----- Original Message ----- 
From: "Argyn Kuketayev" <Argyn.Kuketayev@plateau.com>
To: "Cocoon-Users (E-mail)" <cocoon-users@xml.apache.org>
Sent: Tuesday, June 25, 2002 3:48 PM
Subject: how to make XSP to extend the abstract class?


suppose, I've many methods which I want to share between XSP pages. I put
them all in the abstract class, then make Java class (generated from XSP) to
extend this abstract class. How?

thanks,
Argyn

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message