Consider the following sample HTML:
<html>
<head></head>
<body>
<a href="link1.html">link1</a>
<a href="link2.html">link2</a>
</body>
</html>
$x('/html/body/a/@href') in the Chrome developer console gives me two results:

Now instead of just matching href, I want to extract the attribute values of href, so the result I want is an array ["link1.html", "link2.html"]. How can I do that?