home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / sharewar / htxtbldr / HB1.exe / HB10A.CAB / smil.dtd < prev    next >
Text File  |  2000-07-09  |  8KB  |  246 lines

  1. <!--
  2.  
  3.     This is the XML document type definition (DTD) for SMIL 1.0.
  4.  
  5.     Date: 1998/06/15 08:56:30
  6.  
  7.     Authors: 
  8.         Jacco van Ossenbruggen <jrvosse@cwi.nl> 
  9.         Sjoerd Mullender       <sjoerd@cwi.nl>
  10.         
  11.     Further information about SMIL is available at:
  12.  
  13.           http://www.w3.org/AudioVideo/
  14.  
  15. -->
  16.  
  17. <!-- Generally useful entities -->
  18. <!ENTITY % id-attr "id ID #IMPLIED">
  19. <!ENTITY % title-attr "title CDATA #IMPLIED">
  20. <!ENTITY % skip-attr "skip-content (true|false) 'true'">
  21. <!ENTITY % desc-attr "
  22.         %title-attr;
  23.         abstract        CDATA   #IMPLIED
  24.         author          CDATA   #IMPLIED
  25.         copyright       CDATA   #IMPLIED
  26. ">
  27.  
  28. <!--=================== SMIL Document =====================================-->
  29. <!--
  30.      The root element SMIL contains all other elements.
  31. -->
  32. <!ELEMENT smil (head?,body?)>
  33. <!ATTLIST smil
  34.         %id-attr;
  35. >
  36.  
  37. <!--=================== The Document Head =================================-->
  38. <!ENTITY % layout-section "layout|switch">
  39.  
  40. <!ENTITY % head-element "(meta*,((%layout-section;), meta*))?">
  41.  
  42. <!ELEMENT head %head-element;>
  43. <!ATTLIST head %id-attr;>
  44.  
  45.  
  46. <!--=================== Layout Element ====================================-->
  47. <!--
  48.      Layout contains the region and root-layout elements defined by
  49.      smil-basic-layout or other elements defined an external layout 
  50.      mechanism.
  51. -->
  52. <!ELEMENT layout ANY>
  53. <!ATTLIST layout
  54.         %id-attr;
  55.         type CDATA      "text/smil-basic-layout"
  56. >
  57.  
  58.  
  59. <!--=================== Region Element ===================================-->
  60. <!ENTITY % viewport-attrs "
  61.         height              CDATA    #IMPLIED
  62.         width               CDATA    #IMPLIED
  63.         background-color    CDATA    #IMPLIED
  64. ">
  65.  
  66. <!ELEMENT region EMPTY>
  67. <!ATTLIST region
  68.         %id-attr;
  69.         %title-attr;
  70.         %viewport-attrs;
  71.         left                CDATA    "0"
  72.         top                 CDATA    "0"
  73.         z-index             CDATA    "0"
  74.         fit                 (hidden|fill|meet|scroll|slice)    "hidden"
  75.         %skip-attr;
  76. >
  77.  
  78. <!--=================== Root-layout Element ================================-->
  79. <!ELEMENT root-layout EMPTY>
  80. <!ATTLIST root-layout
  81.         %id-attr;
  82.         %title-attr;
  83.         %viewport-attrs;
  84.         %skip-attr;
  85. >
  86.  
  87.  
  88. <!--=================== Meta Element=======================================-->
  89. <!ELEMENT meta EMPTY>
  90. <!ATTLIST meta
  91.         name    NMTOKEN #REQUIRED
  92.         content CDATA   #REQUIRED
  93.         %skip-attr;
  94. >
  95.  
  96. <!--=================== The Document Body =================================-->
  97. <!ENTITY % media-object "audio|video|text|img|animation|textstream|ref">
  98. <!ENTITY % schedule "par|seq|(%media-object;)">
  99. <!ENTITY % inline-link "a">
  100. <!ENTITY % assoc-link "anchor">
  101. <!ENTITY % link "%inline-link;">
  102. <!ENTITY % container-content "(%schedule;)|switch|(%link;)">
  103. <!ENTITY % body-content "(%container-content;)">
  104.  
  105. <!ELEMENT body (%body-content;)*>
  106. <!ATTLIST body %id-attr;>
  107.  
  108. <!--=================== Synchronization Attributes ========================-->
  109. <!ENTITY % sync-attributes "
  110.         begin   CDATA   #IMPLIED
  111.         end     CDATA   #IMPLIED
  112. ">
  113.  
  114. <!--=================== Switch Parameter Attributes =======================-->
  115. <!ENTITY % system-attribute "
  116.         system-bitrate             CDATA                #IMPLIED
  117.         system-language            CDATA                #IMPLIED
  118.         system-required            NMTOKEN              #IMPLIED
  119.         system-screen-size         CDATA                #IMPLIED
  120.         system-screen-depth        CDATA                #IMPLIED
  121.         system-captions            (on|off)             #IMPLIED
  122.         system-overdub-or-caption  (caption|overdub)    #IMPLIED
  123. ">
  124.  
  125. <!--=================== Fill Attribute ====================================-->
  126. <!ENTITY % fill-attribute "
  127.         fill    (remove|freeze)    'remove'
  128. ">
  129.  
  130.  
  131. <!--=================== The Parallel Element ==============================-->
  132. <!ENTITY % par-content "%container-content;">
  133. <!ELEMENT par    (%par-content;)*>
  134. <!ATTLIST par
  135.         %id-attr;
  136.         %desc-attr;
  137.         endsync CDATA           "last"
  138.         dur     CDATA           #IMPLIED
  139.         repeat  CDATA           "1"
  140.         region  IDREF           #IMPLIED
  141.         %sync-attributes;
  142.         %system-attribute;
  143. >
  144.  
  145. <!--=================== The Sequential Element ============================-->
  146. <!ENTITY % seq-content "%container-content;">
  147. <!ELEMENT seq    (%seq-content;)*>
  148. <!ATTLIST seq
  149.         %id-attr;
  150.         %desc-attr;
  151.         dur     CDATA           #IMPLIED
  152.         repeat  CDATA           "1"
  153.         region  IDREF           #IMPLIED
  154.         %sync-attributes;
  155.         %system-attribute;
  156. >
  157.  
  158. <!--=================== The Switch Element ================================-->
  159. <!-- In the head, a switch may contain only layout elements,
  160.      in the body, only container elements. However, this
  161.      constraint cannot be expressed in the DTD (?), so
  162.      we allow both:
  163. -->
  164. <!ENTITY % switch-content "layout|(%container-content;)">
  165. <!ELEMENT switch (%switch-content;)*>
  166. <!ATTLIST switch
  167.         %id-attr;
  168.         %title-attr;
  169. >
  170.  
  171. <!--=================== Media Object Elements =============================-->
  172. <!-- SMIL only defines the structure. The real media data is
  173.      referenced by the src attribute of the media objects.
  174. -->
  175.  
  176. <!-- Furthermore, they have the following attributes as defined
  177.      in the SMIL specification:
  178. -->
  179. <!ENTITY % mo-attributes "
  180.         %id-attr;
  181.         %desc-attr;
  182.         region     IDREF           #IMPLIED
  183.         alt        CDATA           #IMPLIED
  184.         longdesc   CDATA           #IMPLIED
  185.         src        CDATA           #IMPLIED
  186.         type       CDATA           #IMPLIED
  187.         dur        CDATA           #IMPLIED
  188.         repeat     CDATA           '1'
  189.         %fill-attribute;
  190.         %sync-attributes;
  191.         %system-attribute;
  192. ">
  193.  
  194. <!--
  195.      Most info is in the attributes, media objects are empty or
  196.      contain associated link elements:
  197. -->
  198. <!ENTITY % mo-content "(%assoc-link;)*">
  199. <!ENTITY % clip-attrs "
  200.         clip-begin      CDATA   #IMPLIED
  201.         clip-end        CDATA   #IMPLIED
  202. ">
  203.  
  204. <!ELEMENT ref           %mo-content;>
  205. <!ELEMENT audio         %mo-content;>
  206. <!ELEMENT img           %mo-content;>
  207. <!ELEMENT video         %mo-content;>
  208. <!ELEMENT text          %mo-content;>
  209. <!ELEMENT textstream    %mo-content;>
  210. <!ELEMENT animation     %mo-content;>
  211.  
  212. <!ATTLIST ref           %mo-attributes; %clip-attrs;>
  213. <!ATTLIST audio         %mo-attributes; %clip-attrs;>
  214. <!ATTLIST video         %mo-attributes; %clip-attrs;>
  215. <!ATTLIST animation     %mo-attributes; %clip-attrs;>
  216. <!ATTLIST textstream    %mo-attributes; %clip-attrs;>
  217. <!ATTLIST text          %mo-attributes;>
  218. <!ATTLIST img           %mo-attributes;>
  219.  
  220. <!--=================== Link Elements =====================================-->
  221.  
  222. <!ENTITY % smil-link-attributes "
  223.         %id-attr;
  224.         %title-attr;
  225.         href            CDATA                   #REQUIRED
  226.         show            (replace|new|pause)     'replace'
  227. ">
  228.  
  229.  
  230. <!--=================== Inline Link Element ===============================-->
  231. <!ELEMENT a (%schedule;|switch)*>
  232. <!ATTLIST a
  233.         %smil-link-attributes;
  234. >
  235.  
  236.  
  237. <!--=================== Associated Link Element ===========================-->
  238. <!ELEMENT anchor EMPTY>
  239. <!ATTLIST anchor
  240.         %skip-attr;
  241.         %smil-link-attributes;
  242.         %sync-attributes;
  243.         coords          CDATA                   #IMPLIED
  244. >
  245.  
  246.