cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Normann Nielsen" <coc...@dubbekarl.dk>
Subject Again, why doesn't the util stylesheet work???
Date Fri, 15 Feb 2002 22:53:12 GMT
Hello everybody

I've seen many postings on problems with the util-stylesheet. I can't get it
to work. According to many posts (and the Cocoon 1 FAQ), you want me to use:

<util:include-expr><util:expr>mymethod()</util:expr></util:include-expr>

to have the result of mymethod() output without HTML escaping. If that's
correct, shouldn't this example work?

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page
	language="java"
	xmlns:util="http://apache.org/xsp/util/2.0"
	xmlns:xsp="http://apache.org/xsp"
>
	<xsp:logic>
		private String mymethod() { return "<![CDATA[<body><h1>Test
page</h1></body>]]>"; }
	</xsp:logic>

	<html>
		<util:include-expr><util:expr>mymethod()</util:expr></util:include-expr>
	</html>
</xsp:page>

In Cocoon 2.0, I get the following error:

E:\Arbejde\JBoss-2.4.3_Tomcat-4.0\catalina\work\localhost\cocoon\cocoon-file
s\org\apache\cocoon\www\file_\E_\arbejde\test\cocoon_2_0_sub\sub\docs\simple
_xsp.java:111: ')' expected.
                             new
StringReader(String.valueOf(this.characters("mymethod()");)));

Why doesn't it work???

Best regards,
Jan Nielsen




---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message