I have a node like this:
<meta name="og:description" content="Here's the content" />
I want to be able to select this element if the name is "description" whether it's in a namespace or not. I need to be able to select the meta tag if it's name is "og:description", "description", "blah:description", etc.
I've seen resources for xpath that show how to select within a namespace, but not irrespective of a namespace.
og:name="description"is namespace, butname="og:description"is just namespace-looking-like content, isn't it?[ends-with(@name, 'description')]), apparently OP wanted to filter on "namespace-looking content". Based on the highest-voted answer with[local-name()="description"], you're right, other people want to filter on namespaced attribute name itself!