tests if a string matches a pattern
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;
Test if a string matches a certain pattern.
The default value for this parameter is wc-set.
true in case of match, false if there is no match
<xsl:if test="viv:test(document/@url, 'http://*.pdf', 'wc')">
...
</xsl:if>