Relative URIs in p:log

Hi all,

The spec does not say what happens when a relative URI is used in
p:log/@href. Shouldn't it behave the same way as p:load, p:store, ...
That is: "If it is relative, it is made absolute against the base URI of
the element on which it is specified".

I encountered problems with this when I was running the latest version
of the test xinclude-002.xml over the net. It contains this line:

<p:log port="result" href="/tmp/out.xml"/>

In our present implementation, we always resolve the value of @href
against the current base URI (which in this case is equal to
"http://tests.xproc.org/tests/required/xinclude-002.xml"), and we end up
attempting to log to: http://tests.xproc.org/tmp/out.xml. Note that in
this case, the value of @href is not relative, but it does not specify a
scheme, so the proper fix here would be to set the href to
"fils:///tmp/out.xml".

--

Also, is the value of p:log/@href an URI or an IRI?

Regards,
Vojtech

Received on Thursday, 2 April 2009 08:38:06 UTC