W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1996

Upgrade of W3C Reference Library

From: Markku Savela <msa@msa.tte.vtt.fi>
Date: Tue, 13 Feb 1996 16:00:12 +0200 (EET)
Message-Id: <199602131400.QAA00169@msa.tte.vtt.fi>
To: www-lib@w3.org
I updated to the library 4.0D, and again got lost with my converters.

With 4.0B, the following set

	HTConversion_add(conv,"text/*","*/*", TextObject, 1.0,0.0,0.0);
	HTConversion_add(conv,"image/*","*/*", ImageObject, 1.0,0.0,0.0);
	HTConversion_add(conv,"message/rfc822","*/*",
			 HTMIMEConvert,1.0,0.0,0.0);
	HTConversion_add(conv,"text/html","*/*", HtmlObject, 1.0,0.0,0.0);

got me a call to HtmlObject for "text/html".

Now, the *same* code linked against the 4.0D library gives from the
same document a call to TextObject (and when I print the
input_format->name, it is "text/x-http"). What changed? Why this
happens?

The new HTLine.c seems to add a new thing, what was not there before

 HTConversion_add(conv,"text/x-http","*/*",HTTPStatus_new,1.0, 0.0, 0.0);

This is now required for my scheme to work? Because, when I added
this, the program started to work again.

However, I would like to know why. What should I read to get a better
idea what happens with these conversions (something that would
describe what the matching rules are, how the parameters of the
HTConversion_add are actually used?)

--
Markku Savela (msa@hemuli.tte.vtt.fi),     Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/
Received on Tuesday, 13 February 1996 09:03:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT