W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2008

Whitspace/comma separation in lists

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 22 Jul 2008 10:42:24 +1000
To: public-svg-wg@w3.org
Message-ID: <20080722004224.GB14149@arc.mcc.id.au>

Hello WG.

In the data types chapter, the entry for <list of XXX> currently reads
as follows:

  (Where xxx represents a value of some type.) A list consists of a
  separated sequence of values. Unless explicitly described
  differently, lists can be either comma-separated, with optional white
  space before or after the comma, or white space-separated.
  …
  Here is a description of the grammar for a <list of xxx>:

    ListOfXXX ::=
        XXX
        | XXX comma-wsp ListOfXXX
    comma-wsp ::=
        (wsp+ comma? wsp*) | (comma wsp*)
    comma ::=
        ","
    wsp ::=
        (#x20 | #x9 | #xD | #xA)
   — http://dev.w3.org/SVG/profiles/1.2T/publish/types.html#DataTypeList

The prose says that lists can be either whitespace separated or comma-
whitespace separated, but the grammar allows a list with mixed
separators, such as "1 2,3 4 5".  Which should be correct?  Doug, I see
you have http://www.w3.org/Graphics/SVG/Group/track/actions/1942 from
the old tracker, which seems related.

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 22 July 2008 00:43:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC