Oh my God!! I can't believe how stupid this mistake is. Guess that's what happens when you work 12 to 14 hours a day, six days a week. I was already getting out my XML books and checking out how to make sure a node returned text. Thanks, I guess I'll be off to bed early tonight. Bert
At 10:38 30/04/2002 -0300, you wrote: >I guess it's > > String temp = "<xsl:value-of select="name"/>"; > >or > > String temp = new String("<xsl:value-of select="name"/>"); > >Alejandro > >-----Mensaje original----- >De: Bert Van Kets [<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]] >Enviado el: Martes 30 de Abril de 2002 10:37 AM >Para: [EMAIL PROTECTED] >Asunto: xsp logicsheet > >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>http://xml.apache.org/cocoon/faqs.html> > > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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]>