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

Test152: Foreach with string literal as item?

From: Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de>
Date: Fri, 29 Mar 2013 18:31:28 +0000
To: "VBWG Public (www-voice@w3.org)" <www-voice@w3.org>
Message-ID: <307AF605-F21F-4AE7-BB8E-C5FC862C50A7@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"/>

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?

Received on Friday, 29 March 2013 18:31:54 UTC

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