W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2013

Re: Test152: Foreach with string literal as item?

From: Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de>
Date: Fri, 29 Mar 2013 18:35:23 +0000
To: "VBWG Public (www-voice@w3.org)" <www-voice@w3.org>
Message-ID: <02112CCF-2697-4C6C-98BE-F6897083F0CD@tk.informatik.tu-darmstadt.de>
Oh my .. sorry, the comment gives it away:

<!-- illegal item, legal array -->

Test was running automated and I am somewhat sensitive to the issue as we had some ambiguities with exactly this issue in Dirk's VoiceXML interpreter.

On Mar 29, 2013, at 7:31 PM, Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de>

> Hi there,
> looking at test152, I find foreach used as:
> <foreach item="'continue'" index="Var3" array="Var5">
>  <assign location="Var1" expr="Var1 + 1"/>
> </foreach>
> My interpreter was stumbling upon 'continue' as it is a literal string and as such not a valid variable name. The draft says for item: "Any variable name that is valid in the specified data model.". Which 'continue' is not - am I to read that item ought to *evaluate* to a valid variable name or is this an error in the tests?
> Regards
> Stefan
Received on Friday, 29 March 2013 18:35:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:43 UTC