xsl-list
[Top] [All Lists]

Re: [xsl] Find a value in a variable

2006-12-07 12:00:15
"cruscio(_at_)libero(_dot_)it" 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






















        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>