home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 February / comcd0202.iso / homepage / testsw / code / arv111 / data1.cab / Program_Executable_Files / sgml-lib / HTML3.dtd < prev    next >
Encoding:
Text File  |  2000-09-10  |  52.7 KB  |  1,454 lines

  1. <!--
  2.         html3.dtd
  3.  
  4.         Document Type Definition for the HyperText Markup Language (HTML DTD)
  5.  
  6.         Draft: Fri 24-Mar-95 09:46:33
  7.  
  8.         Author: Dave Raggett <dsr@hplb.hpl.hp.com>
  9.  
  10.         W3O is developing a testbed browser to provide practical
  11.         experience with HTML 3.0 before it becomes a standard.
  12.         See:  http://www.w3.org/hypertext/WWW/Arena/
  13.  
  14.         This is an open process and comments are welcomed on the
  15.         www-html mailing list.
  16.  
  17.         Please use the following MIME content type:
  18.         
  19.                 Content-Type: text/html; version=3.0
  20.                 
  21.         This will allow clients to distinguish HTML 3.0 from current
  22.         HTML documents. This is most easily achieved by saving
  23.         files with the extension ".html3" or ".ht3" so that servers
  24.         can easily distinguish these files from HTML 2.0 files.
  25.         
  26.         The entity HTML.Recommended can be used to give a more rigorous
  27.         version of the DTD suitable for use with SGML authoring tools.
  28.         The default version of the DTD offers a laxer interpretation,
  29.         e.g. allowing authors to omit leading <P> elements. You can
  30.         switch on the more rigorous version of the DTD by including
  31.         the following at the start of your HTML document.
  32.  
  33.          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN//"
  34.             [ <!ENTITY % HTML.Recommended "INCLUDE"> ] >
  35.  
  36.  
  37.         Design Objectives:
  38.  
  39.         o   Backwards compatibility with 2.0
  40.  
  41.         o   Tightening up HTML.Recommended and
  42.             moving more things to HTML.Deprecated
  43.  
  44.         o   Keep HTML - simple don't compete with CALS
  45.  
  46.         o   Make it practical for people to edit HTML 3.0
  47.             documents directly, i.e. avoid long names.
  48.  
  49.         o   Tables, figures and math from HTML+
  50.             with tweaks based on recent experience
  51.  
  52.         o   Client-side event handling for figures
  53.             and graphical form selection menus
  54.  
  55.         o   Add limited presentational controls with
  56.             a view to use of linked style sheets
  57.             (style overrides are supported)
  58.  
  59.         o   Compatibility with ICADD as per Yuri's suggestions
  60.  
  61.         HTML 3.0 relies on linked style info to give authors
  62.         control over the appearence of documents. Such info is
  63.         placed in a linked style sheet, or as overrides in the
  64.         HTML document head, using the STYLE element. The generic
  65.         CLASS attribute can be used to subclass elements when
  66.         you want to use a different style from normal, e.g. you
  67.         might use <h2 class=bigcaps> for headers with enlarged
  68.         capital letters. Note that the class attribute has a
  69.         wider scope than just style changes, e.g. browsers could
  70.         provide the means for searching through documents,
  71.         restricting search according to element class values.
  72.  
  73.         The DTD contains a small number of attributes for direct
  74.         control of basic alignment parameters; column widths for
  75.         tables; support for custom bullets, sequence numbering for
  76.         lists and headers; and text flow. These attributes offer
  77.         control over appearence which would be inconvenient to
  78.         express exclusively via associated style sheets.
  79.  
  80.         The MD attribute for each hypertext or inline link specifies a
  81.         message digest such as MD5 for the linked object and is needed
  82.         to ensure someone hasn't tampered with a linked document.
  83.  
  84.   History:
  85.   
  86.     24th March '95
  87.     
  88.     Changed ROLE->CLASS for HTML element
  89.     Added dummy elements to fix problem with mixed
  90.     content models for BODY, BLOCKQUOTE/BQ and FIG
  91.     Dropped audio fields from FORMs
  92.     Reinstated MIN/MAX for range fields
  93.     Reinstated DISABLED and ERROR attributes for fields
  94.   
  95.     22nd March '95
  96.     
  97.     Changed from em to en units. The latter
  98.     is a typographical unit = half point size
  99.     Merged NEEDS into CLEAR for control of textflow
  100.   
  101.     21st March '95
  102.     
  103.     Added REL=Banner to LINK element
  104.     Added BANNER element in place of <DIV CLASS=BANNER>
  105.     Added RANGE and SPOT elements
  106.     Added FN in place of <NOTE ROLE=FOOTNOTE>
  107.     Changed ROLE->CLASS for NOTE element
  108.  
  109.     17th March '95
  110.     
  111.     Fixed bug in PRE content model
  112.     Changed external references to omit trailling //
  113.     Dropped <!DOCTYPE HTML [ ... ]> wrapper to avoid problems
  114.       with "real" sgml parsers
  115.     Added NOFLOW attribute to FIG and TABLE
  116.     Fixed typo in IMG ALIGN attribute
  117.     Made SELECT match IMG for graphic attributes
  118.     Added decimal alignment for tabs and table cells
  119.     Added ALIGN attribute to TEXTAREA for parity
  120.       with IMG and INPUT, including ALIGN=LEFT etc.
  121.     
  122.     13th March '95
  123.     
  124.     Dropped MARK tag on advice from SGML Open
  125.     Allowed spaces in table colspec attribute
  126.     Changed ARRAY element
  127.     Added CHOOSE tag to BOX element
  128.     Cleaned up PRE content model
  129.     Obsoleted tags incompatible with SGML
  130.     
  131.     6th March '95
  132.     
  133.     Added several tags to MATH: %mathface, %mathvec
  134.     and improved ROOT, with new SQRT convience tag
  135.     
  136.     1st March '95
  137.     
  138.     Dropped align attribute from BR element
  139.     Added indent attribute to TAB
  140.     Added optional CREDIT to end of BQ
  141.     Changed FIG to %body.content to allow headers
  142.     
  143.     22nd February '95
  144.     
  145.     Added align attribute, and dropped before, after, center and right
  146.       attributes to clean up TAB element
  147.     Added INS and DEL for legal documents    
  148.     Added CREDIT to end of FIG element
  149.     Dropped FN in favor of <NOTE ROLE=FootNote>
  150.     
  151.     9th Feburuary '95
  152.  
  153.     Dropped base attribute mechanism for scoping relative URLs
  154.     Dropped nofold attribute for disabling whitespace folding
  155.     Dropped border width attributes for FIG (-> style sheet)
  156.     Dropped delims attribute from math BOX element
  157.     Dropped stylistic attributes from OL such as inherit (-> stylesheet)
  158.     Added baseline to list of valign attribute values for tables.
  159.     Added DIV element for generic container class and static banners
  160.     Added MARK element for marked range class
  161.     Added closed set of LINK REL values for toolbars
  162.     Added numbering attributes to headers
  163.     Added bullet attributes to headers
  164.     Added TERM element to math for style sheet control of term rendering
  165.     Changed to imagemap=URI for server-side event handling for FIG/OVERLAY
  166.     Changed delimiter attributes for math arrays
  167.     Changed ROOT element for maths to allow an arbitrary radix
  168.     Simplified numbering attributes for ordered lists
  169.     Simplified STYLE element to leave binding to style language
  170. -->
  171.  
  172. <!ENTITY % HTML.Version
  173.         "-//IETF//DTD HTML 3.0//EN"
  174.  
  175.         -- Typical usage:
  176.  
  177.             <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
  178.             <html>
  179.             ...
  180.             </html>
  181.         --
  182.         >
  183.  
  184. <!--================== Flags for Marked Sections ==========================-->
  185.  
  186. <!ENTITY % HTML.Recommended "IGNORE"
  187.         -- Certain features of the language are necessary for compatibility
  188.            with widespread usage, but they may compromise the structural
  189.            integrity of a document. This feature test entity enables
  190.            a more prescriptive document type definition that eliminates
  191.            the above features.
  192.         -->
  193.  
  194. <![ %HTML.Recommended [
  195.         <!ENTITY % HTML.Deprecated "IGNORE">
  196. ]]>
  197.  
  198. <!ENTITY % HTML.Deprecated "INCLUDE"
  199.         -- Certain features of the language are necessary for compatibility
  200.            with earlier versions of the specification, but they tend
  201.            to be used an implemented inconsistently, and their use is
  202.            deprecated. This feature test entity enables a document type
  203.            definition that eliminates these features.
  204.         -->
  205.         
  206. <!ENTITY % HTML.Obsoleted "IGNORE"
  207.         -- The XMP, LISTING and PLAINTEXT tags are incompatible with SGML
  208.            and derive from very early versions of HTML. They require non-
  209.            standard parsers and will cause problems for processing
  210.            documents with standard SGML tools.
  211.         -->
  212.  
  213. <!--================== Imported Names =====================================-->
  214.  
  215. <!ENTITY % Content-Type "CDATA"
  216.         -- meaning a MIME content type, as per RFC1521
  217.         -->
  218.  
  219. <!ENTITY % HTTP-Method "GET | POST"
  220.         -- as per HTTP specification
  221.         -->
  222.  
  223. <!ENTITY % URI "CDATA"
  224.         -- The term URI means a CDATA attribute
  225.            whose value is a Uniform Resource Identifier,
  226.            as defined by
  227.         "Uniform Resource Identifiers" by Tim Berners-Lee
  228.         aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html
  229.         aka RFC 1630
  230.  
  231.         Note that CDATA attributes are limited by the LITLEN
  232.         capacity (1024 in the current version of html.decl),
  233.         so that URIs in HTML have a bounded length.
  234.  
  235.         -->
  236.  
  237. <!ENTITY % REAL "CDATA" -- real numbers (not in SGML) -->
  238.  
  239. <!ENTITY % SHAPE "CDATA" 
  240.     -- Shape of hotzone in image.
  241.  
  242.        All coordinates are assumed to be numbers in the range 0 to 1
  243.        and interpreted as fractional width/height and measured from
  244.        the top left corner of the associated image.
  245.  
  246.        The attribute value is a string taking one of the following forms:
  247.        
  248.                 "default"
  249.                 
  250.        Used to define a default link for the figure background.
  251.  
  252.             "circle x, y, r" 
  253.  
  254.        (x, y) define the center and r the radius.
  255.  
  256.             "rect x, y, w, h"
  257.  
  258.        (x, y) defines upper left, and w and h the width and height.
  259.  
  260.             "polygon x1, y1, x2, y2, ..."
  261.  
  262.        Given n pairs of x, y coordinates, the polygon is closed by a
  263.        line linking the n'th point to the first. Intersecting polygons
  264.        use the non-zero winding number rule to determine if a point lies
  265.        inside the polygon.I
  266.     --
  267. >
  268.  
  269. <!-- 3.0 Parameter Entities -->
  270.  
  271. <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
  272.  
  273. <![ %HTML.Obsoleted [
  274.     <!ENTITY % preformatted "PRE | XMP | LISTING">
  275. ]]>
  276.  
  277.  
  278. <![ %HTML.Deprecated [
  279.     <!ENTITY % list "UL | OL | DIR | MENU">
  280.     <!ENTITY % blockquote "BLOCKQUOTE | BQ">
  281. ]]>
  282.  
  283. <!ENTITY % list "UL | OL">
  284.  
  285. <!ENTITY % blockquote "BQ">
  286.  
  287. <!ENTITY % preformatted "PRE">
  288.  
  289.  
  290. <!-- The CLASS attribute is used to subclass HTML elements for
  291.      rendering purposes, when used with style sheets, e.g. DSSSL lite -->
  292.  
  293. <!ENTITY % attrs  -- common attributes for elements --
  294.         'id       ID      #IMPLIED -- as target for hrefs (link ends) --
  295.          lang     CDATA   "en.us"  -- ISO language, country code --
  296.          class    NAMES   #IMPLIED -- for subclassing elements --'>
  297.  
  298. <!-- SGML standard forces different NAMES for all attribute values
  299.      in the same element, regardless of the attribute name! As a result
  300.      CDATA is used for CLEAR attribute to avoid clash with ALIGN attribute.-->
  301.  
  302. <!--
  303. When text flows around a figure or table in the margin, you sometimes want
  304. to start an element like a header, paragraph or list below the figure rather
  305. than alongside it. The CLEAR attribute allows you to move down unconditionally:
  306.  
  307.         clear=left          move down until left margin is clear
  308.         clear=right         move down until right margin is clear
  309.         clear=all           move down until both margins are clear
  310.  
  311. Alternatively, you can decide to place the element alongside the figure just
  312. so long as there is enough room. The minimum width needed is specified as:
  313.  
  314.         clear="40 en"       move down until there is at least 40 en units free
  315.         clear="100 pixels"  move down until there is at least 100 pixels free
  316.         
  317. The style sheet (or browser defaults) may provide default minimum widths for
  318. each class of block-like elements.
  319. -->
  320.  
  321. <!ENTITY % needs -- Attributes for controlling text flow. Used in headers
  322.                     and other elements to guarantee sufficient room --
  323.         'clear  CDATA #IMPLIED'>
  324.  
  325. <!--
  326.     The following attribute may be included where ever a URL can be given:
  327.  
  328.     md      message digest e.g. md="md5:jV2OfH+nnXHU8bnkPAad/mSQlTDZ"
  329.             where the digest is base64 encoded and preceded by a prefix
  330.             denoting the algorithm (in this case MD5).
  331. -->
  332.  
  333. <!ENTITY % url.link -- Attributes associated with URL based links --
  334.         "md     CDATA  #IMPLIED  -- message digest for linked object --">
  335.  
  336. <!--================ Character mnemonic entities ==========================-->
  337.  
  338. <!-- The HTML list of Latin-1 entities includes the full range
  339.      of characters in widely available Latin-1 fonts, and as such
  340.      is a mixture of ISOlat1 and other ISO publishing symbols -->
  341.  
  342. <!ENTITY % HTMLlat1 PUBLIC
  343.   "-//IETF//ENTITIES Added Latin 1 for HTML//EN">
  344. %HTMLlat1;
  345.  
  346. <!--================ Entities for special symbols =========================-->
  347.  
  348. <!--============= Added by Liam Quinn, liam@htmlhelp.com ===============-->
  349. <!ENTITY quot    CDATA """   -- quotation mark = APL quote,
  350.                                     U+0022 ISOnum -->
  351. <!ENTITY amp     CDATA "&"   -- ampersand, U+0026 ISOnum -->
  352. <!ENTITY lt      CDATA "<"   -- less-than sign, U+003C ISOnum -->
  353. <!ENTITY gt      CDATA ">"   -- greater-than sign, U+003E ISOnum -->
  354. <!--====================================================================-->
  355.  
  356. <!ENTITY emsp   SDATA "[emsp  ]" -- em space -->
  357. <!ENTITY ensp   SDATA "[ensp  ]" -- en space (1/2-em) -->
  358. <!ENTITY mdash  SDATA "[ndash ]" -- em dash -->
  359. <!ENTITY ndash  SDATA "[ndash ]" -- en dash (1/2-em) -->
  360. <!ENTITY nbsp   SDATA "[nbsp  ]" -- non breaking space -->
  361. <!ENTITY shy    SDATA "[shy   ]" -- soft hyphen -->
  362. <!ENTITY copy   SDATA "[copy  ]" -- copyright sign -->
  363. <!ENTITY trade  SDATA "[trade ]" -- trade mark sign -->
  364. <!ENTITY reg    SDATA "[reg   ]" -- registered sign -->
  365.  
  366. <!--================ Entities for standard icons ==========================-->
  367.  
  368. <!-- a range of standard icons such as &folder; for use
  369.      in speeding up display of directory listings etc. -->
  370.  
  371. <!ENTITY % HTMLicons PUBLIC
  372.   "-//IETF//ENTITIES icons for HTML//EN">
  373. %HTMLicons;
  374.  
  375. <!--================ Entities for math symbols ============================-->
  376.  
  377. <!-- ISO subset chosen for use with the widely available Adobe math font -->
  378.  
  379. <!ENTITY % HTMLmath PUBLIC
  380.   "-//IETF//ENTITIES Math and Greek for HTML//EN">
  381. %HTMLmath;
  382.  
  383. <!--=================== Text Markup =======================================-->
  384.  
  385. <!ENTITY % font " U | S | TT | I | BIG | SMALL">
  386.  
  387. <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE">
  388.  
  389. <!ENTITY % misc "Q | LANG | AU | DFN | PERSON | ACRONYM | ABBREV | INS | DEL">
  390.  
  391. <!ENTITY % special "TAB | MATH | A | IMG | BR">
  392.  
  393. <!ENTITY % notmath "%font | %phrase | %special | %misc">
  394.  
  395. <!ENTITY % text "#PCDATA | SUB | SUP | B | %notmath">
  396.  
  397.  
  398. <!ENTITY % pre.exclusion "TAB|MATH|IMG|BIG|SMALL|SUB|SUP">
  399.  
  400. <!ELEMENT (%font|B|%phrase|%misc) - - (%text)+>
  401. <!ATTLIST (%font|B|%phrase|%misc) %attrs;>
  402.  
  403. <!-- Subscripts and superscripts. The ALIGN attribute is only used for math -->
  404.  
  405. <!ELEMENT (SUB|SUP) - - (%text)+>
  406. <!ATTLIST (SUB|SUP)
  407.         %attrs;
  408.         align (left|center|right) #IMPLIED
  409.         >
  410.  
  411. <!-- Forced line break -->
  412.  
  413. <!ELEMENT BR    - O EMPTY>
  414. <!ATTLIST BR
  415.         %attrs;
  416.         %needs; -- for control of text flow --
  417.         >
  418.  
  419. <!-- Named left, center and right tab stops (independent of '\t' char) -->
  420.  
  421. <!ELEMENT TAB - O EMPTY>
  422. <!ATTLIST TAB
  423.         id       ID       #IMPLIED  -- defines named tab stop --
  424.         indent   NUMBER   0         -- en units before new tab stop --
  425.         to       IDREF    #IMPLIED  -- jump to named tab stop --
  426.         align   (left|center|right|decimal) left
  427.         dp      CDATA     #IMPLIED  -- decimal point e.g. dp="," --
  428.         >
  429.  
  430. <!--================== Link Markup ========================================-->
  431.  
  432. <!--
  433.      With HTML 3.0 you can use ID attributes on most elements for named
  434.      link ends. The use of the NAME attribute on anchors is deprecated.
  435.  
  436.      Do we want to support arbitrary elements for link starts? This would
  437.      involve adding HREF and related attributes to most elements.
  438. -->
  439.  
  440. <![ %HTML.Deprecated [
  441.     <!ENTITY % linkName "name CDATA #IMPLIED -- named link end --">
  442. ]]>
  443.  
  444. <!ENTITY % linkName "">
  445.  
  446.  
  447. <!ENTITY % ToolBar "home|toc|index|glossary|copyright|
  448.                     up|previous|next|help|bookmark"
  449.  
  450.         -- LINK RELationship values which are used to create toolbar
  451.            buttons or menu items for navigation, where toc stands
  452.            for table of contents and bookmark provides for an open
  453.            ended set of links, i.e. you can use multiple bookmarks
  454.            for key entry points. Use the optional TITLE attribute
  455.            to override default names.
  456.         -->
  457.  
  458. <!ENTITY % linkType "NAME"
  459.         -- A definitive list will be specified at a later date.
  460.  
  461.            They are used
  462.  
  463.                 a) by stylesheets to control how collections of
  464.                    html nodes are rendered into printed documents
  465.  
  466.                 b) for document specific toolbars/menus when used
  467.                    with the LINK element in document head:
  468.  
  469.                     "home|toc|index|glossary|copyright|
  470.                            up|previous|next|help|bookmark"
  471.  
  472.                    where toc stands for table of contents and
  473.                    bookmark provides for an open ended set of links,
  474.                    i.e. you can use several bookmarks for key entry
  475.                    points. Use the optional TITLE attribute to
  476.                    override default names.
  477.  
  478.                 c) for hypertext paths or guided tours,
  479.                    with REL=NODE and REL=PATH. 
  480.  
  481.                 d) to make a link to a style sheet, e.g. rel=stylesheet
  482.                    (used only with the LINK element).
  483.                    
  484.                 e) to make a link to a separate banner, e.g. rel=banner
  485.                    (used only with the LINK element).
  486.         -->
  487.  
  488.  
  489. <!ENTITY % linkExtraAttributes -- URN moved to %url.link --
  490.        "rel %linkType #IMPLIED -- forward relationship type --
  491.         rev %linkType #IMPLIED -- reversed relationship type
  492.                                   to referent data --
  493.         title   CDATA #IMPLIED -- advisory only --
  494.         methods NAMES #IMPLIED -- supported public methods of the object:
  495.                                         TEXTSEARCH, GET, HEAD, ... --
  496.         ">
  497.  
  498. <![ %HTML.Deprecated [
  499.     <!ENTITY % A.content "(%heading|%text)+">
  500. ]]>
  501.  
  502. <!ENTITY % A.content   "(%text)+">
  503.  
  504. <!ELEMENT A     - - %A.content -(A)>
  505.  
  506. <!ATTLIST A
  507.         %attrs;
  508.         href   %URI;  #IMPLIED
  509.         %url.link;    -- standard link attributes --
  510.         %linkName;     -- name attribute is deprecated; use ID instead --
  511.         shape %SHAPE; #IMPLIED -- for shaped hotzones in FIGs --
  512.         %linkExtraAttributes;
  513.         >
  514.  
  515. <!--=================== Images ============================================-->
  516.  
  517. <!-- Desired widths are used for negotiating image size
  518.      with the module responsible for painting the image.
  519.      align=left or right cause image to float to margin
  520.      and for subsequent text to wrap around image -->
  521.  
  522. <!ELEMENT IMG    - O EMPTY --  Embedded image -->
  523. <!ATTLIST IMG
  524.         %attrs;
  525.         src  %URI;  #REQUIRED  -- URI of image to embed --
  526.         %url.link;             -- standard link attributes --
  527.         alt CDATA   #IMPLIED   -- for display in place of image --
  528.         align  (top|middle|bottom|left|right) top -- relative to baseline
  529.         --         width  NUMBER #IMPLIED -- desired width in en's or pixels --
  530.         height NUMBER #IMPLIED -- desired height in en's or pixels --
  531.         units  (en|pixels) pixels -- units for width and height --
  532.         ismap (ismap) #IMPLIED -- pass clicks to server --
  533.         >
  534.  
  535. <!--=================== Paragraphs=========================================-->
  536.  
  537. <!ELEMENT P     - O (%text)+>
  538. <!ATTLIST P
  539.         %attrs;
  540.         align  (left|center|right|justify) #IMPLIED
  541.         %needs; -- for control of text flow --
  542.         nowrap (nowrap) #IMPLIED -- disable wordwrap --
  543.         >
  544.  
  545. <!--=================== Headings, Titles, Sections ========================-->
  546.  
  547. <!ELEMENT HR    - O EMPTY -- customizable horizontal rule -->
  548. <!ATTLIST HR
  549.         %attrs;
  550.         src     %URI;   #IMPLIED -- URI of custom rule graphic --
  551.         %url.link;               -- standard link attributes --
  552.         %needs; -- for control of text flow --
  553.         >
  554.  
  555. <!--
  556.   Headers can be numbered, although this is a matter for style sheets.
  557.   The style sheet controls the numbering style:
  558.  
  559.      a) whether the parent numbering is inherited, e.g.  5.i.c
  560.         where 5 is the current sequence number for H1 headers, and
  561.         1 is the number for H2 headers and 3 for H3 headers.
  562.  
  563.      b) what style is used for current sequence number
  564.         e.g. arabic, upperalpha, loweralpha, upperroman, lowerroman
  565.         or a numbering scheme appropriate for the current language
  566.  
  567.   The skip attribute is used to skip over sequence numbers for items
  568.   which have been left out of the list, e.g. skip=3 advances the
  569.   sequence number past 3 omitted items. The seqnum sets the sequence
  570.   number to a specified value. Note that the style sheet may take
  571.   advantage of the sequence number for higher level headers.
  572.  
  573.   The dingbat or src attributes may be used to specify a bullet like
  574.   image to be placed adjacent to the header. Defining this in the
  575.   header element simplifies the document markup and avoids the need
  576.   to use the clear or needs attribute in the following element to
  577.   prevent it flowing around this image.
  578. -->
  579.  
  580. <!ELEMENT ( %heading )  - -  (%text;)+>
  581. <!ATTLIST ( %heading )
  582.         %attrs;
  583.         align  (left|center|right|justify) #IMPLIED
  584.         %needs; -- for control of text flow --
  585.         seqnum   NUMBER   #IMPLIED  -- starting sequence number --
  586.         skip     NUMBER   0         -- skip seq nums for missing items --
  587.         dingbat  ENTITY   #IMPLIED  -- dingbat entity from HTMLicons --
  588.         src      (%URI;)  #IMPLIED  -- bullet defined by graphic --
  589.         %url.link;                  -- standard link attributes --
  590.         nowrap   (nowrap)  #IMPLIED -- disable wordwrap --
  591.         >
  592.  
  593. <!ELEMENT TITLE - -  (#PCDATA)
  594.           -- The TITLE element is not considered part of the flow of text.
  595.              It should be displayed, for example as the page header or
  596.              window title.
  597.           -->
  598.  
  599. <!--=================== Text Flows ========================================-->
  600.  
  601. <!ENTITY % block
  602.      "P | %list | DL
  603.         | %preformatted
  604.         | %blockquote
  605.         | FORM | ISINDEX | FN
  606.         | TABLE | FIG | NOTE">
  607.  
  608. <!--
  609.   ((%block)* | (%text)*) would be much nicer as it would avoid the need
  610.   for a <P> tag when all you want is a few words of text. The problem
  611.   is that it also prevents: "<LI> <P>some text" since it forbids PCDATA
  612.   and hence the white space between the <LI> and the <P>.
  613. -->
  614.  
  615. <![ %HTML.Recommended [
  616.     <!ENTITY % flow "(%block)*">
  617. ]]>
  618.  
  619. <!ENTITY % flow "(%text | %block)*">
  620.  
  621. <!ELEMENT PRE - - (%text)* -(%pre.exclusion)>
  622.  
  623. <!ATTLIST PRE
  624.         %attrs;
  625.         width NUMBER #implied
  626.         %needs; -- for control of text flow --
  627.         >
  628.  
  629. <![ %HTML.Obsoleted [
  630.  
  631. <!ENTITY % literal "CDATA"
  632.         -- special non-conforming parsing mode where
  633.            the only markup signal is the end tag
  634.            in full. This will cause problems for
  635.            standard SGML tools!
  636.         -->
  637.  
  638. <!ELEMENT XMP - -  %literal>
  639. <!ELEMENT LISTING - -  %literal>
  640. <!ELEMENT PLAINTEXT - O %literal>
  641.  
  642. ]]>
  643.  
  644. <!--=================== Lists =============================================-->
  645.  
  646. <!ELEMENT DL    - -  (LH?, (DT|DD)+) -- this is perhaps too lax? -->
  647. <!ATTLIST DL
  648.         %attrs;
  649.         %needs; -- for control of text flow --
  650.         compact (compact) #IMPLIED -- more compact style --
  651.         >
  652.  
  653. <!ELEMENT DT    - O  (%text)+>
  654. <!ELEMENT DD    - O  %flow;>
  655. <!ATTLIST (DT|DD)
  656.         %attrs;
  657.         %needs; -- for control of text flow --
  658.         >
  659.  
  660.  
  661. <!ELEMENT (OL|UL) - -  (LH?, LI+) -- should we allow a list header ? -->
  662.  
  663. <!-- style sheet controls numbering style
  664.     a) whether the parent numbering is inherited, e.g.  5.1.c
  665.     b) what style is used for current sequence number
  666.         e.g. arabic, upperalpha, loweralpha, upperroman, lowerroman
  667.         or a numbering scheme for the current language
  668. -->
  669. <!ATTLIST OL
  670.         %attrs;
  671.         %needs; -- for control of text flow --
  672.         continue (continue)  #IMPLIED   -- don't restart sequence number --
  673.         seqnum    NUMBER     #IMPLIED   -- starting sequence number --
  674.         compact (compact)    #IMPLIED   -- reduced interitem spacing --
  675.         >
  676.  
  677. <!-- Unordered lists:
  678.  
  679.     o   single or multicolumn with
  680.         horizontal or vertical wrapping
  681.  
  682.     o   plain or bulletted list items
  683.  
  684.     o   bullets can be customised via:
  685.             - entities (dingbats in HTMLicons)
  686.             - external graphic via URL
  687.             - individual attributes on LI tags
  688. -->
  689. <!ATTLIST UL
  690.         %attrs;
  691.         %needs; -- for control of text flow --
  692.         wrap (vert|horiz|none) none -- multicolumn list style --
  693.         plain   (plain)  #IMPLIED   -- suppress bullets --
  694.         dingbat  ENTITY  #IMPLIED   -- dingbat entity from HTMLicons --
  695.         src     (%URI;)  #IMPLIED   -- bullet defined by graphic --
  696.         %url.link;                  -- standard link attributes --
  697.         compact (compact) #IMPLIED  -- reduced interitem spacing --
  698.         >
  699.  
  700. <!ELEMENT LH - O (%text;)+ -- list header -->
  701. <!ATTLIST LH %attrs;>
  702.  
  703. <!--
  704.     For unordered lists, you can override the standard bullet with
  705.     a custom graphic specified via a URI e.g. src="splash.gif" or
  706.     a reference to one of the HTMLicons graphics e.g. dingbat=folder
  707.  
  708.     The skip attribute is used with ordered lists to skip over sequence
  709.     numbers for items which have been left out of the list, e.g. skip=3
  710.     advances the sequence number past 3 omitted items.
  711. -->
  712.  
  713. <!ELEMENT LI - O %flow; -- list item -->
  714. <!ATTLIST LI
  715.         %attrs;
  716.         %needs; -- for control of text flow --
  717.         dingbat ENTITY #IMPLIED -- dingbat entity from HTMLicons --
  718.         src  (%URI;) #IMPLIED   -- custom bullet graphic --
  719.         %url.link;              -- standard link attributes --
  720.         skip NUMBER 0           -- skip seq nums for missing items --
  721.         >
  722.  
  723. <!-- DIR and MENU are now subsumed by UL with type=plain. Use the
  724.      wrap attribute to control wrapping style for multicolumn lists -->
  725.  
  726. <![ %HTML.Deprecated [
  727.     <!ELEMENT (DIR|MENU) - - (LI)+ -(%block)>
  728.     <!ATTLIST (DIR|MENU)
  729.         compact (compact) #IMPLIED>
  730. ]]>
  731.  
  732. <!--=================== Document Body =====================================-->
  733.  
  734. <![ %HTML.Recommended [
  735.         <!ENTITY % body.content "(DIV|%heading|%block|HR|ADDRESS)*"
  736.         -- <h1>Heading</h1>
  737.            <p>Text ...
  738.                 is preferred to
  739.            <h1>Heading</h1>
  740.            Text ...
  741.         -->
  742. ]]>
  743.  
  744. <!ENTITY % body.content "(DIV | %heading | %text | %block | HR | ADDRESS)*">
  745.  
  746. <!ELEMENT BODY O O  (BANNER?, BODYTEXT) +(SPOT)>
  747. <!ATTLIST BODY
  748.         %attrs;
  749.         background %URI; #IMPLIED  -- texture tile for document background --
  750.         >
  751.  
  752. <!ELEMENT BODYTEXT O O %body.content -- dummy element -->
  753.  
  754. <!-- 
  755.   The BANNER element is used for a banner section which appears at
  756.   the top of the window and doesn't scroll with window contents.
  757.   This can be used for corporate logos, copyright statements and
  758.   disclaimers, as well as customized navigation/search controls.
  759. -->
  760. <!ELEMENT BANNER - - %body.content>
  761. <!ATTLIST BANNER %attrs; >
  762.  
  763. <!-- SPOT is used to insert IDs at arbitrary places
  764.      e.g. for end points of a marked range (see RANGE) -->
  765. <!ELEMENT SPOT - O EMPTY>
  766. <!ATTLIST SPOT id ID #REQUIRED>
  767.  
  768. <!ELEMENT (%blockquote) - - (BODYTEXT, CREDIT?)>
  769. <!ATTLIST (%blockquote)
  770.         %attrs;
  771.         %needs; -- for control of text flow --
  772.         nowrap   (nowrap)  #IMPLIED -- disable wordwrap --
  773.         >
  774.  
  775. <!ENTITY % address.content "((%text;)* | P*)">
  776.  
  777. <!ELEMENT ADDRESS - - %address.content>
  778. <!ATTLIST ADDRESS
  779.         %attrs;
  780.         %needs; -- for control of text flow --
  781.         >
  782.         
  783. <!--
  784.   DIV can be used with the CLASS attribute to represent different
  785.   kinds of container, e.g. chapter, section, abstract, appendix.
  786. -->
  787.  
  788. <!ELEMENT DIV - - %body.content>
  789. <!ATTLIST DIV
  790.         %attrs;
  791.         %needs; -- for control of text flow --
  792.         align   (left|center|right) left -- alignment of following text --
  793.         nowrap   (nowrap)  #IMPLIED -- disable wordwrap --
  794.         >
  795.  
  796. <!--================ Forms ===============================================-->
  797.  
  798. <!--
  799.     As HTML 2.0 plus a few extensions:
  800.  
  801.         a)  A RANGE control which varies between pair of values
  802.             specified with the size attribute, e.g. SIZE="1, 10"
  803.  
  804.         b)  FILE widget for uploading one or more files to a server
  805.  
  806.         c)  SCRIBBLE on image widget that sends the "ink" to the server
  807.  
  808.         d)  SUBMIT/RESET buttons can now be customised with an image.
  809.             This subsumes the IMAGE type which is now deprecated.
  810.  
  811.         e)  Graphical SELECTion menus are now supported, using
  812.             the new SHAPE attribute on OPTION elements.
  813.  
  814.     Further extensions are in the pipeline (e.g. table entry,
  815.     multiple data formats for textarea fields and client-side
  816.     scripts with custom widgets) but will have to wait until
  817.     the backlog of implementation work diminishes.
  818. -->
  819.  
  820. <!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)>
  821. <!ATTLIST FORM
  822.         action %URI #REQUIRED -- server-side form handler --
  823.         method (%HTTP-Method) GET -- see HTTP specification --
  824.         enctype %Content-Type; "application/x-www-form-urlencoded"
  825.         script %URI #IMPLIED -- link to client-side script --
  826.         >
  827.  
  828. <![ %HTML.Deprecated [
  829.     <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT
  830.                    | RESET | RANGE | FILE | SCRIBBLE | HIDDEN | IMAGE)">
  831. ]]>
  832.  
  833. <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT
  834.                    | RESET | RANGE | FILE | SCRIBBLE | HIDDEN)">
  835.  
  836. <!ELEMENT INPUT - O EMPTY>
  837. <!ATTLIST INPUT
  838.         %attrs;
  839.         type %InputType TEXT
  840.         name  NAME  #IMPLIED       -- required for all but submit and reset --         
  841.         value CDATA #IMPLIED       -- required for radio buttons & checkboxes --
  842.         disabled (disabled) #IMPLIED -- read-only fields --
  843.         error CDATA #IMPLIED       -- why field is in error --
  844.         checked (checked) #IMPLIED -- for radio buttons and check boxes --
  845.         size NUMBER #IMPLIED       -- visible width of TEXT fields --
  846.         maxlength NUMBER #IMPLIED  -- max number of chars for TEXT fields --
  847.         min %REAL #IMPLIED         -- lower limit for RANGE fields --
  848.         max %REAL #IMPLIED         -- upper limit for RANGE fields --
  849.         accept CDATA #IMPLIED      -- list of MIME types for file fields --
  850.         src   %URI  #IMPLIED       -- for fields with background images --
  851.         %url.link;                 -- standard link attributes --
  852.         align  (top|middle|bottom|left|right) top
  853.         >
  854.  
  855. <!--
  856.   SRC attribute added for graphical selection menus
  857.   The WIDTH, HEIGHT and UNITS attributes apply to the
  858.   image specified by the SRC attribute.
  859.  -->
  860.  
  861. <!ELEMENT SELECT - - (OPTION+) -(INPUT|TEXTAREA|SELECT)>
  862. <!ATTLIST SELECT
  863.         %attrs;
  864.         name CDATA #REQUIRED
  865.         multiple (multiple) #IMPLIED
  866.         disabled (disabled) #IMPLIED -- read-only menu --
  867.         error CDATA #IMPLIED   -- why selections are in error --
  868.         src  %URI  #IMPLIED    -- for graphical selection menus --
  869.         %url.link;             -- standard link attributes --
  870.         width  NUMBER #IMPLIED -- desired width of in en's or pixels --
  871.         height NUMBER #IMPLIED -- desired height in en's or pixels --
  872.         units  (en|pixels) pixels -- units for width and height --
  873.         align  (top|middle|bottom|left|right) top
  874.         >
  875.  
  876. <!ELEMENT OPTION - O (#PCDATA)>
  877. <!ATTLIST OPTION
  878.         %attrs;
  879.         selected (selected) #IMPLIED
  880.         value  CDATA  #IMPLIED -- default to element content --
  881.         shape %SHAPE; #IMPLIED -- for graphical selection menus --
  882.         disabled (disabled) #IMPLIED -- unselectable option --
  883.         error CDATA #IMPLIED   -- why this choice is in error --
  884.         >
  885.  
  886. <!--
  887.   Multi-line text input field. align=left or right
  888.   causes the field to float to margin and for
  889.   subsequent text to wrap around the field.
  890. -->
  891.      
  892. <!ELEMENT TEXTAREA - - (#PCDATA) -(INPUT|TEXTAREA|SELECT)>
  893. <!ATTLIST TEXTAREA
  894.         %attrs;
  895.         name CDATA #REQUIRED
  896.         rows NUMBER #REQUIRED
  897.         cols NUMBER #REQUIRED
  898.         disabled (disabled) #IMPLIED -- read-only field --
  899.         error CDATA #IMPLIED         -- why field is in error --
  900.         align  (top|middle|bottom|left|right) top
  901.         >
  902.  
  903. <!--======================= Captions ======================================-->
  904.  
  905. <!ELEMENT CAPTION - - (%text;)+ -- table or figure caption -->
  906. <!ATTLIST CAPTION
  907.         %attrs;
  908.         align (top|bottom|left|right) #IMPLIED
  909.         >
  910. <!--======================= Tables ========================================-->
  911.  
  912. <!--
  913.     Tables and figures can be aligned in several ways:
  914.  
  915.     bleedleft   flush left with the left (window) border
  916.     left        flush left with the left text margin
  917.     center      centered (text flow is disabled for this mode)
  918.     right       flush right with the right text margin
  919.     bleedright  flush right with the right (window) border
  920.     justify     when applicable the table/figure should stretch
  921.                 to fill space between the text margins
  922.  
  923.     Note: text will flow around the table or figure if the browser
  924.     judges there is enough room and the alignment is not centered
  925.     or justified. The table or figure may itself be part of the
  926.     text flow around some earlier figure. You can in this case use
  927.     the clear or needs attributes to move the new table or figure
  928.     down the page beyond the obstructing earlier figure. Similarly,
  929.     you can use the clear or needs attributes with other elements
  930.     such as headers and lists to move them further down the page.
  931. -->
  932.  
  933. <!ENTITY % block.align
  934.         "align  (bleedleft|left|center|right|bleedright|justify) center">
  935.  
  936. <!--
  937.     The HTML 3.0 table model has been chosen for its simplicity
  938.     and the ease in writing filters from common DTP packages.
  939.  
  940.     By default the table is automatically sized according to the
  941.     cell contents and the current window size. Specifying the columns
  942.     widths using the colspec attribute allows browsers to start
  943.     displaying the table without having to wait for last row.
  944.  
  945.     The colspec attribute is a list of column widths and alignment
  946.     specifications. The columns are listed from left to right with
  947.     a capital letter followed by a number, e.g. COLSPEC="L20 C8 L40".
  948.     The letter is L for left, C for center, R for right alignment of
  949.     cell contents. J is for justification, when feasible, otherwise
  950.     this is treated in the same way as L for left alignment.
  951.     Column entries are delimited by one or more space characters.
  952.     
  953.     The number specifies the width in en's, pixels or as a
  954.     fractional value of the table width, as according to the
  955.     associated units attribute. This approach is more compact
  956.     than used with most SGML table models and chosen to simplify
  957.     hand entry. The width attribute allows you to specify the
  958.     width of the table in pixels, en units or as a percentage
  959.     of the space between the current left and right margins.
  960.  
  961.     To assist with rendering to speech, row and column headers
  962.     can be given short names using the AXIS attribute. The AXES
  963.     attribute is used to explicitly specify the row and column
  964.     names for use with each cell. Otherwise browsers can follow
  965.     up columns and left along rows (right for some languages)
  966.     to find the corresponding header cells.
  967.  
  968.     Table content model: Braille limits the width of tables,
  969.     placing severe limits on column widths. User agents need
  970.     to render big cells by moving the content to a note placed
  971.     before the table. The cell is then rendered as a link to
  972.     the corresponding note.
  973.  
  974.     To assist with formatting tables to paged media, authors
  975.     can differentiate leading and trailing rows that are to
  976.     be duplicated when splitting tables across page boundaries.
  977.     The recommended way is to subclass rows with the CLASS attribute
  978.     For example: <TR CLASS=Header>, <TR CLASS=Footer> are used for
  979.     header and footer rows. Paged browsers insert footer rows at
  980.     the bottom of the current page and header rows at the top of
  981.     the new page, followed by the remaining body rows.
  982. -->
  983.  
  984. <!ELEMENT TABLE - - (CAPTION?, TR*) -- mixed headers and data -->
  985. <!ATTLIST TABLE
  986.         %attrs;
  987.         %needs; -- for control of text flow --
  988.         border (border) #IMPLIED -- draw borders --
  989.         colspec CDATA   #IMPLIED -- column widths and alignment --
  990.         units  (en|pixels|relative) en -- units for column widths --
  991.         dp      CDATA   #IMPLIED -- decimal point e.g. dp="," --
  992.         width NUMBER    #IMPLIED -- absolute or percentage width --
  993.         %block.align;  -- horizontal alignment --
  994.         noflow (noflow) #IMPLIED -- noflow around table --
  995.         nowrap (nowrap) #IMPLIED -- don't wrap words --
  996.         >
  997.  
  998. <!ENTITY % cell "TH | TD">
  999. <!ENTITY % horiz.align "left|center|right|justify">
  1000. <!ENTITY % vert.align  "top|middle|bottom|baseline">
  1001.  
  1002. <!--
  1003.     Browsers should tolerate an omission of the first <TR>
  1004.     tag as it is implied by the context. Missing trailing
  1005.     <TR>s implied by rowspans should be ignored.
  1006.  
  1007.     The alignment attributes act as defaults for rows
  1008.     overriding the colspec attribute and being in turn
  1009.     overridden by alignment attributes on cell elements.
  1010.     Use valign=baseline when you want to ensure that text
  1011.     in different cells on the same row is aligned on the
  1012.     same baseline regardless of fonts. It only applies
  1013.     when the cells contain a single line of text.
  1014. -->
  1015.  
  1016. <!ELEMENT TR - O (%cell)* -- row container -->
  1017. <!ATTLIST TR
  1018.         %attrs;
  1019.         align  (%horiz.align) #IMPLIED -- horizontal alignment --
  1020.         valign (%vert.align)  top  -- vertical alignment --
  1021.         dp     CDATA     #IMPLIED  -- decimal point e.g. dp="," --
  1022.         nowrap (nowrap)  #IMPLIED  -- don't wrap words --
  1023.         >
  1024.  
  1025. <!--
  1026.     Note that table cells can include nested tables.
  1027.     Missing cells are considered to be empty, while
  1028.     missing rows should be ignored, i.e. if a cell
  1029.     spans a row and there are no further TR elements
  1030.     then the implied row should be ignored.
  1031. -->
  1032.  
  1033. <!ELEMENT (%cell) - O %body.content>
  1034. <!ATTLIST (%cell)
  1035.         %attrs;
  1036.         colspan NUMBER    1      -- columns spanned --
  1037.         rowspan NUMBER    1      -- rows spanned --
  1038.         align  (%horiz.align) #IMPLIED -- horizontal alignment --
  1039.         valign (%vert.align) top -- vertical alignment --
  1040.         dp      CDATA    #IMPLIED  -- decimal point e.g. dp="," --
  1041.         nowrap (nowrap)  #IMPLIED  -- don't wrap words --
  1042.         axis CDATA #IMPLIED -- axis name, defaults to element content --
  1043.         axes CDATA #IMPLIED -- comma separated list of axis names --
  1044.         >
  1045.  
  1046. <!--====================== Figures ========================================-->
  1047.  
  1048. <!--
  1049.   The element contains text for use in non-graphical displays. Note that
  1050.   you can use the shape attribute in anchors to specify hotzones on images.
  1051.   This provides for local processing of pointer clicks and a unified method
  1052.   for dealing with graphical and non-graphical displays.
  1053.  
  1054.   Text is flowed around figures when the figure is left or right aligned.
  1055.   You can request the browser to move down until there is enough room for
  1056.   the next element, see the CLEAR and NEED attributes (in %needs)
  1057.  
  1058.   Figures offer a path towards embedding arbitrary information formats
  1059.   via some kind of OLE/OpenDoc mechanism.
  1060. -->
  1061.  
  1062. <!ELEMENT FIG - - (OVERLAY*, CAPTION?, FIGTEXT, CREDIT?) -(FIG|IMG)>
  1063. <!ATTLIST FIG
  1064.         %attrs;
  1065.         %needs;                  -- for control of text flow --
  1066.         src  %URI;  #REQUIRED    -- URI of document to embed --
  1067.         %url.link;               -- standard link attributes --
  1068.         %block.align;            -- horizontal alignment --
  1069.         noflow (noflow) #IMPLIED -- noflow around figure --
  1070.         width  NUMBER #IMPLIED   -- desired width in units --
  1071.         height NUMBER #IMPLIED   -- desired height in units --
  1072.         units (en|pixels) pixels -- specifies units as en's or pixels --
  1073.         imagemap (%URI) #IMPLIED -- pass background clicks to server --
  1074.         >
  1075.         
  1076. <!ELEMENT FIGTEXT O O %body.content -- dummy element -->
  1077.  
  1078. <!--
  1079.     Figure overlays. When combined with local caching, overlays
  1080.     provide a cheap way of modifying a larger base image sent as
  1081.     part of a previous page.
  1082. -->
  1083.  
  1084. <!ELEMENT OVERLAY - O EMPTY -- image overlay -->
  1085. <!ATTLIST OVERLAY
  1086.         src  %URI;  #REQUIRED    -- URI of image overlay --
  1087.         %url.link;               -- standard link attributes --
  1088.         units (en|pixels) pixels -- specifies units as en's or pixels --
  1089.         x      NUMBER   0        -- offset from left in units --
  1090.         y      NUMBER   0        -- offset from top in units --
  1091.         width  NUMBER #IMPLIED   -- desired width in units --
  1092.         height NUMBER #IMPLIED   -- desired height in units --
  1093.         imagemap (%URI) #IMPLIED -- pass background clicks to server --
  1094.         >
  1095.  
  1096. <!ELEMENT CREDIT - - (%text;)* -- source of image -->
  1097. <!ATTLIST CREDIT
  1098.         %attrs;
  1099.         >
  1100.  
  1101. <!--======================== Notes ========================================-->
  1102.  
  1103. <!--
  1104. The NOTE element is used for admonishments. The CLASS attribute
  1105. is used to differentiate NOTE's, e.g. Note, Caution or Warning.
  1106. -->
  1107.  
  1108. <!ELEMENT NOTE - - %body.content; -- admonishment -->
  1109. <!ATTLIST NOTE
  1110.         %attrs;
  1111.         src %URI;   #IMPLIED  -- URI of custom graphic --
  1112.         %url.link;            -- standard link attributes --
  1113.         %needs; -- for control of text flow --
  1114.         >
  1115.  
  1116. <!--======================== Footnotes ====================================-->
  1117.  
  1118. <!--
  1119. Typically rendered as popup note. These elements are referenced
  1120. by hypertext links specified with the anchor element.
  1121. -->
  1122. <!ELEMENT FN - - %body.content;>
  1123. <!ATTLIST FN %attrs;>
  1124.  
  1125. <!--======================== Math  ========================================-->
  1126.  
  1127. <!-- Use     etc for greater control of spacing. -->
  1128.  
  1129. <!-- Subscripts and Superscripts
  1130.  
  1131.   <SUB> and <SUP> are used for subscripts and superscripts.
  1132.  
  1133.                                           i j
  1134.       X <SUP>i</SUP>Y<SUP>j</SUP>  is   X  Y
  1135.  
  1136.   i.e. the space following the X disambiguates the binding.
  1137.   The align attribute can be used for horizontal alignment,
  1138.   e.g. to explicitly place an index above an element:
  1139.                                               i
  1140.         X<sup align=center>i</sup>  produces  X
  1141.  
  1142. Short references are defined for superscripts, subscripts and boxes
  1143. to save typing when manually editing HTML math, e.g.
  1144.  
  1145.       x^2^    is mapped to   x<sup>2</sup>
  1146.       y_z_    is mapped to   y<sub>z</sub>
  1147.       {a+b}   is mapped to   <box>a + b</box>
  1148.  
  1149. Note that these only apply within the MATH element and can't be
  1150. used in normal text!
  1151. -->
  1152. <!ENTITY REF1   STARTTAG   "SUP">
  1153. <!ENTITY REF2   ENDTAG     "SUP">
  1154. <!ENTITY REF3   STARTTAG   "SUB">
  1155. <!ENTITY REF4   ENDTAG     "SUB">
  1156. <!ENTITY REF5   STARTTAG   "BOX">
  1157. <!ENTITY REF6   ENDTAG     "BOX">
  1158.  
  1159. <!USEMAP MAP1   MATH>
  1160. <!USEMAP MAP2   SUP>
  1161. <!USEMAP MAP3   SUB>
  1162. <!USEMAP MAP4   BOX>
  1163.  
  1164. <!SHORTREF MAP1 "^" REF1
  1165.                 "_" REF3
  1166.                 "{" REF5 >
  1167.  
  1168. <!SHORTREF MAP2 "^" REF2
  1169.                 "_" REF3
  1170.                 "{" REF5 >
  1171.  
  1172. <!SHORTREF MAP3 "_" REF4
  1173.                 "^" REF1
  1174.                 "{" REF5 >
  1175.  
  1176. <!SHORTREF MAP4 "}" REF6
  1177.                 "^" REF1
  1178.                 "_" REF3
  1179.                 "{" REF5 >
  1180.  
  1181. <!--
  1182.  The inclusion of %math and exclusion of %notmath is used here
  1183.  to alter the content model for the B, SUB and SUP elements,
  1184.  to limit them to formulae rather than general text elements.
  1185. -->
  1186.  
  1187. <!ENTITY % mathvec "VEC|BAR|DOT|DDOT|HAT|TILDE" -- common accents -->
  1188. <!ENTITY % mathface "B|T|BT" -- control of font face -->
  1189. <!ENTITY % math "BOX|ABOVE|BELOW|%mathvec|ROOT|SQRT|ARRAY|SUB|SUP|%mathface">
  1190. <!ENTITY % formula "#PCDATA|%math">
  1191.  
  1192. <!ELEMENT MATH - - (#PCDATA)* -(%notmath) +(%math)>
  1193. <!ATTLIST MATH
  1194.         id      ID      #IMPLIED
  1195.         class    NAMES   #IMPLIED -- e.g. class=chem -->
  1196.  
  1197. <!-- The BOX element acts as brackets. Delimiters are optional and
  1198.      stretch to match the height of the box. The OVER element is used
  1199.      when you want a line between numerator and denominator. This line
  1200.      is suppressed with the alternative ATOP element. CHOOSE acts like
  1201.      ATOP but adds enclosing round brackets as a convenience for binomial
  1202.      coefficients. Note the use of { and } as shorthand for <BOX> and
  1203.      </BOX> respectively:
  1204.  
  1205.                            1 + X
  1206.      {1 + X<OVER>Y}  is   _______
  1207.                              Y
  1208.  
  1209.                                  a + b
  1210.      {a + b<ATOP>c - d} is  
  1211.                                  c - d
  1212.  
  1213.      The delimiters are represented using the LEFT and RIGHT
  1214.      elements as in:
  1215.  
  1216.      {[<LEFT>x + y<RIGHT>]}   is   [ x + y ]
  1217.      {(<LEFT>a<RIGHT>]}       is   (a]
  1218.      {||<LEFT>a<RIGHT>||}     is   || a ||
  1219.  
  1220.      Use { and } for "{" and "}" respectively as
  1221.      these symbols are used as shorthand for BOX, e.g.
  1222.  
  1223.      {{<LEFT>a+b<RIGHT>}}  is  {a+b}
  1224.  
  1225.      You can stretch definite integrals to match the integrand, e.g.
  1226.  
  1227.      {∫<SUB>a</SUB><SUP>b</SUP><LEFT>{f(x)<over>1+x} dx}
  1228.  
  1229.             b
  1230.             /  f(x)
  1231.             | ----- dx
  1232.             / 1 + x
  1233.             a
  1234.  
  1235.      Note the complex content model for BOX is a work around
  1236.      for the absence of support for infix operators in SGML.
  1237.  
  1238.      You can get oversize delimiters with the SIZE attribute,
  1239.      for example <BOX SIZE=large>(<LEFT>...<RIGHT>)</BOX>
  1240.  
  1241.      Note that the names of common functions are recognized
  1242.      by the parser without the need to use "&" and ";" around
  1243.      them, e.g. int, sum, sin, cos, tan, ...
  1244. -->
  1245.  
  1246. <!ELEMENT BOX - - ((%formula)*, (LEFT, (%formula)*)?,
  1247.                    ((OVER|ATOP|CHOOSE), (%formula)*)?,
  1248.                    (RIGHT, (%formula)*)?)>
  1249. <!ATTLIST BOX
  1250.         size  (normal|medium|large|huge) normal -- oversize delims -->
  1251.  
  1252. <!ELEMENT (OVER|ATOP|CHOOSE|LEFT|RIGHT) - O EMPTY>
  1253.  
  1254. <!-- Horizontal line drawn ABOVE contents
  1255.      The symbol attribute allows authors to supply
  1256.      an entity name for an accent, arrow symbol etc.
  1257.      Generalisation of LaTeX's overline command.
  1258.      
  1259.      e.g. <above sym=ssmile>x</above>
  1260.      places an upwardly turning curve above the "x"
  1261.  -->
  1262.  
  1263. <!ELEMENT ABOVE - - (%formula)+>
  1264. <!ATTLIST ABOVE sym ENTITY #IMPLIED>
  1265.  
  1266. <!-- Horizontal line drawn BELOW contents
  1267.      The symbol attribute allows authors to 
  1268.      supply an entity name for an arrow symbol etc.
  1269.      Generalisation of LaTeX's underline command.
  1270.  -->
  1271.  
  1272. <!ELEMENT BELOW - - (%formula)+>
  1273. <!ATTLIST BELOW sym ENTITY #IMPLIED>
  1274.  
  1275. <!-- Convenience tags for common accents:
  1276.      vec, bar, dot, ddot, hat and tilde
  1277. -->
  1278.  
  1279. <!ELEMENT (%mathvec) - - (%formula)+>
  1280.  
  1281. <!--
  1282.   T and BT are used to designate terms which should
  1283.   be rendered in an upright font (& bold face for BT)
  1284. -->
  1285.  
  1286. <!ELEMENT (T|BT) - - (%formula)+>
  1287. <!ATTLIST (T|BT) class NAMES #IMPLIED>
  1288.  
  1289. <!-- Roots  e.g. <ROOT>3<OF>1+x</ROOT> -->
  1290.  
  1291. <!ELEMENT ROOT - - ((%formula)+, OF, (%formula)+)>
  1292. <!ELEMENT OF - O (%formula)* -- what the root applies to -->
  1293.  
  1294. <!ELEMENT SQRT - - (%formula)* -- square root convenience tag -->
  1295.  
  1296. <!-- LaTeX like arrays. The COLDEF attribute specifies
  1297.      a single capital letter for each column determining
  1298.      how the column should be aligned, e.g. coldef="CCC"
  1299.  
  1300.         "L"     left
  1301.         "C"     center
  1302.         "R"     right
  1303.         
  1304.      An optional separator letter can occur between columns
  1305.      and should be one of + - or =, e.g. "C+C+C+C=C".
  1306.      Whitespace within coldef is ignored. By default, the
  1307.      columns are all centered.
  1308.      
  1309.      The ALIGN attribute alters the vertical position of the
  1310.      array as compared with preceding and following expressions.
  1311.  
  1312.      Use LDELIM and RDELIM attributes for delimiter entities.
  1313.      When the LABELS attribute is present, the array is
  1314.      displayed with the first row and the first column as
  1315.      labels displaced from the other elements. In this case,
  1316.      the first element of the first row should normally be
  1317.      left blank.
  1318.  
  1319.      Use &vdots; &cdots; and &ddots; for vertical, horizontal
  1320.      and diagonal ellipsis dots. Use &dotfill; to fill an array
  1321.      cell with horizontal dots (e.g. for a full row).
  1322.      Note &ldots; places the dots on the baseline, while &cdots;
  1323.      places them higher up.
  1324. -->
  1325.  
  1326. <!ELEMENT ARRAY - - (ROW)+>
  1327. <!ATTLIST ARRAY
  1328.         align (top|middle|bottom) middle -- vertical alignment --
  1329.         coldef  CDATA   #IMPLIED  -- column alignment and separator --
  1330.         ldelim  CDATA   #IMPLIED  -- stretchy left delimiter --
  1331.         rdelim  CDATA   #IMPLIED  -- stretchy right delimiter --
  1332.         labels (labels) #IMPLIED  -- TeX's \bordermatrix style -->
  1333.  
  1334. <!ELEMENT ROW - O (ITEM)*>
  1335. <!ELEMENT ITEM - O (%formula)*>
  1336. <!ATTLIST ITEM
  1337.         align   CDATA  #IMPLIED  -- override coldef alignment --
  1338.         colspan NUMBER 1         -- merge columns as per TABLE --
  1339.         rowspan NUMBER 1         -- merge rows as per TABLE -->
  1340.  
  1341. <!--================ Document Head ========================================-->
  1342.  
  1343. <![ %HTML.Deprecated [
  1344.     <!ENTITY % head.content "TITLE & ISINDEX? & BASE? & STYLE?
  1345.                               & META* & LINK* & RANGE* & NEXTID?">
  1346. ]]>
  1347.  
  1348. <!ENTITY % head.nextid "">
  1349.  
  1350. <!ENTITY % head.content "TITLE & ISINDEX? & BASE? & STYLE?
  1351.                               & META* & LINK* & RANGE*">
  1352.  
  1353. <!ELEMENT HEAD O O  (%head.content)>
  1354.  
  1355. <!ELEMENT LINK - O EMPTY>
  1356. <!ATTLIST LINK
  1357.         href %URI #REQUIRED
  1358.         %linkExtraAttributes; >
  1359.         
  1360. <!ELEMENT RANGE - O EMPTY>
  1361. <!ATTLIST RANGE
  1362.         id    ID    #IMPLIED  -- for naming marked range --
  1363.         class NAMES #IMPLIED  -- for subclassing --
  1364.         from  IDREF #REQUIRED -- start of marked range --
  1365.         until IDREF #REQUIRED -- end of marked range --
  1366.         >
  1367.  
  1368. <!ELEMENT ISINDEX - O EMPTY>
  1369. <!ATTLIST ISINDEX
  1370.         href   %URI  #IMPLIED -- server handling queries --
  1371.         prompt CDATA #IMPLIED -- prompt message -->
  1372.  
  1373. <!--
  1374.     The BASE element gives the base URL for
  1375.     dereferencing relative URLs, e.g.
  1376.  
  1377.          <BASE href="http://foo.com/images">
  1378.          ...
  1379.          <IMG SRC="bar.gif">
  1380.  
  1381.     The image is deferenced to
  1382.  
  1383.          http://foo.com/images/bar.gif
  1384. -->
  1385.  
  1386. <!ELEMENT BASE - O EMPTY>
  1387. <!ATTLIST BASE
  1388.         id   ID    #IMPLIED
  1389.         href %URI; #REQUIRED
  1390.         >
  1391.  
  1392. <![ %HTML.Deprecated [
  1393.     <!ELEMENT NEXTID - O EMPTY>
  1394.     <!ATTLIST NEXTID N CDATA #REQUIRED>
  1395. ]]>
  1396.  
  1397. <!ELEMENT META - O EMPTY    -- Generic Metainformation -->
  1398. <!ATTLIST META
  1399.         http-equiv  NAME    #IMPLIED  -- HTTP response header name  --
  1400.         name        NAME    #IMPLIED  -- metainformation name       --
  1401.         content     CDATA   #REQUIRED -- associated information     --
  1402.         >
  1403.  
  1404. <!--
  1405.     A style sheet can be associated with the document using the
  1406.     LINK element, e.g. <LINK rel=style href="housestyle.dsssl">.
  1407.     Style overrides can be placed in the document head using the
  1408.     STYLE element, e.g.
  1409.  
  1410.         <style notation=dsssl-lite>
  1411.            dsss-lite stuff
  1412.         </style>
  1413.  
  1414.     Later on in the document you can use:
  1415.  
  1416.         <h2 class=bigcaps>Header with bigger than normal capitals</h2>
  1417.         <p class=abstract>A paragraph with a unique style of its own
  1418.         ...
  1419.     
  1420.     Statements in the given style notation 
  1421.         
  1422.     The tag names, class and id attributes are used in the style sheet
  1423.     notation to describe how to render matching elements.
  1424. -->
  1425.  
  1426. <!-- w3c-style removed from style-notations by Liam Quinn due
  1427.      to parsing errors in nsgmls -->
  1428.  
  1429. <!ENTITY % style-notations "dsssl-lite">
  1430. <!NOTATION dsssl-lite PUBLIC
  1431.       "ISO/IEC 10179:1995//NOTATION DSSSL Style Language//EN">
  1432.       
  1433. <!ELEMENT STYLE - O (#PCDATA)>
  1434. <!ATTLIST STYLE
  1435.     notation NOTATION (%style-notations;) #REQUIRED
  1436. >
  1437.  
  1438. <!--================ Document Structure ===================================-->
  1439.  
  1440. <!ENTITY % html.content "HEAD, BODY">
  1441.  
  1442. <!ELEMENT HTML O O  (%html.content)>
  1443. <!ENTITY % version.attr 'VERSION CDATA #FIXED "%HTML.Version;"'>
  1444.  
  1445. <!-- suggested roles are: TOC, DOC, DOCPART, HITLIST, DIALOG -->
  1446.  
  1447. <!ATTLIST HTML
  1448.         %version.attr;       -- report DTD version to application --
  1449.         urn   CDATA #IMPLIED -- universal resource name for this document --
  1450.         class NAMES #IMPLIED -- role of this document, eg table of contents --
  1451.         >
  1452.  
  1453. <!-- The END -->
  1454.