W3C home > Mailing lists > Public > public-xformsusers@w3.org > February 2019

Re: Suggested update for `replace="text"`

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 13 Feb 2019 13:31:45 +0100
To: XForms <public-xformsusers@w3.org>, "Erik Bruchez" <erik@bruchez.org>
Message-ID: <op.zw5g27mcsmjzpq@steven-xps>
I agree that it is valuable, but then I would prefer to include CVS as  
well, and then we just refer to all types accepted in the section Creating  
instance data from external resources,  
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#initialize-instance-external

Steven


On Thu, 07 Feb 2019 18:31:26 +0100, Erik Bruchez <erik@bruchez.org> wrote:

> In "11.2.3 Processing the Response from a Submission":
>
>> text: If the type of the body, as overridden by the response-mediatype  
>> attribute if present, is neither an XML mediatype (i.e. with a content  
>> type not matching any of the >specifiers in [RFC 3023]) nor a text type  
>> (i.e. with a content type not matching text/*), nothing in the document  
>> is replaced and submission fails with result-text-mediatype, >and an  
>> error-message of the unacceptable mediatype. Otherwise the content  
>> replacement is performed according to Replacing Data with the  
>> Submission Response. If this operation >succeeds, submission succeeds.
>
> We might want to add `application/json` as supported for text  
> replacement as well for consistency with supporting XML mediatypes  
> (including `application/xml`). This would allow >storing JSON as text in  
> a node in the same way that we support storing XML as text in a node.  
> This would change the text to:
>
>> text: If the type of the body, as overridden by the response-mediatype  
>> attribute if present, is neither an XML mediatype (i.e. with a content  
>> type not matching any of the >specifiers in [RFC 3023]), nor the  
>> `application/json` mediatype, nor a text type (i.e. with a content type  
>> not matching text/*), nothing in the document is replaced and  
>> >submission fails with result-text-mediatype, and an error-message of  
>> the unacceptable mediatype. Otherwise the content replacement is  
>> performed according to Replacing Data with >the Submission Response. If  
>> this operation succeeds, submission succeeds.
>
> WDYT?
>
> -Erik
Received on Wednesday, 13 February 2019 12:32:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 13 February 2019 12:32:13 UTC