Re: [xsl] Find a value in a variable

Subject: Re: [xsl] Find a value in a variable
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 7 Dec 2006 19:55:50 +0100 (CET)
"cruscio@xxxxxxxxx" wrote:

  Hi

> how can I determine if a value is contained in a another
> variable value?

  It depends on what you mean by "contained" and on what the variables
contain.  To test if one string is contained within another one, you
can use contains($container, $contained).

> $a = "a,b,c,d"
> $b = "b,c"

> this statement seems not working:
>  <xsl:if test="not(contains($a, $b))">

  That seems ok.  So with the not(), the content of the xsl:if has to
be NOT evaluated.

  Regards,

--drkm






















	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread