BEGINBLOCK
  id:Schema;
  label:Schema for MCB schemas;
  type:Schema;
  attribute $
    BEGINBLOCK
      key:id;
      label:Local name;
      description:;
      required: 1;
      multiple: 0;      
      type:string;      
    ENDBLOCK
  attribute $
    BEGINBLOCK
      key:label;
      label:Human readable name;
      description:;
      required: 0;
      multiple: 0;
      type:string;
    ENDBLOCK
  attribute $
    BEGINBLOCK
      key:type;
      label:Type of this block;
      description:;
      required: 1;
      multiple: 0;
      type:#Schema;
    ENDBLOCK
  attribute $
    BEGINBLOCK
      key:attribute;
      label:Attribute;
      description:Attribute allowed in the type of block;
      required: 0;
      multiple: 1;
      type:#Attribute;
    ENDBLOCK
ENDBLOCK

BEGINBLOCK
 id:Attribute;
 type:#Schema;
 label:Schema for attributes;
 attribute $
   BEGINBLOCK
     key:key;
     label:Key; 
     description:Key that identifies an attribute;
     required: 1;
     multiple: 0;
     type : string;
   ENDBLOCK;
 attribute $
   BEGINBLOCK
     key:label;
     label:Label;
     description:Nice label for the attribute;
     required: 0;
     multiple: 0;
     type : string;
   ENDBLOCK
 attribute $
   BEGINBLOCK
     key:description;
     label:Description;
     description:Description of the attribute;
     required: 0;
     multiple: 0;
     type: string;
   ENDBLOCK
 attribute $
   BEGINBLOCK
     key:required;
     label:Required;
     description:1 if the attribute must be defined;
     required: 1;
     multiple: 0;
     type: number;
   ENDBLOCK
 attribute $
   BEGINBLOCK
     key:multiple;
     label:;
     description:;
     required: 1;
     multiple: 0;
     type: number;
   ENDBLOCK
 attribute $
   BEGINBLOCK
     key:type;
     label:;
     description:;
     required: 1;
     multiple: 1;
     type: string;
   ENDBLOCK
ENDBLOCK

MoinMoin: MachineCodeBlocks3/MetaSchema (last edited 2007-10-29 19:09:49 by localhost)