...more simply?
<xsl:template match="item[description = ('word1', 'word2', 'word3')]">
.. process the item ..
</xsl:template>
Is there a performance advantage to the variable or is the match pattern
sequence optimized anyway (e.g. Saxon)?
Thanks,
ac/01
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>
--~--
--~------------------------------------------------------------------
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>
--~--