xsl-list
[Top] [All Lists]

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

2010-08-12 13:11:03
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>