- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Mon, 22 Mar 2021 10:39:37 +0000
- To: XForms <public-xformsusers@w3.org>
Ok, so
<setvalue ref="lm"
value="event('response-headers')/../header[name='last-modified']/value"/>
works as well. Not sure why the .. step is needed.
Steven
On Sunday 21 March 2021 21:04:46 (+01:00), Steven Pemberton wrote:
> In a submit-done handler, is this really the best way to get to the
"last-modified' header?
>
> <setvalue ref="lm"
value="event('response-headers')/name[.='last-modified']/following-sibling::value"/>
>
>
> I was rather disappointed that this didn't work:
>
> <setvalue ref="lm"
value="event('response-headers')/header[name='last-modified']/value"/>
>
> Steven
>
--
Received on Monday, 22 March 2021 10:39:53 UTC