Annotation of libwww/Library/src/HTMLDTD.html, revision 2.9
2.9 ! timbl 1: <HTML>
! 2: <HEAD>
2.6 timbl 3: <TITLE>The HTML DTD -- software interface in libwww</TITLE>
2.9 ! timbl 4: <NEXTID N="z2">
! 5: </HEAD>
2.2 timbl 6: <BODY>
2.6 timbl 7: <H1>HTML DTD - Software Interface</H1>SGML purists should excuse the use
8: of the term "DTD" in this file to
9: represent DTD-related information
10: which is not exactly a DTD itself.<P>
11: The C modular structure doesn't work
12: very well here, as the dtd is partly
13: in the .h and partly in the .c which
14: are not very independent. Tant pis.
15: <PRE>#ifndef HTMLDTD_H
2.1 timbl 16: #define HTMLDTD_H
17:
2.2 timbl 18: #include "HTUtils.h"
2.1 timbl 19: #include "SGML.h"
20:
2.6 timbl 21: </PRE>
22: <H2>Element Numbers</H2>
23: <PRE>
24: </PRE>Must Match all tables by element!
2.9 ! timbl 25: These include tables in <A
! 26: NAME="z1" HREF="HTMLDTD.c">HTMLDTD.c</A>
2.7 timbl 27: and code in <A
2.9 ! timbl 28: NAME="z0" HREF="HTML.c">HTML.c</A> .
2.6 timbl 29: <PRE>typedef enum _HTMLElement {
2.7 timbl 30: HTML_A, HTML_ADDRESS,
2.8 timbl 31: HTML_B, HTML_BLOCKQUOTE, HTML_BODY,
2.7 timbl 32: HTML_CITE, HTML_CODE, HTML_COMMENT,
33: HTML_DD, HTML_DFN, HTML_DIR,
34: HTML_DL, HTML_DLC, HTML_DT,
35: HTML_EM,
2.8 timbl 36: HTML_HEAD,
2.1 timbl 37: HTML_H1, HTML_H2, HTML_H3,
38: HTML_H4, HTML_H5, HTML_H6, HTML_H7,
2.8 timbl 39: HTML_HTML,
2.7 timbl 40: HTML_I, HTML_IMG, HTML_ISINDEX,
41: HTML_KBD,
42: HTML_LI, HTML_LINK, HTML_LISTING,
2.1 timbl 43: HTML_NEXTID, HTML_MENU,
44: HTML_OL, HTML_P, HTML_PLAINTEXT, HTML_PRE,
2.7 timbl 45: HTML_SAMP, HTML_STRONG,
46: HTML_TITLE, HTML_TT,
47: HTML_U, HTML_UL,
48: HTML_VAR, HTML_XMP } HTMLElement;
2.1 timbl 49:
2.8 timbl 50: #define HTML_ELEMENTS 45
2.1 timbl 51:
2.6 timbl 52: </PRE>
53: <H2>Attribute numbers</H2>
54: <PRE>
55: </PRE>Identifier is HTML_<element>_<attribute>.
56: These must match the tables in HTML.c!
57: <PRE>#define HTML_A_HREF 0
2.1 timbl 58: #define HTML_A_NAME 1
2.9 ! timbl 59: #define HTML_A_REL 2
! 60: #define HTML_A_REV 3
! 61: #define HTML_A_TITLE 4
! 62: #define HTML_A_TYPE 5
! 63: #define HTML_A_URN 6
! 64: #define HTML_A_ATTRIBUTES 7
2.1 timbl 65:
66: #define DL_COMPACT 0
2.6 timbl 67:
68: #define HTML_IMG_SRC 0
2.1 timbl 69:
70: #define NEXTID_N 0
71:
72: extern CONST SGML_dtd HTML_dtd;
73:
2.2 timbl 74:
75: </PRE>
76: <H2>Start anchor element</H2>It is kinda convenient to have a
77: particulr routine for starting an
78: anchor element, as everything else
79: for HTML is simple anyway.
80: <H3>On entry</H3>targetstream poinst to a structured
81: stream object.<P>
82: name and href point to attribute
83: strings or are NULL if the attribute
84: is to be omitted.
85: <PRE>extern void HTStartAnchor PARAMS((
86: HTStructured * targetstream,
87: CONST char * name,
88: CONST char * href));
89:
90:
2.1 timbl 91: #endif /* HTMLDTD_H */
2.2 timbl 92:
2.9 ! timbl 93: </PRE>End of module definition</A></BODY>
! 94: </HTML>
Webmaster