cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Calbazana, Al" <>
Subject Logicsheet Errors?!?!
Date Wed, 30 Jan 2002 13:23:23 GMT

Ok... I have modified the ctwig example (the logicsheet sample) to do a
little more work.. I am taking baby steps here, but want to ultimately get a
few function calls in.  My problem is that when calling any private
functions, which are defined in my logicsheet, my page fails miserably.  I
am pretty sure I have pointed my cocoon.xconf file to the proper location
for my for logicsheet and hand constructed my logicsheet as recommended.
The error follows:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
Line 117, column 28:  '}' expected.
Line 119, column 4:  Statement expected.
Line 126, column 42:  Identifier expected.
Line 0, column 0: 
3 errors


My logicsheet follows:

<?xml version="1.0"?>

<xsl:template match="ctwig:greeting">
    String msg = "Hello World";

<xsl:template match="ctwig:greeting2">
	static private int counter = 0;

	private synchronized int count() 
		return counter++; 


<xsl:template match="@*|node()" priority="-1">
  <xsl:apply-templates select="@*|node()"/>


My setup follows:
- Win2k
- Tomcat 4.0.1
- Cocoon2 
- JDK1.3.1
- J2SDKEE 1.2.1

Any help will be greatly appreciated.  I am at my wits end with this!



This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message