viv:test

tests if a string matches a pattern

Synopsis

boolean
	viv:test
	(str, pattern, pattern-type);
string    str;
string    pattern;
"wc"|"wc-set"|"regex"| "perl-regex" | "case-insensitive-regex" | "case-insensitive-perl-regex"   pattern-type;

Description

Test if a string matches a certain pattern.

Arguments

Returns

true in case of match, false if there is no match

Example

    <xsl:if test="viv:test(document/@url, 'http://*.pdf', 'wc')">
    ...
    </xsl:if>