[Solved] template condition is not matching [closed]


See http://www.w3.org/TR/xquery-operators/#func-contains, it says about the contains function: “If the value of $arg2 is the zero-length string, then the function returns true.”.

You could however check

<xsl:when test="contains(./content-style[1],"https://stackoverflow.com/") and not(matches(substring-before(./content-style[1],"https://stackoverflow.com/"),' ')) and not(./@align)">

3

solved template condition is not matching [closed]