You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Dmitri Ilyin <dm...@memiq.com> on 2001/05/29 10:54:39 UTC

RE: little off-topic / setting value of a variable as consequence of some tests


> -----Original Message-----
> From: Marco.Mistroni@nokia.com [mailto:Marco.Mistroni@nokia.com]
> Sent: Tuesday, May 29, 2001 10:52 AM
> To: xalan-dev@xml.apache.org
> Subject: little off-topic / setting value of a variable as consequence
> of some tests
> 
> 
> hi all,
> 	sorry that it's little off-topic, but i need urgent 
> help and i know
> that this list is very active
> 
> i have a very little problem..as said in the subject
> 
> i must set the value of a variable as consequence of some tests
> 
> here is a sample code...
> 
> 
>  <xsl:if test="starts-with(./@name,'mar')">
> 
>      <!-- here i must set the value of the variable...but i 
> don't know how..
> -->
>  </xsl:if>
>  
>  <xsl:otherwise>
>      <!-- value of hte variable = null -->
> 
>  </xsl:otherwise>
> 
> 
> so, i was thinking that i can write, before this xsl code
> 
>   <xsl:variable name="myvariable" select="" />
> 
> but then, i am missing how can i change the value of that 
> variable later on
You can't change the value of varialble later!!! You have to set the value
between <xsl:if></xsl:if>

> 
> 
> can anyone give me a hint???
> 
> thanx in advance and regards
> 	marco
>