Subject: Comparing comma seperated string in XSLT
From: Girish Savadatti <xsllist@xxxxxxxxx>
Date: Sat, 3 May 2003 17:41:29 -0700 (PDT)
|
Hello,
I am passing a parameter to XSLT which is comma
seperated value. e.g. depts = 1,2,3,4,5
XML source is
<metaData>
<docTitle>FooBar News</docTitle>
<url>FooBar.html</url>
<departments>22,2,23,236</departments>
</metaData>
Here any one deparment from depts string matches in
departments element then I want to to display this
News on the page.
i.e. use string tokenizer on depts string get one
department and then do contains on <departments>
Is it possible to do using XSLT?
Please help me.
Thanks.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|