The XPath function string()
only returns the string value of the first node if it's fed a node list.
I'm using a selector that selects attributes:
//a/@href
This returns an array of href
nodes, which you have to map into each node's string values.
Is there a way to do this inside the selector?
E.G. something like //a/@href/string()