Now handles (some) relative document URIs