[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Find a value in a variable
"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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|