You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Normann Nielsen <co...@dubbekarl.dk> on 2002/02/15 23:53:12 UTC
Again, why doesn't the util stylesheet work???
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>