- From: Alan Egerton <eggyal@gmail.com>
- Date: Wed, 1 May 2013 21:21:17 +0100
- To: Steven Pemberton <Steven.Pemberton@cwi.nl>
- Cc: www-forms-editor@w3.org
Dear Steven,
Thank you for your reply. Really glad to hear my comments can still
be taken on board!
> The first part seems easy to fix: we remove the requirement on using get and post.
That's excellent, although I can't comment on whether there is any
demand to allow additional methods other than "multipart-post".
My main observation with merely removing the requirement on submission
method is that the rules for "post" should also be followed by
method="multipart-post": especially that the Content-type HTTP header
should be changed to "text/xml" if the instance data being submitted
has as its root element node a SOAP envelope in the SOAP 1.1
namespace.
> Can you however be more explicit in what you would like to see as a solution to your second issue?
One idea may be to define a new XForms Action, "attach", for each
invocation of which an additional attachment is appended to the
multipart/related message. It might have attributes similar to the
following:
* src: the document to be attached - I'm not sure how best to express
this, but one should be able to specify a document node that is to be
serialised e.g. "instance('attachment')/foo" or a URI to be fetched by
the processor e.g. "http://foo.com/image.jpeg" (perhaps evaluated with
AVT) or even a base64 literal e.g. "Zm9vYg==" (perhaps literals should
be given as the content of the "attach" element, rather than in this
attribute);
* mediatype: the MIME Content-Type of the attachment (to be inferred
where possible if not explicitly given); and
* ref: references the instance node (of type xsd:anyURI?), if any,
whose value will be set to the Content-ID header of this attachment
(if any).
What do you think?
Kind regards,
-- Alan
Received on Wednesday, 1 May 2013 20:22:05 UTC