Re: Base URI of Response from p:http-request?

On the call today, it was mentioned that "7.1.10.3 Managing the
response" says, in the very last sentence:

"In either case the base URI of the output document is the resolved
value of the href attribute from the input c:request."

So, the answer is that it is an implementation bug if the base URI
isn't set properly.

It also means we probably don't have a test.  I'll make a test case for it.

On Sat, May 3, 2014 at 10:04 PM, Alex Miłowski <alex@milowski.com> wrote:
> I've been working through an issue and I feel like the specification
> says very little about the base URI of a document retrieved via
> p:http-request.
>
> At least, on a GET method, I would expect the base URI of a response
> document that is an XML media type, to have the base URI set to the
> requested URI.  This has not been my experience so far.
>
> Look at the spec, we seem to be quite silent on what the correct
> behavior should be.
>
> Take a look at section "7.1.10.4 Converting Response Entity Bodies"
> and see if you can point out where we talk about the base URI.
>
> The use case is the typical process of resolving relative URIs in the
> retrieved content against the base URI of the element upon which the
> URI occurs.
>
> --
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
>
> Bertrand Russell in a footnote of Principles of Mathematics



-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Wednesday, 7 May 2014 14:33:32 UTC