In a former posting dated 2001-09-06, Chris says that the util logicsheet is broken in C2b2. Now I'm trying to use <util:include-expr> in C2rc1 from an XSP page but the resulting _xsp.java file is not generated properly. Even the examples used in the Cocoon 1 FAQ don't work. The FAQ states "You must either use the form <util:include-expr expr="constant string"/> for literals or <util:include-expr><util:expr>mymethod()</util:expr> </util:include-expr> for methods and expressions which evaluate to strings", but if I use this page:
------------------------------------------------------------ <?xml version="1.0" encoding="iso-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0" > <page> <util:include-expr><util:expr>"test"</util:expr></util:include-expr> </page> </xsp:page> ------------------------------------------------------------ the following Java chunk is generated: ------------------------------------------------------------ try { newParser = (org.apache.cocoon.components.parser.Parser) this.manager.lookup( org.apache.cocoon.components.parser.Parser.ROLE); InputSource __is = new InputSource( new StringReader(String.valueOf(this.characters("\"test\"");))); XSPUtil.include(__is, this.contentHandler, newParser); } catch (Exception e) { getLogger().error("Could not include page", e); } finally { if (newParser != null) this.manager.release((Component) newParser); } } ------------------------------------------------------------ which doesn't work. It doesn't matter what kind of expression I use inside <util:expr>. Why is that? 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>