A call on doc() takes a single URI and returns a single document.
To get multiple documents from multiple URIs, you could use select="document(loc/@href)". Another advantage of using document() here rather than doc() is that where the argument is a node, and the URI is relative, it is treated as being relative to the URI of that node (i.e. to the document containing the URIs), not relative to the stylesheet.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|