build/data/systemDefinition.dtd
changeset 0 beb51793110d
equal deleted inserted replaced
-1:000000000000 0:beb51793110d
       
     1 <!ELEMENT SystemDefinition (systemModel?, build?)>
       
     2 <!ATTLIST SystemDefinition
       
     3   name CDATA #REQUIRED
       
     4   schema CDATA #REQUIRED
       
     5 >
       
     6 <!-- all paths are relative to the root of the source -->
       
     7 
       
     8 <!-- System Model Section of DTD -->
       
     9 <!ELEMENT systemModel (layer+)>
       
    10 
       
    11 <!ELEMENT layer (logicalset* | module*)*>
       
    12 <!-- Kernel Services, Base Services, OS Services, Etc -->
       
    13 <!ATTLIST layer
       
    14   name CDATA #REQUIRED
       
    15   levels CDATA #IMPLIED
       
    16   span CDATA #IMPLIED
       
    17 >
       
    18 
       
    19 <!ELEMENT logicalset (logicalsubset* | module* | unit* | package* | prebuilt*)*>
       
    20  <!-- Generic OS services, Comms Services, etc -->
       
    21 <!ATTLIST logicalset 
       
    22   name CDATA #REQUIRED
       
    23   levels CDATA #IMPLIED  
       
    24   span CDATA #IMPLIED
       
    25   level CDATA #IMPLIED
       
    26 >
       
    27 
       
    28 <!ELEMENT logicalsubset (module* | unit* | package* | prebuilt*)*>
       
    29 <!-- Telephony services, Networking Services, etc -->
       
    30 <!ATTLIST logicalsubset 
       
    31   name CDATA #REQUIRED
       
    32 >
       
    33 
       
    34 <!ELEMENT module (component* | unit* | package* | prebuilt*)*>
       
    35 <!-- Screen Driver, Content Handling, etc -->
       
    36 <!ATTLIST module
       
    37   name CDATA #REQUIRED
       
    38   level CDATA #IMPLIED  
       
    39 >
       
    40 
       
    41 <!ELEMENT component (unit* | package* | prebuilt*)*>
       
    42 <!-- units or packages -->
       
    43 <!ATTLIST component
       
    44   name CDATA #REQUIRED
       
    45 >
       
    46 
       
    47 <!ELEMENT unit EMPTY >
       
    48 <!-- must be buildable (bld.inf) -->
       
    49 <!-- bldFile will soon be removed in favour of mrp -->
       
    50 <!ATTLIST unit
       
    51   unitID ID #REQUIRED
       
    52   name CDATA #REQUIRED
       
    53   mrp CDATA #REQUIRED
       
    54   filter CDATA #IMPLIED
       
    55   bldFile CDATA #REQUIRED
       
    56   priority CDATA #IMPLIED
       
    57   contract CDATA #IMPLIED
       
    58 >
       
    59 
       
    60 <!ELEMENT package EMPTY >
       
    61 <!-- like a unit, but not buildable -->
       
    62 <!ATTLIST package
       
    63   name CDATA #REQUIRED
       
    64   mrp CDATA #REQUIRED
       
    65   filter CDATA #IMPLIED
       
    66   contract CDATA #IMPLIED
       
    67 >
       
    68 
       
    69 <!ELEMENT prebuilt EMPTY>
       
    70 <!-- pre-built CBR component -->
       
    71 <!ATTLIST prebuilt
       
    72   name CDATA #REQUIRED
       
    73   version CDATA #REQUIRED
       
    74   late (Y|N) #IMPLIED
       
    75   filter CDATA #IMPLIED
       
    76   contract CDATA #IMPLIED
       
    77 >
       
    78 
       
    79 
       
    80 
       
    81 <!-- Build Section of DTD -->
       
    82 <!ELEMENT build (option* | target+ | targetList+ | unitList+ | configuration+)*>
       
    83 
       
    84 <!ELEMENT unitList (unitRef+)>
       
    85 <!-- e.g. common, beech, cedar, etc -->
       
    86 <!ATTLIST unitList
       
    87   name ID #REQUIRED
       
    88   description CDATA #REQUIRED
       
    89 >
       
    90 
       
    91 <!ELEMENT unitRef EMPTY>
       
    92 <!-- Reference to unit in System Model -->
       
    93 <!ATTLIST unitRef
       
    94   unit IDREF #REQUIRED
       
    95 >
       
    96 
       
    97 <!ELEMENT targetList EMPTY>
       
    98 <!-- e.g. DEFAULT_7.0S, TOOLS_7.0S, etc -->
       
    99 <!ATTLIST targetList
       
   100   name ID #REQUIRED
       
   101   description CDATA #REQUIRED
       
   102   target IDREFS #REQUIRED
       
   103 >
       
   104 
       
   105 <!ELEMENT target EMPTY>
       
   106 <!-- e.g. WINS, WINSCW, ARM4, etc -->
       
   107 <!ATTLIST target
       
   108   name ID #REQUIRED
       
   109   abldTarget CDATA #REQUIRED
       
   110   description CDATA #REQUIRED
       
   111 >
       
   112 
       
   113 <!ELEMENT option EMPTY>
       
   114 <!-- e.g. Keepgoing, SaveSpace, etc -->
       
   115 <!ATTLIST option
       
   116   name ID #REQUIRED
       
   117   abldOption CDATA #REQUIRED
       
   118   description CDATA #REQUIRED
       
   119   enable (Y | N | y | n) #REQUIRED
       
   120 >
       
   121 
       
   122 <!ELEMENT configuration (unitListRef+ | layerRef+ | task+)*>
       
   123 <!-- 7.0s, 8.0a, 8.0b, cuskit, etc -->
       
   124 <!ATTLIST configuration
       
   125   name ID #REQUIRED
       
   126   description CDATA #REQUIRED
       
   127   filter CDATA #REQUIRED
       
   128 >
       
   129 <!ELEMENT task ( unitListRef* , (buildLayer | specialInstructions))>
       
   130 
       
   131 <!ELEMENT unitListRef EMPTY>
       
   132 <!-- Reference to unitList -->
       
   133 <!ATTLIST unitListRef
       
   134   unitList IDREF #REQUIRED
       
   135 >
       
   136 
       
   137 <!ELEMENT layerRef EMPTY>
       
   138 <!-- Reference to named entity in the model, usually a layer -->
       
   139 <!ATTLIST layerRef
       
   140   layerName CDATA #REQUIRED
       
   141 >
       
   142 
       
   143 <!ELEMENT buildLayer EMPTY>
       
   144 <!-- bldmake, abld export, etc -->
       
   145 <!ATTLIST buildLayer
       
   146   command CDATA #REQUIRED
       
   147   targetList IDREFS #IMPLIED
       
   148   unitParallel (Y | N | y | n) #REQUIRED
       
   149   targetParallel (Y | N | y | n) #IMPLIED
       
   150 >
       
   151 
       
   152 <!ELEMENT specialInstructions EMPTY>
       
   153 <!-- BootStrap -->
       
   154 <!ATTLIST specialInstructions
       
   155   name CDATA #REQUIRED
       
   156   cwd CDATA #REQUIRED
       
   157   command CDATA #REQUIRED
       
   158 >
       
   159