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

Re: enumed type in ReSpec?

From: Robin Berjon <robin@w3.org>
Date: Mon, 14 Jan 2013 17:08:53 +0100
Message-ID: <50F42D95.10007@w3.org>
To: Jim Barnett <Jim.Barnett@genesyslab.com>
CC: "public-media-capture@w3.org" <public-media-capture@w3.org>
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">
   <dt>rice</dt>
   <dd>a swamp grass that is widely cultivated as a source of food, esp. 
in Asia.</dd>
   <dt>noodles</dt>
   <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>
   <dt>other</dt>
   <dd>anything that is not rice or noodles.</dd>
</dl>

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 14 January 2013 16:09:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:03 GMT