xsl-list
[Top] [All Lists]

RE: [xsl] Filtering RSS feed with xsl based on presence of certain words in description

2009-01-28 11:51:45
 
How about:

 <xsl:variable name="keywords" select="('word1', 'word2', 'word3')"/>

Well, he said he wanted a contains() test not an "=" test. He might have
been wrong of course, people often do contains() when they mean "=", but I
took it at face value.

 <xsl:template match="item[description = $keywords]">
   .. process the item ..
 </xsl:template>


Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--