How to get all links in Xhtml?

Hi!
Can an xquery retrieve all the links Somewhere… from an XHtml?
In other words how to go throught all the nodes to test if they are links anchors.
Thanks

Hi,

Assuming that all your documents you want to scan are stored in the Tamino collection “myxhtml”. In this case you can extract all the links with the following query:

collection(“myxhtml”)/xhtml//a/@href

The result is a sequence of “href” attributes holding the requested links.

Best regards,

Thorsten Fiebig