W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2014

Base URI of Response from p:http-request?

From: Alex Miłowski <alex@milowski.com>
Date: Sat, 3 May 2014 22:04:39 -0700
Message-ID: <CABp3FNJ3QcvaB5ErvMPN3k4VumpVNyLByT2ywgbaZZ64kgiJBg@mail.gmail.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>
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
Received on Sunday, 4 May 2014 05:05:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:52 UTC