Subject: RE: [xsl] Check a node in my XML contains a particular value! From: "Simpson, George" <GeorgeS@xxxxxxxxxxxxxxxxx> Date: Mon, 13 May 2002 14:59:30 +0100 |
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@xxxxxxxxx] Sent: 13 May 2002 14:36 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Check a node in my XML co, Jeni Tennison | Thread | [xsl] Reference a counter, Early, Mary |
Re: [xsl] Check a node in my XML co, Jeni Tennison | Date | [xsl] Reference a counter, Early, Mary |
Month |