####
$ xmllint.exe --shell ravi06-03.xml
/ >
/ > whereis //@xlink:href
XPath error : Undefined namespace prefix
xmlXPathEval: evaluation failed
//@xlink:href: no such node
/ >
/ > setns xlink=http://www.w3.org/1999/xlink
/ >
/ > whereis //@xlink:href
/book/book:chapter/book:locator[1]/@xlink:href
/book/book:chapter/book:locator[2]/@xlink:href
/book/book:chapter/book:locator[3]/@xlink:href
/ >
/ > cat //@xlink:href
-------
xlink:href="/book/isbn/979-0-4444-1000-17/book-part/chapter/bk444444ch1?releaseStatus=RELEASED"
-------
xlink:href="/book/isbn/979-0-4444-1000-17/book-part/chapter/bk444444ch1?releaseStatus=RELEASED&format=pdf"
-------
xlink:href="/book/isbn/979-0-4444-1000-17/book-part/chapter/bk444444ch1?releaseStatus=RELEASED&format=epub"
/ >
/ >
/ > cat (//@xlink:href/..)[1]
-------
/ >
/ >
/ > bye
$