|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: filter using contains with multiple values
Raimund Kammering raimund.kammering@xxxxxxx wrote:
Great this was exactly what I was looking for, BUT it does not work for me! There seam to be two problems: Sorry, the expression needs parenthesis <xsl:if test="*[name()=$filter and (some $value in $filter_values satisfies contains(., $value))]b> <xsl:param name="filter_values" as="xs:string*" select="'Log', 'Info'b/> If you want a comparison with "=" then you can simply use <xsl:if test="*[name()= $filter and . = $filter_values]"> as the "=" comparison between a value and a sequence is true if there is at least one item in the sequence that is equal to the value. The `some` expression is only needed if you want the contains check.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








