home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 April / VPR0004A.BIN / OLS / HTMLLINT / htmllint.lzh / wilbur.dtd < prev    next >
Text File  |  1999-11-06  |  24KB  |  692 lines

  1. <!--================ SGML Declaration for HTML 3.2 ==============================-->
  2.  
  3. <!--    This uses the 8 bit ISO Latin-1 character set. The size limits on properties
  4.         like literals and tag names have been considerably increased from their
  5.         HTML 2.0 values, but it is recommended that user agents avoid imposing
  6.         arbitrary length limits.
  7. -->
  8.  
  9. <!SGML  "ISO 8879:1986"
  10.    --
  11.         SGML Declaration for HyperText Markup Language version 3.2
  12.  
  13.         With support for ISO Latin-1 and increased limits
  14.         for tag and literal lengths etc.
  15.    --
  16.  
  17.    CHARSET
  18.          BASESET  "ISO 646:1983//CHARSET
  19.                    International Reference Version
  20.                    (IRV)//ESC 2/5 4/0"
  21.          DESCSET  0   9   UNUSED
  22.                   9   2   9
  23.                   11  2   UNUSED
  24.                   13  1   13
  25.                   14  18  UNUSED
  26.                   32  95  32
  27.                   127 1   UNUSED
  28.          BASESET  "ISO Registration Number 100//CHARSET
  29.                    ECMA-94 Right Part of
  30.                    Latin Alphabet Nr. 1//ESC 2/13 4/1"
  31.          DESCSET  128  32   UNUSED
  32.                   160  96    32
  33.  
  34.    CAPACITY   SGMLREF
  35.               TOTALCAP        200000
  36.               GRPCAP          150000
  37.               ENTCAP          150000
  38.  
  39.    SCOPE    DOCUMENT
  40.    SYNTAX
  41.       SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
  42.               17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
  43.       BASESET  "ISO 646:1983//CHARSET
  44.                 International Reference Version
  45.                 (IRV)//ESC 2/5 4/0"
  46.       DESCSET  0 128 0
  47.  
  48.       FUNCTION
  49.               RE            13
  50.               RS            10
  51.               SPACE         32
  52.               TAB SEPCHAR    9
  53.  
  54.       NAMING   LCNMSTRT ""
  55.                UCNMSTRT ""
  56.                LCNMCHAR ".-"
  57.                UCNMCHAR ".-"
  58.                NAMECASE GENERAL YES
  59.                         ENTITY  NO
  60.       DELIM    GENERAL  SGMLREF
  61.                SHORTREF SGMLREF
  62.       NAMES    SGMLREF
  63.       QUANTITY SGMLREF
  64.                ATTSPLEN 65536
  65.                LITLEN   65536
  66.                NAMELEN  65536
  67.                PILEN    65536
  68.                TAGLVL   100
  69.                TAGLEN   65536
  70.                GRPGTCNT 150
  71.                GRPCNT   64
  72.  
  73.    FEATURES
  74.      MINIMIZE
  75.        DATATAG  NO
  76.        OMITTAG  YES
  77.        RANK     NO
  78.        SHORTTAG YES
  79.      LINK
  80.        SIMPLE   NO
  81.        IMPLICIT NO
  82.        EXPLICIT NO
  83.      OTHER
  84.        CONCUR   NO
  85.        SUBDOC   NO
  86.        FORMAL   YES
  87.    APPINFO      NONE
  88. >
  89.  
  90.  
  91. <!--================ HTML 3.2 Document Type Definition ==========================-->
  92.  
  93. <!--
  94.  
  95.         W3C Document Type Definition for the HyperText Markup Language
  96.         version 3.2 as ratified by a vote of W3C member companies.
  97.         For more information on W3C look at  URL http://www.w3.org/
  98.  
  99.         Date: Tuesday January 14th 1997
  100.  
  101.         Author: Dave Raggett <dsr@w3.org>
  102.  
  103.         HTML 3.2 aims to capture recommended practice as of early '96
  104.         and as such to be used as a replacement for HTML 2.0 (RFC 1866).
  105.         Widely deployed rendering attributes are included where they
  106.         have been shown to be interoperable. SCRIPT and STYLE are
  107.         included to smooth the introduction of client-side scripts
  108.         and style sheets. Browsers must avoid showing the contents
  109.         of these element Otherwise support for them is not required.
  110.         ID, CLASS and STYLE attributes are not included in this version
  111.         of HTML.
  112. -->
  113.  
  114. <!ENTITY % HTML.Version
  115.         "-//W3C//DTD HTML 3.2 Final//EN"
  116.  
  117.         -- Typical usage:
  118.  
  119.             <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  120.             <html>
  121.             ...
  122.             </html>
  123.         --
  124.         >
  125.  
  126. <!--================== Deprecated Features Switch =========================-->
  127.  
  128. <!ENTITY % HTML.Deprecated "INCLUDE">
  129.  
  130. <!--================== Imported Names =====================================-->
  131.  
  132. <!ENTITY % Content-Type "CDATA"
  133.         -- meaning a MIME content type, as per RFC1521
  134.         -->
  135.  
  136. <!ENTITY % HTTP-Method "GET | POST"
  137.         -- as per HTTP specification
  138.         -->
  139.  
  140. <!ENTITY % URL "CDATA"
  141.         -- The term URL means a CDATA attribute
  142.            whose value is a Uniform Resource Locator,
  143.            See RFC1808 (June 95) and RFC1738 (Dec 94).
  144.         -->
  145.  
  146. <!-- Parameter Entities -->
  147.  
  148. <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK" -- repeatable head elements -->
  149.  
  150. <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
  151.  
  152. <!ENTITY % list "UL | OL |  DIR | MENU">
  153.  
  154. <![ %HTML.Deprecated [
  155.     <!ENTITY % preformatted "PRE | XMP | LISTING">
  156. ]]>
  157.  
  158. <!ENTITY % preformatted "PRE">
  159.  
  160. <!--================ Character mnemonic entities ==========================-->
  161.  
  162. <!ENTITY % ISOlat1 PUBLIC
  163.        "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
  164. %ISOlat1;
  165.  
  166. <!--================ Entities for special symbols =========================-->
  167. <!-- &trade and &cbsp are not widely deployed and so not included here -->
  168.  
  169. <!ENTITY amp    CDATA "&"   -- ampersand          -->
  170. <!ENTITY gt     CDATA ">"   -- greater than       -->
  171. <!ENTITY lt     CDATA "<"   -- less than          -->
  172. <!ENTITY quot   CDATA """   -- (added by k16) -->
  173.  
  174. <!--=================== Text Markup =======================================-->
  175.  
  176. <!ENTITY % font "TT | I | B  | U | STRIKE | BIG | SMALL | SUB | SUP">
  177.  
  178. <!ENTITY % phrase "EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE">
  179.  
  180. <!ENTITY % special "A | IMG | APPLET | FONT | BASEFONT | BR | SCRIPT | MAP">
  181.  
  182. <!ENTITY % form "INPUT | SELECT | TEXTAREA">
  183.  
  184. <!ENTITY % text "#PCDATA | %font | %phrase | %special | %form">
  185.  
  186. <!ELEMENT (%font|%phrase) - - (%text)*>
  187.  
  188. <!-- there are also 16 widely known color names although
  189.   the resulting colors are implementation dependent:
  190.  
  191.    aqua, black, blue, fuchsia, gray, green, lime, maroon,
  192.    navy, olive, purple, red, silver, teal, white, and yellow
  193.  
  194.  These colors were originally picked as being the standard
  195.  16 colors supported with the Windows VGA palette.
  196.  -->
  197.  
  198. <!ELEMENT FONT - - (%text)*     -- local change to font -->
  199. <!ATTLIST FONT
  200.     size    CDATA   #IMPLIED    -- [+]nn e.g. size="+1", size=4 --
  201.     color   CDATA   #IMPLIED    -- #RRGGBB in hex, e.g. red: color="#FF0000" --
  202.     >
  203.  
  204. <!ELEMENT BASEFONT - O EMPTY    -- base font size (1 to 7)-->
  205. <!ATTLIST BASEFONT
  206.     size    CDATA   #IMPLIED    -- e.g. size=3 --
  207.     >
  208.  
  209. <!ELEMENT BR    - O EMPTY    -- forced line break -->
  210. <!ATTLIST BR
  211.         clear (left|all|right|none) none -- control of text flow --
  212.         >
  213.  
  214. <!--================== HTML content models ================================-->
  215. <!--
  216.     HTML has three basic content models:
  217.  
  218.         %text       character level elements and text strings
  219.         %flow       block-like elements e.g. paragraphs and lists
  220.         %bodytext   as %flow plus headers H1-H6 and ADDRESS
  221. -->
  222.  
  223. <!ENTITY % block
  224.      "P | %list | %preformatted | DL | DIV | CENTER |
  225.       BLOCKQUOTE | FORM | ISINDEX | HR | TABLE">
  226.  
  227. <!-- %flow is used for DD and LI -->
  228.  
  229. <!ENTITY % flow "(%text | %block)*">
  230.  
  231. <!--=================== Document Body =====================================-->
  232.  
  233. <!ENTITY % body.content "(%heading | %text | %block | ADDRESS)*">
  234.  
  235. <!ENTITY % color "CDATA" -- a color specification: #HHHHHH @@ details? -->
  236.  
  237. <!ENTITY % body-color-attrs "
  238.         bgcolor %color #IMPLIED
  239.         text %color #IMPLIED
  240.         link %color #IMPLIED
  241.         vlink %color #IMPLIED
  242.         alink %color #IMPLIED
  243.         ">
  244.  
  245. <!ELEMENT BODY O O  %body.content>
  246. <!ATTLIST BODY
  247.         background %URL #IMPLIED  -- texture tile for document background --
  248.         %body-color-attrs;  -- bgcolor, text, link, vlink, alink --
  249.         >
  250.  
  251. <!ENTITY % address.content "((%text;) | P)*">
  252.  
  253. <!ELEMENT ADDRESS - - %address.content>
  254.  
  255. <!ELEMENT DIV - - %body.content>
  256. <!ATTLIST DIV
  257.         align   (left|center|right) #IMPLIED -- alignment of following text --
  258.         >
  259.  
  260. <!-- CENTER is a shorthand for DIV with ALIGN=CENTER -->
  261. <!ELEMENT center - - %body.content>
  262.  
  263. <!--================== The Anchor Element =================================-->
  264.  
  265. <!ELEMENT A - - (%text)* -(A)>
  266. <!ATTLIST A
  267.         name    CDATA   #IMPLIED    -- named link end --
  268.         href    %URL    #IMPLIED    -- URL for linked resource --
  269.         rel     CDATA   #IMPLIED    -- forward link types --
  270.         rev     CDATA   #IMPLIED    -- reverse link types --
  271.         title   CDATA   #IMPLIED    -- advisory title string --
  272.         >
  273.  
  274. <!--================== Client-side image maps ============================-->
  275.  
  276. <!-- These can be placed in the same document or grouped in a
  277.      separate document although this isn't yet widely supported -->
  278.  
  279. <!ENTITY % SHAPE "(rect|circle|poly)">
  280. <!ENTITY % COORDS "CDATA" -- comma separated list of numbers -->
  281.  
  282. <!ELEMENT MAP - - (AREA)*>
  283. <!ATTLIST MAP
  284.     name    CDATA   #IMPLIED
  285.     >
  286.  
  287. <!ELEMENT AREA - O EMPTY>
  288. <!ATTLIST AREA
  289.     shape   %SHAPE  rect
  290.     coords  %COORDS #IMPLIED  -- defines coordinates for shape --
  291.     href    %URL    #IMPLIED  -- this region acts as hypertext link --
  292.     nohref (nohref) #IMPLIED  -- this region has no action --
  293.     alt     CDATA   #REQUIRED -- needed for non-graphical user agents --
  294.     >
  295.  
  296. <!--================== The LINK Element ==================================-->
  297.  
  298. <!ENTITY % Types "CDATA"
  299.         -- See Internet Draft: draft-ietf-html-relrev-00.txt
  300.            LINK has been part of HTML since the early days
  301.            although few browsers as yet take advantage of it.
  302.  
  303.            Relationship values can be used in principle:
  304.  
  305.                 a) for document specific toolbars/menus when used
  306.                    with the LINK element in the document head:
  307.                 b) to link to a separate style sheet
  308.                 c) to make a link to a script
  309.                 d) by stylesheets to control how collections of
  310.                    html nodes are rendered into printed documents
  311.                 e) to make a link to a printable version of this document
  312.                    e.g. a postscript or pdf version
  313. -->
  314.  
  315. <!ELEMENT LINK - O EMPTY>
  316. <!ATTLIST LINK
  317.         href    %URL    #IMPLIED    -- URL for linked resource --
  318.         rel     %Types  #IMPLIED    -- forward link types --
  319.         rev     %Types  #IMPLIED    -- reverse link types --
  320.         title   CDATA   #IMPLIED    -- advisory title string --
  321.         >
  322.  
  323. <!--=================== Images ============================================-->
  324.  
  325. <!ENTITY % Length "CDATA"   -- nn for pixels or nn% for percentage length -->
  326. <!ENTITY % Pixels "NUMBER"  -- integer representing length in pixels -->
  327.  
  328. <!-- Suggested widths are used for negotiating image size
  329.      with the module responsible for painting the image.
  330.      align=left or right cause image to float to margin
  331.      and for subsequent text to wrap around image -->
  332.  
  333. <!ENTITY % IAlign "(top|middle|bottom|left|right)">
  334.  
  335. <!ELEMENT IMG    - O EMPTY --  Embedded image -->
  336. <!ATTLIST IMG
  337.         src     %URL     #REQUIRED  -- URL of image to embed --
  338.         alt     CDATA    #IMPLIED   -- for display in place of image --
  339.         align   %IAlign  #IMPLIED   -- vertical or horizontal alignment --
  340.         height  %Pixels  #IMPLIED   -- suggested height in pixels --
  341.         width   %Pixels  #IMPLIED   -- suggested width in pixels --
  342.         border  %Pixels  #IMPLIED   -- suggested link border width --
  343.         hspace  %Pixels  #IMPLIED   -- suggested horizontal gutter --
  344.         vspace  %Pixels  #IMPLIED   -- suggested vertical gutter --
  345.         usemap  %URL     #IMPLIED   -- use client-side image map --
  346.         ismap   (ismap)  #IMPLIED   -- use server image map --
  347.         >
  348.  
  349. <!-- USEMAP points to a MAP element which may be in this document
  350.   or an external document, although the latter is not widely supported -->
  351.  
  352. <!--=================== Java APPLET tag ===================================-->
  353. <!--
  354.   This tag is supported by all Java enabled browsers. Applet resources
  355.   (including their classes) are normally loaded relative to the document
  356.   URL (or <BASE> element if it is defined). The CODEBASE attribute is used
  357.   to change this default behavior. If the CODEBASE attribute is defined then
  358.   it specifies a different location to find applet resources. The value
  359.   can be an absolute URL or a relative URL. The absolute URL is used as is
  360.   without modification and is not effected by the documents <BASE> element.
  361.   When the codebase attribute is relative, then it is relative to the
  362.   document URL (or <BASE> tag if defined).
  363. -->
  364. <!ELEMENT APPLET - - (PARAM | %text)*>
  365. <!ATTLIST APPLET
  366.         codebase %URL     #IMPLIED   -- code base --
  367.         code     CDATA    #REQUIRED  -- class file --
  368.         alt      CDATA    #IMPLIED   -- for display in place of applet --
  369.         name     CDATA    #IMPLIED   -- applet name --
  370.         width    %Pixels  #REQUIRED  -- suggested width in pixels --
  371.         height   %Pixels  #REQUIRED  -- suggested height in pixels --
  372.         align    %IAlign  #IMPLIED   -- vertical or horizontal alignment --
  373.         hspace   %Pixels  #IMPLIED   -- suggested horizontal gutter --
  374.         vspace   %Pixels  #IMPLIED   -- suggested vertical gutter --
  375.         >
  376.  
  377. <!ELEMENT PARAM - O EMPTY>
  378. <!ATTLIST PARAM
  379.         name    NMTOKEN   #REQUIRED  -- The name of the parameter --
  380.         value   CDATA     #IMPLIED   -- The value of the parameter --
  381.         >
  382.  
  383. <!--
  384. Here is an example:
  385.  
  386.     <applet codebase="applets/NervousText"
  387.         code=NervousText.class
  388.         width=300
  389.         height=50>
  390.     <param name=text value="Java is Cool!">
  391.     <img src=sorry.gif alt="This looks better with Java support">
  392.     </applet>
  393. -->
  394.  
  395. <!--=================== Horizontal Rule ===================================-->
  396.  
  397. <!ELEMENT HR    - O EMPTY>
  398. <!ATTLIST HR
  399.         align (left|right|center) #IMPLIED
  400.         noshade (noshade) #IMPLIED
  401.         size  %Pixels #IMPLIED
  402.         width %Length #IMPLIED
  403.         >
  404. <!--=================== Paragraphs=========================================-->
  405.  
  406. <!ELEMENT P     - O (%text)*>
  407. <!ATTLIST P
  408.         align  (left|center|right) #IMPLIED
  409.         >
  410.  
  411. <!--=================== Headings ==========================================-->
  412.  
  413. <!--
  414.   There are six levels of headers from H1 (the most important)
  415.   to H6 (the least important).
  416. -->
  417.  
  418. <!ELEMENT ( %heading )  - -  (%text;)*>
  419. <!ATTLIST ( %heading )
  420.         align  (left|center|right) #IMPLIED
  421.         >
  422.  
  423. <!--=================== Preformatted Text =================================-->
  424.  
  425. <!-- excludes images and changes in font size -->
  426.  
  427. <!ENTITY % pre.exclusion "IMG|BIG|SMALL|SUB|SUP|FONT">
  428.  
  429. <!ELEMENT PRE - - (%text)* -(%pre.exclusion)>
  430. <!ATTLIST PRE
  431.         width NUMBER #implied -- is this widely supported? --
  432.         >
  433.  
  434. <![ %HTML.Deprecated [
  435.  
  436. <!ENTITY % literal "CDATA"
  437.         -- historical, non-conforming parsing mode where
  438.            the only markup signal is the end tag
  439.            in full
  440.         -->
  441.  
  442. <!ELEMENT (XMP|LISTING) - -  %literal>
  443. <!ELEMENT PLAINTEXT - O %literal>
  444.  
  445. ]]>
  446.  
  447. <!--=================== Block-like Quotes =================================-->
  448.  
  449. <!ELEMENT BLOCKQUOTE - - %body.content>
  450.  
  451. <!--=================== Lists =============================================-->
  452.  
  453. <!--
  454.     HTML 3.2 allows you to control the sequence number for ordered lists.
  455.     You can set the sequence number with the START and VALUE attributes.
  456.     The TYPE attribute may be used to specify the rendering of ordered
  457.     and unordered lists.
  458. -->
  459.  
  460. <!-- definition lists - DT for term, DD for its definition -->
  461.  
  462. <!ELEMENT DL    - -  (DT|DD)+>
  463. <!ATTLIST DL
  464.         compact (compact) #IMPLIED -- more compact style --
  465.         >
  466.  
  467. <!ELEMENT DT - O  (%text)*>
  468. <!ELEMENT DD - O  %flow;>
  469.  
  470. <!-- Ordered lists OL, and unordered lists UL -->
  471. <!ELEMENT (OL|UL) - -  (LI)+>
  472.  
  473. <!--
  474.        Numbering style
  475.     1   Arabic numbers      1, 2, 3, ...
  476.     a   lower alpha         a, b, c, ...
  477.     A   upper alpha         A, B, C, ...
  478.     i   lower Roman         i, ii, iii, ...
  479.     I   upper Roman         I, II, III, ...
  480.  
  481.     The style is applied to the sequence number which by default
  482.     is reset to 1 for the first list item in an ordered list.
  483.  
  484.     This can't be expressed directly in SGML due to case folding.
  485. -->
  486.  
  487. <!ENTITY % OLStyle "CDATA" -- constrained to: [1|a|A|i|I] -->
  488.  
  489. <!ATTLIST OL -- ordered lists --
  490.         type      %OLStyle   #IMPLIED   -- numbering style --
  491.         start     NUMBER     #IMPLIED   -- starting sequence number --
  492.         compact  (compact)   #IMPLIED   -- reduced interitem spacing --
  493.         >
  494.  
  495. <!-- bullet styles -->
  496.  
  497. <!ENTITY % ULStyle "disc|square|circle">
  498.  
  499. <!ATTLIST UL -- unordered lists --
  500.         type    (%ULStyle)   #IMPLIED   -- bullet style --
  501.         compact (compact)    #IMPLIED   -- reduced interitem spacing --
  502.         >
  503.  
  504. <!ELEMENT (DIR|MENU) - -  (LI)+ -(%block)>
  505. <!ATTLIST DIR
  506.         compact (compact) #IMPLIED
  507.         >
  508. <!ATTLIST MENU
  509.         compact (compact) #IMPLIED
  510.         >
  511.  
  512. <!-- <DIR>              Directory list                  -->
  513. <!-- <DIR COMPACT>      Compact list style              -->
  514. <!-- <MENU>             Menu list                       -->
  515. <!-- <MENU COMPACT>     Compact list style              -->
  516.  
  517. <!-- The type attribute can be used to change the bullet style
  518.      in unordered lists and the numbering style in ordered lists -->
  519.  
  520. <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle|%OLStyle)" -->
  521.  
  522. <!ELEMENT LI - O %flow -- list item -->
  523. <!ATTLIST LI
  524.         type    %LIStyle     #IMPLIED   -- list item style --
  525.         value    NUMBER      #IMPLIED   -- reset sequence number --
  526.         >
  527.  
  528. <!--================ Forms ===============================================-->
  529.  
  530. <!ELEMENT FORM - - %body.content -(FORM)>
  531. <!ATTLIST FORM
  532.         action %URL #IMPLIED  -- server-side form handler --
  533.         method (%HTTP-Method) GET -- see HTTP specification --
  534.         enctype %Content-Type; "application/x-www-form-urlencoded"
  535.         >
  536.  
  537. <!ENTITY % InputType
  538.         "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT
  539.             | RESET | FILE | HIDDEN | IMAGE)">
  540.  
  541. <!ELEMENT INPUT - O EMPTY>
  542. <!ATTLIST INPUT
  543.         type %InputType TEXT     -- what kind of widget is needed --
  544.         name  CDATA   #IMPLIED   -- required for all but submit and reset --
  545.         value CDATA   #IMPLIED   -- required for radio and checkboxes --
  546.         checked (checked) #IMPLIED -- for radio buttons and check boxes --
  547.         size CDATA    #IMPLIED   -- specific to each type of field --
  548.         maxlength NUMBER #IMPLIED -- max chars allowed in text fields --
  549.         src   %URL    #IMPLIED   -- for fields with background images --
  550.         align %IAlign #IMPLIED   -- vertical or horizontal alignment --
  551.         >
  552.  
  553. <!ELEMENT SELECT - - (OPTION+)>
  554. <!ATTLIST SELECT
  555.         name CDATA #REQUIRED
  556.         size NUMBER #IMPLIED
  557.         multiple (multiple) #IMPLIED
  558.         >
  559.  
  560. <!ELEMENT OPTION - O (#PCDATA)*>
  561. <!ATTLIST OPTION
  562.         selected (selected) #IMPLIED
  563.         value  CDATA  #IMPLIED -- defaults to element content --
  564.         >
  565.  
  566. <!-- Multi-line text input field. -->
  567.  
  568. <!ELEMENT TEXTAREA - - (#PCDATA)*>
  569. <!ATTLIST TEXTAREA
  570.         name CDATA #REQUIRED
  571.         rows NUMBER #REQUIRED
  572.         cols NUMBER #REQUIRED
  573.         >
  574.  
  575. <!--======================= Tables ========================================-->
  576.  
  577. <!-- Widely deployed subset of the full table standard, see RFC 1942
  578.      e.g. at http://www.ics.uci.edu/pub/ietf/html/rfc1942.txt -->
  579.  
  580. <!-- horizontal placement of table relative to window -->
  581. <!ENTITY % Where "(left|center|right)">
  582.  
  583. <!-- horizontal alignment attributes for cell contents -->
  584. <!ENTITY % cell.halign
  585.         "align  (left|center|right) #IMPLIED"
  586.         >
  587.  
  588. <!-- vertical alignment attributes for cell contents -->
  589. <!ENTITY % cell.valign
  590.         "valign  (top|middle|bottom)  #IMPLIED"
  591.         >
  592.  
  593. <!ELEMENT table - - (caption?, tr+)>
  594. <!ELEMENT tr - O (th|td)*>
  595. <!ELEMENT (th|td) - O %body.content>
  596.  
  597. <!ATTLIST table                       -- table element --
  598.         align     %Where;   #IMPLIED  -- table position relative to window --
  599.         width     %Length   #IMPLIED  -- table width relative to window --
  600.         border    %Pixels   #IMPLIED  -- controls frame width around table --
  601.         cellspacing %Pixels #IMPLIED  -- spacing between cells --
  602.         cellpadding %Pixels #IMPLIED  -- spacing within cells --
  603.         >
  604.  
  605. <!ELEMENT CAPTION - - (%text;)* -- table or figure caption -->
  606. <!ATTLIST CAPTION
  607.         align (top|bottom) #IMPLIED
  608.         >
  609.  
  610. <!ATTLIST tr                       -- table row --
  611.         %cell.halign;              -- horizontal alignment in cells --
  612.         %cell.valign;              -- vertical alignment in cells --
  613.         >
  614.  
  615. <!ATTLIST (th|td)                  -- header or data cell --
  616.         nowrap (nowrap)  #IMPLIED  -- suppress word wrap --
  617.         rowspan NUMBER   1         -- number of rows spanned by cell --
  618.         colspan NUMBER   1         -- number of cols spanned by cell --
  619.         %cell.halign;              -- horizontal alignment in cell --
  620.         %cell.valign;              -- vertical alignment in cell --
  621.         width   %Pixels  #IMPLIED  -- suggested width for cell --
  622.         height  %Pixels  #IMPLIED  -- suggested height for cell --
  623.         >
  624.  
  625. <!--================ Document Head ========================================-->
  626.  
  627. <!-- %head.misc defined earlier on as "SCRIPT|STYLE|META|LINK" -->
  628.  
  629. <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
  630.  
  631. <!ELEMENT HEAD O O  (%head.content) +(%head.misc)>
  632.  
  633. <!ELEMENT TITLE - -  (#PCDATA)* -(%head.misc)
  634.           -- The TITLE element is not considered part of the flow of text.
  635.              It should be displayed, for example as the page header or
  636.              window title.
  637.           -->
  638.  
  639. <!ELEMENT ISINDEX - O EMPTY>
  640. <!ATTLIST ISINDEX
  641.         prompt CDATA #IMPLIED -- prompt message -->
  642.  
  643. <!--
  644.     The BASE element gives an absolute URL for dereferencing relative
  645.     URLs, e.g.
  646.  
  647.          <BASE href="http://foo.com/index.html">
  648.          ...
  649.          <IMG SRC="images/bar.gif">
  650.  
  651.     The image is deferenced to
  652.  
  653.          http://foo.com/images/bar.gif
  654.  
  655.    In the absence of a BASE element the document URL should be used.
  656.    Note that this is not necessarily the same as the URL used to
  657.    request the document, as the base URL may be overridden by an HTTP
  658.    header accompanying the document.
  659. -->
  660.  
  661. <!ELEMENT BASE - O EMPTY>
  662. <!ATTLIST BASE
  663.         href %URL  #REQUIRED
  664.         >
  665.  
  666. <!ELEMENT META - O EMPTY -- Generic Metainformation -->
  667. <!ATTLIST META
  668.         http-equiv  NAME    #IMPLIED  -- HTTP response header name  --
  669.         name        NAME    #IMPLIED  -- metainformation name       --
  670.         content     CDATA   #REQUIRED -- associated information     --
  671.         >
  672.  
  673. <!-- SCRIPT/STYLE are place holders for transition to next version of HTML -->
  674.  
  675. <!ELEMENT STYLE  - - CDATA -- placeholder for style info -->
  676. <!ELEMENT SCRIPT - - CDATA -- placeholder for script statements -->
  677.  
  678. <!--================ Document Structure ===================================-->
  679.  
  680. <!ENTITY % version.attr "VERSION CDATA #FIXED '%HTML.Version;'">
  681.  
  682. <![ %HTML.Deprecated [
  683.     <!ENTITY % html.content "HEAD, BODY, PLAINTEXT?">
  684. ]]>
  685.  
  686. <!ENTITY % html.content "HEAD, BODY">
  687.  
  688. <!ELEMENT HTML O O  (%html.content)>
  689. <!ATTLIST HTML
  690.         %version.attr;
  691.         >
  692.