Annotation of libwww/Library/src/HTMLPDTD.html, revision 2.8
2.7 frystyk 1: <HTML>
2: <HEAD>
3: <TITLE>The HTML PLUS DTD -- software interface in libwww</TITLE>
4: </HEAD>
5: <BODY>
6:
7: <H1>HTML Plus DTD - Software Interface</H1>
8:
9: <PRE>
10: /*
11: ** (c) COPYRIGHT CERN 1994.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
15:
16: SGML purists should excuse the use of the term "DTD" in this file to
17: represent DTD-related information which is not exactly a DTD
18: itself. The C modular structure doesn't work very well here, as the
19: dtd is partly in the .h and partly in the .c which are not very
20: independent. <EM>Tant pis!</EM> There are a couple of HTML-specific
21: utility routines also defined. <P>
22:
23: This module is a part of the <A
24: HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">
25: Library of Common Code</A>.
26:
2.6 timbl 27: <PRE>
28: #ifndef HTMLDTD_H
2.1 timbl 29: #define HTMLDTD_H
30:
2.8 ! roeber 31: #include "sysdep.h"
2.1 timbl 32: #include "HTUtils.h"
2.6 timbl 33: #include <A HREF="SGML.html" NAME="z3">"SGML.h"</A>
34:
35: </PRE><H2>Entity numbers</H2></BODY><BODY>
36: The entity names are defined in the C file. This gives the number of them.
37: </BODY><BODY><PRE>
38: #define HTML_ENTITIES 66
39:
2.1 timbl 40:
2.6 timbl 41:
42: </PRE></BODY><BODY><H2>Element Numbers</H2>Must Match all tables by element!
43: These include tables in <A HREF="HTMLPDTD.c" NAME="z1">HTMLPDTD.c</A> and code
44: in <A HREF="HTML.c" NAME="z0">HTML.c</A> .
45: <P>Differences from Internet Draft 00:
46: HTML, H7,PLAINTEXT LISTINGand XMP left in. <PRE>
47: typedef enum _HTMLElement {
2.1 timbl 48: HTML_A,
49: HTML_ABBREV,
50: HTML_ABSTRACT,
51: HTML_ACRONYM,
52: HTML_ADDED,
53: HTML_ADDRESS,
54: HTML_ARG,
55: HTML_B,
56: HTML_BASE,
57: HTML_BLOCKQUOTE,
58: HTML_BODY,
59: HTML_BOX,
60: HTML_BR,
61: HTML_BYLINE,
62: HTML_CAPTION,
63: HTML_CHANGED,
64: HTML_CITE,
65: HTML_CMD,
66: HTML_CODE,
67: HTML_COMMENT,
68: HTML_DD,
69: HTML_DFN,
70: HTML_DIR,
71: HTML_DL,
72: HTML_DT,
73: HTML_EM,
74: HTML_FIG,
75: HTML_FOOTNOTE,
76: HTML_FORM,
77: HTML_H1,
78: HTML_H2,
79: HTML_H3,
80: HTML_H4,
81: HTML_H5,
82: HTML_H6,
83: HTML_H7,
84: HTML_HEAD,
85: HTML_HR,
86: HTML_HTML,
87: HTML_HTMLPLUS,
88: HTML_I,
89: HTML_IMAGE,
90: HTML_IMG,
91: HTML_INPUT,
92: HTML_ISINDEX,
93: HTML_KBD,
94: HTML_L,
95: HTML_LI,
96: HTML_LINK,
97: HTML_LISTING,
98: HTML_LIT,
99: HTML_MARGIN,
100: HTML_MATH,
101: HTML_MENU,
102: HTML_NEXTID,
103: HTML_NOTE,
104: HTML_OL,
105: HTML_OPTION,
106: HTML_OVER,
107: HTML_P,
108: HTML_PERSON,
109: HTML_PLAINTEXT,
110: HTML_PRE,
111: HTML_Q,
112: HTML_QUOTE,
113: HTML_RENDER,
114: HTML_REMOVED,
115: HTML_S,
116: HTML_SAMP,
117: HTML_SELECT,
118: HTML_STRONG,
119: HTML_SUB,
120: HTML_SUP,
121: HTML_TAB,
122: HTML_TABLE,
123: HTML_TD,
124: HTML_TEXTAREA,
125: HTML_TH,
126: HTML_TITLE,
127: HTML_TR,
128: HTML_TT,
129: HTML_U,
130: HTML_UL,
131: HTML_VAR,
132: HTML_XMP }
133: HTMLElement;
134:
135: #define HTMLP_ELEMENTS 85
136:
2.6 timbl 137: </PRE><H2>Attribute numbers</H2>Identifier is
138: HTML_<element>_<attribute>. These must match the tables in <A
139: HREF="HTMLPDTD.c" NAME="z2">HTMLPDTD.c</A> ! <PRE>
140: #define HTML_A_EFFECT 0
2.1 timbl 141: #define HTML_A_HREF 1
142: #define HTML_A_ID 2
143: #define HTML_A_METHODS 3
144: #define HTML_A_NAME 4
145: #define HTML_A_PRINT 5
146: #define HTML_A_REL 6
147: #define HTML_A_REV 7
148: #define HTML_A_SHAPE 8
149: #define HTML_A_TITLE 9
150: #define HTML_A_ATTRIBUTES 10
151:
152: #define HTML_BASE_ATTRIBUTES 1
153: #define HTML_FORM_ATTRIBUTES 5
154:
155: #define HTML_FIG_ATTRIBUTES 6
156:
157: #define HTML_GEN_ATTRIBUTES 3
158:
159: #define HTML_HTMLPLUS_ATTRIBUTES 2
160:
161: #define HTML_IMAGE_ATTRIBUTES 5
162:
163: #define HTML_CHANGED_ATTRIBUTES 2
2.3 frystyk 164: #define HTML_DL_ATTRIBUTES 3
2.1 timbl 165:
166: #define DL_COMPACT 0
167:
168: #define HTML_IMG_ALIGN 0
169: #define HTML_IMG_ALT 1
170: #define HTML_IMG_ISMAP 2 /* Obsolete but supported */
171: #define HTML_IMG_SEETHRU 3
172:
173: #define HTML_IMG_SRC 4
174:
175: #define HTML_IMG_ATTRIBUTES 5
176:
2.2 timbl 177: #define HTML_INPUT_ALIGN 0
178: #define HTML_INPUT_CHECKED 1
179: #define HTML_INPUT_DISABLED 2
180: #define HTML_INPUT_ERROR 3
181: #define HTML_INPUT_MAX 4
182: #define HTML_INPUT_MIN 5
183: #define HTML_INPUT_NAME 6
184: #define HTML_INPUT_SIZE 7
185: #define HTML_INPUT_SRC 8
186: #define HTML_INPUT_TYPE 9
187: #define HTML_INPUT_VALUE 10
188: #define HTML_INPUT_ATTRIBUTES 11
2.1 timbl 189:
190: #define HTML_L_ATTRIBUTES 4
191:
192: #define HTML_LI_ATTRIBUTES 4
193: #define HTML_LIST_ATTRIBUTES 4
194:
195: #define HTML_LINK_ATTRIBUTES 5
196:
197: #define HTML_ID_ATTRIBUTE 1
198:
199: #define HTML_NEXTID_ATTRIBUTES 1
200: #define HTML_NEXTID_N 0
201:
202: #define HTML_NOTE_ATTRIBUTES 4
203:
204: #define HTML_OPTION_ATTRIBUTES 3
205:
206: /* #define HTML_PRE_WIDTH 0
207: #define HTML_PRE_ATTRIBUTES 1
208: */
209: #define HTML_RENDER_ATTRIBUTES 2
210:
211: #define HTML_SELECT_ATTRIBUTES 4
212: #define HTML_TAB_ATTRIBUTES 2
213: #define HTML_TABLE_ATTRIBUTES 4
214: #define HTML_TD_ATTRIBUTES 4
215:
216: #define HTML_TEXTAREA_ATTRIBUTES 6
217:
218: #define HTML_TH_ATTRIBUTES 4
219:
220: #define HTML_UL_ATTRIBUTES 6
221:
222: extern CONST SGML_dtd HTMLP_dtd;
223:
224:
2.6 timbl 225: </PRE><H2>Start anchor element</H2>It is kinda convenient to have a particular
226: routine for starting an anchor element,
227: as everything else for HTML is simple anyway. <H3>On entry</H3>targetstream
228: poinst to a structured stream object.<P>name and href point to attribute
229: strings or are NULL if the attribute is to be omitted. <PRE>
230: extern void HTStartAnchor PARAMS((
2.1 timbl 231: HTStructured * targetstream,
232: CONST char * name,
233: CONST char * href));
234:
2.6 timbl 235:
236: </PRE><H2>Put image element</H2>Hopefully as useful as HTStartAnchor. <H3>
237: On entry</H3>targetstream point to a structured stream object.<P>src,
238: alt and align are omitted if they are set to NULL. <PRE>
2.4 frystyk 239: extern void HTMLPutImg PARAMS((HTStructured *obj,
240: CONST char *src,
241: CONST char *alt,
242: CONST char *align));
2.1 timbl 243:
2.6 timbl 244: </PRE><H2>Specify next ID to be used</H2>This is another convenience routine,
245: for specifying the next ID to be used by an editor in the series z1. z2,...
246: <PRE>
247: extern void HTNextID PARAMS((HTStructured * targetStream,
2.5 timbl 248: CONST char * s));
2.1 timbl 249:
250: #endif /* HTMLDTD_H */
251:
2.6 timbl 252: </PRE>End of module definition </BODY></HTML>
Webmaster