InString filter in XSL

Subject: InString filter in XSL
From: "Christian Wittern" <chris@xxxxxxxxxxxxxxx>
Date: Thu, 24 Jun 1999 08:24:01 +0800
Hi,

I am struggling with the following problem:

<el att="aa, bb, cc">I want to select this</el>
<el att="bb, cc">Or I want to select this</el>
<el att="aa, cc">Or maybe I want to select this</el>

I want to select nodes based on the value of att: Either those containing
'aa', or 'bb', or 'cc', regardless of the other surrounding values, i.e. if
I check for 'aa', I'd like to get the first and last, in the case of 'bb'
the first and second, etc.

Is there an easy way to do this in XSL?
I am preparing this for IE5, but ideally would like this to stay compatible
with the latest draft.

All the best,

Christian


Dr. Christian Wittern
Chung-Hwa Institute of Buddhist Studies
276, Kuang Ming Road, Peitou 112, Taipei, TAIWAN



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


Current Thread