If modules are looked up in the repository, their URIs are rewritten to a local file path. The URI transformation has been inspired by [http://www.zorba-xquery.com/html/documentation/latest/zorba/uriresolvers Zorba]:
1. If a # In the URI authority exists, it the order of all substrings separated by dots is reversed, .# Dots in the authority and its dots the path are replaced by slashes.<br/>2. The URI path is appended. If no path exists, a single slash is appended instead.<br/>3. # If the resulting string ends with a slash, the {{Code|index}} string is appended.
If the resulting path has no file suffix, it may point to either an XQuery module or a Java archive.
* {{Code|<nowiki>http://basex.org/modules/hello/World</nowiki> → org/basex/modules/hello/World}}
* {{Code|<nowiki>http://www.example.com</nowiki> → com/example/www/index}}
* {{Code|a/little/example.xq → a/little/example.xq}}
==Changelog==