Reputation: 63
I am trying to interpret the meaning of the following condition:
<xsl:when test="contains($name,'|') or contains($name,'%7c') or contains($name,'%7C')">
Does the above checking whether the variable name
has |
in it OR has 7 lower case characters OR 7 uppercase characters?
Upvotes: 1
Views: 423
Reputation: 111541
No, it checks whether $name
contains any of the specified, literal substrings: |
or %7c
or %7C
.
See XML XPath Language (XPath), Version 1.0, W3C Recommendation:
Function: boolean contains(string, string)
The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.
See also:
Upvotes: 2