<xsp:element> <xsp:param name="name"> foo<xsp:expr>String.valueOf(bar)</xsp:expr> </xsp:param> </xsp:element>
morten svanæs wrote:
Hi, I tried to use: for(int x=0; x < 10; x++) { <xsp:element> <xsp:param name="name">foo<xsp:expr>bar<xsp:expr></xsp:param> </xsp:element> }
But this results in : Language Exception:
org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling ordre_markise_model_xsp: ERROR 1 (org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j ava): ... this.characters("\n\t\t"); // start error (lines 202-202) "The method startElement(String, String, String, Attributes) in the type ContentHandler is not applicable for the arguments (String, int, int, AttributesImpl)" this.contentHandler.startElement( // end error "", (x) ... ERROR 2 (org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j ava): ... this.characters("\n\t\t"); // start error (lines 863-863) "The method endElement(String, String, String) in the type ContentHandler is not applicable for the arguments (String, int, int)" this.contentHandler.endElement( // end error "", (x) ... Line 202, column 0: The method startElement(String, String, String, Attributes) in the type ContentHandler is not applicable for the arguments (String, int, int, AttributesImpl) Line 863, column 0: The method endElement(String, String, String) in the type ContentHandler is not applicable for the arguments (String, int, int)
Seems like I can't have expr inside param, is this fact ? If so how can I write a dynamic element name ?
Morten Svanaes
----- Original Message ----- From: "Geoff Howard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 3:24 PM Subject: Re: Writing nodes with xsp
xsp:element see http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax
Geoff
At 11:13 AM 6/16/2003, you wrote:
Hi, Is there a solution for making nodes with xsp. Without using xslt transforamtions on the xsp.
I want to do something like: for(int x=0; x < 10; x++) { <xsp:node>nodename<xsp:expr>x</xsp:expr></xsp:node> }
Result would then be: <doc> </nodename0> </nodename1> etc...
</doc>
Morten Svanaes
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Holger Dewes
insiders GmbH Tel. +49 6131 98210-0 Wissensbasierte Systeme Fax +49 6131 98210-11 Wilh.-Th.-Römheld-Str. 18 [EMAIL PROTECTED] 55130 Mainz http://www.insiders.de/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]