This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Check a node in my XML contains a particular value!


Hi Jeni & David,

The contains function does work! 

David I did try contains but was not looking at the output from using that function, I was looking at the previous output from a previous problem! Sorry guyz my fault... :(

Thanks to both of you for taking the time out to reply.....

Regards,

George

-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: 13 May 2002 14:36
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Check a node in my XML contains a particular value!



> back with the usage of <xsl:when test="contains(wcc/wcc-category-oid,
> 'CSE')">, but this only checks that both string values are identical
> (I think, correct me if I am wrong). 

no contains()  is true if one string is a substring of the other, you'd
use = for string equality.

Did you try contains?

David



_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]