1 2import module namespace file = "http://expath.org/ns/file"; 3 4declare namespace ann = "http://www.zorba-xquery.com/annotations"; 5 6variable $http-content; 7$http-content := file:read-text(resolve-uri("zorba.html")); 8 9(: local:get-out-links-unparsed($http-call[2]) :) 10 11fn:analyze-string($http-content, "(<|&lt;|<)(((a|link|area).+?href)|((script|img).+?src))=([""'])(.*?)\7") 12