cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinetti" <>
Subject XSP reserch problem:help me
Date Tue, 17 Oct 2000 09:43:24 GMT

I am an Italian student and have the following problem with my XSP.Nella Xsl page, I take
some parameters sent by a WML page, I memorize them in two variables I use to do some researches
in the Xml file. 
The problem is that Xsl does not do the right research with these two variables, while if
instead I use 2 values you fix in the variables ( instead of the taken values with " Request.getParameter()"
) the research works. 
Please help me.
The XSL (+XSP) file is the following: 

<xsp:page language="java" xmlns:xsp="">
String scelta = request.getParameter("sceltau");
String segno = request.getParameter("segnou");
<xsl:variable name="miascelta"><xsp:expr>scelta</xsp:expr></xsl:variable>
<xsl:variable name="miosegno"><xsp:expr>segno</xsp:expr></xsl:variable>

<xsl:for-each select="child::Segno[Zodiaco/text()=$miosegno]">
Siamo entrati:cerco
<xsl:when test="$miascelta='generale'">
<xsl:value-of select="./Generale/Descrizione"/>
<xsl:when test="$miascelta='amore'">
<xsl:value-of select="Aspetto[@code='Amore']/Descrizioneaspetto"/>
<xsl:when test="$miascelta='denaro'">
<xsl:value-of select="Aspetto[@code='Lavoro e Denaro']/Descrizioneaspetto"/>
<xsl:when test="$miascelta='fortuna'">
<xsl:value-of select="Aspetto[@code='Fortuna']/Descrizioneaspetto"/>

View raw message