You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Frans Thamura <ft...@yahoo.com> on 2001/04/17 04:05:19 UTC

xsp:variable is not update the variable value outside xsl:when

Dear All,

I used xsp:choose to change the value of xsp:variable,
and I found some thing...

<xsl:variable name="test">ok</xsl:variable>
<xsl:choose>
<xsl:when test="$test='ok'">
<xsl:variable name="test">no</xsl:variable>
<xsl:value-of select"$test" />
</xsl:when>
</xsl:choose>
<xsl:value-of select"$test" />


The first value of, will generate no.
but after xsl:choose the value of test, back to ok

Would you give me some advice?

Frans


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: xsp:variable is not update the variable value outside xsl:when

Posted by Ulrich Mayring <ul...@denic.de>.
Frans Thamura wrote:
> 
> The first value of, will generate no.
> but after xsl:choose the value of test, back to ok
> 
> Would you give me some advice?

Yes, go to an XSL forum, this list is about Cocoon and thus your
question is off-topic.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>