Annotation of libwww/Library/src/HTHInit.html, revision 2.5
2.1 frystyk 1: <HTML>
2: <HEAD>
2.2 frystyk 3: <!-- Changed by: Henrik Frystyk Nielsen, 14-Jun-1996 -->
2.3 frystyk 4: <TITLE>W3C Sample Code Library libwww Default HTML Parser Initialization</TITLE>
2.1 frystyk 5: </HEAD>
6: <BODY>
7: <H1>
8: Default HTML Parser Initialization Methods
9: </H1>
10: <PRE>
11: /*
12: ** (c) COPYRIGHT MIT 1995.
13: ** Please first read the full copyright statement in the file COPYRIGH.
14: */
15: </PRE>
16: <P>
17: As mentioned in the <A HREF="../User/Architecture/">Library Architecture</A>,
18: libwww consists of a small core and a large set of hooks for adding
19: functionality. By itself, the core it not capable of performing any Web related
20: tasks like accessing a HTTP server or parsing a HTML document. All this
21: functionality must be registered by the application. This way, the core of
22: libwww is kept application independent and can be used as the basic building
23: block for any kind of Web application. The Library comes with a large set
24: of default functions, for example for accessing HTTP and FTP servers, parsing
25: <A HREF="http://info.internet.isi.edu:80/in-notes/rfc/files/rfc822.txt">RFC
26: 822</A> headers etc. This module helps the application programmer setting
27: up the <B>HTML parser</B>, but it is important to note that none of it is
28: <I>required</I> in order to use the Library.
29: <P>
30: This module is implemented by <A HREF="HTHInit.c">HTInit.c</A>, and it is
2.4 frystyk 31: a part of the <A HREF="http://www.w3.org/Library/">W3C Sample Code
2.1 frystyk 32: Library</A>. You can also have a look at the other
33: <A HREF="WWWInit.html">Initialization modules</A>.
34: <PRE>
2.2 frystyk 35: #ifndef HTHINIT_H
36: #define HTHINIT_H
2.1 frystyk 37: #include "WWWLib.h"
2.5 ! vbancrof 38:
! 39: #ifdef __cplusplus
! 40: extern "C" {
! 41: #endif
2.1 frystyk 42: </PRE>
43: <H2>
44: Default HTML Parsers
45: </H2>
46: <P>
47: The <EM>Converters</EM> are used to convert a media type to another media
48: type, or to present it on screen. This is a part of the stream stack algorithm.
49: The Presenters are also used in the stream stack, but are initialized separately.
50: <PRE>
51: #include "HTML.h" /* Uses HTML/HText interface */
52: #include "HTPlain.h" /* Uses HTML/HText interface */
53:
2.2 frystyk 54: #include "HTTeXGen.h"
55: #include "HTMLGen.h"
56:
2.1 frystyk 57: extern void HTMLInit (HTList * conversions);
58:
59: </PRE>
2.5 ! vbancrof 60: <PRE>
! 61: #ifdef __cplusplus
! 62: }
! 63: #endif
! 64:
! 65: #endif /* HTHINIT_H */
2.1 frystyk 66: </PRE>
67: <P>
68: <HR>
69: <ADDRESS>
2.5 ! vbancrof 70: @(#) $Id: HTHInit.html,v 2.4 1998/05/14 02:10:31 frystyk Exp $
2.1 frystyk 71: </ADDRESS>
72: </BODY></HTML>
Webmaster