RE: [xsl] Find a value in a variable

Subject: RE: [xsl] Find a value in a variable
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 7 Dec 2006 19:20:45 -0000
contains($a,$b) should return true in this situation. If it doesn't seem to
be working, then the problem probably lies elsewhere.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: cruscio@xxxxxxxxx [mailto:cruscio@xxxxxxxxx] 
> Sent: 07 December 2006 18:22
> To: xsl-list
> Subject: [xsl] Find a value in a variable
> 
> Hi,
> how can I determine if a value is contained in a another 
> variable value?
> 
> example:
> 
> $a = "a,b,c,d"
> $b = "b,c"
> 
> this statement seems not working:
>  <xsl:if test="not(contains($a, $b))">
> 
> Could you please help?
> 
> Thanks
> Carlos
> 
> 
> ------------------------------------------------------
> Passa a Infostrada. ADSL e Telefono senza limiti e senza 
> canone Telecom
> http://click.libero.it/infostrada07dic06

Current Thread