You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ar...@gmx.de on 2001/05/23 17:58:26 UTC
cocoon2 (logicsheets)
hello all,
I tried to specify my own taglib for C2 (xslt)?
I specified the builtin logicsheet in cocoon.xconf like this:
<builtin-logicsheet>
<parameter name="prefix" value="xsp-request2"/>
<parameter name="uri" value="http://apache.org/xsp/request2"/>
<parameter name="href" value="file:///C:/request.xsl"/>
</builtin-logicsheet>
this is my xsp file:
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-test="http://apache.org/xsp/test">
<page>
<p>Hello <xsp-test:name/>!</p>
</page>
</xsp:page>
-----------------------------------------------------------
and this is the logicsheet:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsp-test="http://apache.org/xsp/test" xmlns:xsp="http://apache.org/xsp">
<xsl:template match="xsp:page">
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
<xsl:copy>
<xsl:apply-templates select="@*"/>
</xsl:copy>
<xsp:logic>
<![CDATA[
private static String ausgabe ()
{
return ("world");
}
]]>
</xsp:logic>
<xsl:apply-templates select="page"/>
</xsp:page>
</xsl:template>
<xsl:template match="xsp-test:name">
<xsp:expr>ausgabe ()</xsp:expr>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------
but i get the following error message when the java code is generated:
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.apache.cocoon.ResourceNotFoundException: Language
Exception:org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error compiling xsp_test_xsp:
Line 0, column 0: C:\Program
Files\jakarta-tomcat-3.2.1\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\docs\samples\xsp\xsp_test_xsp.java:3:
Identifier expected.
package ;
^
Line 0, column 0: C:\Program
Files\jakarta-tomcat-3.2.1\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\docs\samples\xsp\xsp_test_xsp.java:43:
Identifier expected.
public class extends XSPGenerator {
^
Thanks in advance.
Arwo
--
Madonna Konzertreise Berlin
Hier Eventreisen zur Madonna-Tour bei Getgo.de online buchen!
http://www.getgo.de/cgi-bin/TDoc.dll?doc=reisen/rei_kon_sta&affiliate=GMX
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>