You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Argyn Kuketayev <Ar...@plateau.com> on 2002/06/25 21:48:45 UTC
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: how to make XSP to extend the abstract class?
Posted by Alexander Smirnoff <as...@vistar.ca>.
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" <Ar...@plateau.com>
To: "Cocoon-Users (E-mail)" <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>