DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7279>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7279 empty package in java files when creating xsp using logicsheets Summary: empty package in java files when creating xsp using logicsheets Product: Cocoon 2 Version: 2.0.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I think there's some bug in module which create java file from xsl logicsheet. I've some xsp file: <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" ><xsp:logicsheet location="hello.xsl"/> <page> <title>Greetings Page</title> </page> </xsp:page> and now I want apply logicsheet hello.xsl: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsp="http://apache.org/xsp"> <xsl:template match="page"> <xsp:page> ----here is problem <xsp:logic> String test="some test text"; </xsp:logic> <xsl:apply-templates/> </xsp:page> </xsl:template> <xsl:template match="title"> <d><xsp:expr>test</xsp:expr></d> </xsl:template> </xsl:stylesheet> when there's <xsp:page> tag then in generated java file isn't valid package and is error org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling logic_xsp: Line 3, column 7: Identifier expected. Line 45, column 12: Identifier expected. Line 0, column 0: 2 errors and this is java file fragment where error occurs package ; --missing package import java.io.File; import java.io.IOException; import java.io.StringReader; ... there is everything ok when in stylesheet I add template like: <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> and remove <xsp:page> tags from template maching page tag I think that this is very important to remove this bug then will be able have content in xml file and logic of application in xsl logicsheet. Now must be tag <xsp:page> in xml file and it's inherited in logicsheet --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]