Re: Submission URI

We do mention base processing for submit/@resource:

resource
URI indicating the destination for the submission. This attribute is  
required unless the destination URI is provided by the (deprecated)  
resource element, or the (deprecated) action attribute. Behavior of  
relative URIs in links is determined by the host language, although [XML  
Base] processing is strongly recommended.

Steven



On Mon, 27 Apr 2020 18:54:21 +0200, Erik Bruchez <ebruchez@orbeon.com>  
wrote:

> We should say something.
>
> Related, there is a concept of "document base URL" in HTML:
>
>    https://html.spec.whatwg.org/multipage/urls-and-fetching.html#document-base-url
>
> There is also an `xml:base` thing, although I don't know how widely this  
> is used:
>
>    https://www.w3.org/TR/xmlbase/
>
> In any case, we can assume there is some kind of base URL/URI, and that  
> relative paths resolve against that base.
>
> -Erik
>
> On Mon, Apr 27, 2020 at 4:31 AM Steven Pemberton  
> <steven.pemberton@cwi.nl> wrote:
>> Another thing I have noticed, is that we say
>>
>>    The submission is performed using the submission headers, method,  
>> resource, and serialized data, as defined in Submission Protocols.
>>
>> without mentioning that the submission resource may be relative to the  
>> page it comes from. That is, if I say
>>
>>     resource="file.xml"
>>
>> that the submission URI is created by taking the  
>> uri-path(location-uri(), true()), stripping anything following the  
>> final /, and appending the resource.
>>
>> Should we?
>>
>> Steven

Received on Monday, 27 April 2020 21:09:06 UTC