I just realized that p:load also resolves URIs from the Web, which means that we have a possible security issue. I use p:load to load a user supplied href:
In normal conditions, this href points to an XProc or XSLT that is exposed by a catalog file somewhere in the Pipeline. It is of course unacceptable that files from the web are loaded, somebody might provide a link to a malicious XProc script.
How should I fix this? Validate the supplied URI against a list of accepted URI's? Is the option validation with XML Schema already possible? Or should we disable the resolving of URIs from the web altogether?