W3C home > Mailing lists > Public > public-media-capture@w3.org > January 2013

RE: enumed type in ReSpec?

From: Jim Barnett <Jim.Barnett@genesyslab.com>
Date: Mon, 14 Jan 2013 16:13:32 +0000
To: Robin Berjon <robin@w3.org>
CC: "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <57A15FAF9E58F841B2B1651FFE16D281017427@GENSJZMBX03.msg.int.genesyslab.com>
Thanks, that looks like what I want.  Is this example already in the WebIDL Test document and I'm just too dumb to find it, or is it a candidate for addition? 

- Jim

-----Original Message-----
From: Robin Berjon [mailto:robin@w3.org] 
Sent: Monday, January 14, 2013 11:09 AM
To: Jim Barnett
Cc: public-media-capture@w3.org
Subject: Re: enumed type in ReSpec?

On 14/01/2013 16:06 , Jim Barnett wrote:
> I'm in the process of converting the recording draft to ReSpec and am 
> trying to figure out the best way to handle the 'state' attribute.  In 
> the current draft, I define the attribute to be of type 'RecordingState'
> and then define an enumed type with members 'inactive' 'recording'
> 'paused', etc.  However I can't find a way to define an enumed type in 
> ReSpec.  Does anyone have a suggestion for what I should do here?
> Examples that I could look at?

Here's an example:

<dl title="enum MealType" class="idl">
   <dd>a swamp grass that is widely cultivated as a source of food, esp. 
in Asia.</dd>
   <dd>a strip, ring, or tube of pasta or a similar dough, typically made with egg and usually eaten with a sauce or in a soup.</dd>
   <dd>anything that is not rice or noodles.</dd> </dl>

Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 14 January 2013 16:13:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:38 UTC