I'm having serious issues trying to understand the magic that is XPath.
Basically, I have some XML like so:
<a>
<b>
<c/>
</b>
</a>
Now, I want to count how many B's we have, without C's. This can be done easily with the following XPath:
count(*/b[not(descendant::c)])
Now the question is this simple: How do I do the same thing, while ignoring any namespaces?
I'd imagine it was something like this?
count(*/[local-name()='b']/[not(descendant::[local-name()='c'])])
But this is not correct. What would be the equivalent XPath as I have above but that ignores namespaces?