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"/>; </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" ); 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>