I need to create XSL that checks a “does not contain” condition. For example, my XML is like this:
<Categories>
<category>
<blog>ABC</blog>
<link>http://www.msdn.com</link>
</category>
</Categories>
I want to show every <blog> where <link> does not contain "msdn". I don’t want to use equals because I just want to check part of the link.
I’m not sure exactly what HTML output you want, but hopefully this can get you started.
You could also include the test in the template match (or the apply-templates select) predicate like this: