Re: [xsl] Test syntax, compare a string to a list and return true if there's an exact match

Subject: Re: [xsl] Test syntax, compare a string to a list and return true if there's an exact match
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 12 Aug 2010 20:10:44 +0200
Peter Desjardins wrote:

        <xsl:when
test="following-sibling::*[number($checkPosition)]/@class='MyTagClassTwo'
or following-sibling::*[number($checkPosition)]/@class='MyTagClassThree'">

Simply compare to a sequence of string values e.g. following-sibling::*[number($checkPosition)]/@class = ('MyTagClassTwo', 'MyTagClassThree')

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread