cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: xsp logicsheet
Date Tue, 30 Apr 2002 13:58:32 GMT
From: "Bert Van Kets" <bert@vankets.com>
> I want to use an XSP logicsheet to process the values submitted by a
> form.  In this page I have the following code (simplified):
>
>    <xsl:template match="list">
>      <xsl:for-each select="element">
>        <xsl:sort select="name"/>
>        <xsp:logic>
>          String temp = <xsl:value-of select="name"/>;

Maybe would help:
String temp = "<xsl:value-of select="name"/>";

>        </xsp:logic>
>      </xsl:for-each>
>     <myQuery><xsp:expr>temp</xsp:expr></myQuery>
>    </xsl:template>
>
> When I try to run this simple code I get an error saying
> org.apache.cocoon.ProcessingException: Exception in creating Transform
> Handler: org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> listCreateQuery_xsp:
> Line 263, column -1: incompatible types
> Line 0, column 0:
> 1 error
>
> The code block in the generated java file that throws the error is
>          String temp =
>      xspAttr.addAttribute(
>        "",
>        "select",
>        "select",
>        "CDATA",
>        "name"
>      );

Sure this won't compile.

--
  Konstantin

>
> How can I get the string value out of a node in xsp:logic????  Using
> text(name) doesn't work either.
> Bert
>
> "My spelling is Wobbly.  It's good spelling but it Wobbles, and the
letters
>   get in the wrong places." A. A. Milne (1882-1958)
>
>
> ---------------------------------------------------------------------
> 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>
>

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