cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morten svan├Žs <mor...@web-som-virker.no>
Subject Re: Writing nodes with xsp
Date Mon, 16 Jun 2003 15:55:43 GMT
Hi,
I tried to use:
for(int x=0; x &lt 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" <cocoon@leverageweb.com>
To: <cocoon-users@xml.apache.org>
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 &lt 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: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
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