Subject: Re: Using multiple values stored in a variable
From: Graydon <graydon@xxxxxxxxx>
Date: Sun, 6 Jan 2013 14:24:43 -0500
|
On Sun, Jan 06, 2013 at 07:13:01PM +0000, Manuel Souto Pico scripsit:
> Then, for the actual check, this would work if there was only one
> term, but if fails for the multiple valued variable that I have:
>
> <xsl:when test="matches(string, $target-term, 'i')">
> <xsl:text>Found</xsl:text>
> </xsl:when>
If I'm following this right,
<xsl:when test="some $x in $target-segment satisfies matches($x, $target-term, 'i')">
<xsl:text>Found</xsl:text>
</xsl:when>
You want to test that at least one of the values in the sequence in
$target-segment satisfies the match.
-- Graydon
|