I don\'t know why following query doesn\'t work:
//a/@href[@class=\'specified_string\']
Try it the other way round:
//a[@class='specified_string']/@href
After all, class is an attribute of the element, not an attribute of the href attribute.
class
href