Vadim Unfortunately I only have the built version...
Still no success - as I said before, I have removed the <xsp:logicsheet location="derek1/logic/logicsheet.greeting.xsl"/> from the XSP and also cleared the cache (not that I could find any references to the file....). Also did restart. Still get the 'resource not find' error. The files as they stand are attached. The entries in the sitemap.xmap and cocoon.xconf are as follows: <map:match pattern="derek1/logic/greeting3.xml"> <map:generate type="serverpages" src="derek1/logic/greeting3.xml" /> <map:transform type="xslt" src="derek1/logic/greeting.xsl"/> <map:serialize/> </map:match> <builtin-logicsheet> <parameter name="prefix" value="greeting"/> <parameter name="uri" value="http://duke.edu/tutorial/greeting"/> <parameter name="href" value="resource://derek/logicsheet.greeting.xsl"/> </builtin-logicsheet> The logicsheet.greeting.xsl file is saved in the $TOMCAT\webapps\cocoon\WEB-INF\classes\derek directory. Is it possible for you to try these out and see if you have same error code? Thanks Derek >>> [EMAIL PROTECTED] 04/02/2002 05:18:26 >>> You need to remove references to the logicsheet file from the XSP, and leave only namespace declaration. Also, you can delete any generated files from previous run and restart engine. PS: CVS contains this sample and runs it out-of-the-box. Vadim > From: Derek Hohls [mailto:[EMAIL PROTECTED]] > > Vadim > > I have tried this: > > <!-- Derek Test Logicsheet --> > <builtin-logicsheet> > <parameter name="prefix" value="greeting"/> > <parameter name="uri" > value="http://duke.edu/tutorial/greeting"/> > <parameter name="href" > value="resource://derek/logicsheet.greeting.xsl"/> > <!-- resource is: WEB-INF/classes/ --> > </builtin-logicsheet> > > inserted in the cocoon.xconf and the XSL file placed in the relevant > subdirectory of WEB-INF . Shutdown and restarted. > > I still get the: > java.lang.IllegalAccessError: try to access method > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addL ogicsh > eetToList > (Lorg/apache/cocoon/components/language/markup/AbstractMarkupLanguage > $LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/Sou rceRes > olver;)V > from class > org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage > $XSPTransformerChainBuilderFilter > > Do I need to change anything else in the sitemap or the calling > files?? > > Eg. if I delete the : > <xsp:logicsheet location="derek1/logic/logicsheet.greeting.xsl"/> > from the calling file, then I get "The requested resource (Not Found) > is not available." error. > > Thanks > Derek --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsp="http://apache.org/xsp"; xmlns:greeting="http://duke.edu/tutorial/greeting"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="xsp:page"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="greeting:hello-world"> <!-- more complex XSLT is possible here as well --> <xsp:logic> // this could be arbitrarily complex Java code, JDBC queries, etc. String msg = "Hello, world 3!"; </xsp:logic> <xsp:expr>msg</xsp:expr> </xsl:template> <!-- This template simply copies stuff that doesn't match other --> <!-- templates and applies templates to any children. --> <xsl:template match="@*" priority="-1"> <xsl:copy> <xsl:apply-templates select="@*"/> </xsl:copy> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head> <title>Logicsheet Test</title> </head> <body> <h1> <xsl:value-of select="greeting"/> </h1> </body> </html> </xsl:template> <!-- <xsl:apply-templates /> </xsl:template> <xsl:template match="page"> --> </xsl:stylesheet>
<?xml version="1.0"?> <xsp:page xmlns:greeting="http://duke.edu/tutorial/greeting" xmlns:xsp="http://apache.org/xsp" ><!-- <xsp:logicsheet location="derek1/logic/logicsheet.greeting.xsl"/> --> <greeting> <greeting:hello-world/> </greeting> </xsp:page>
--------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>