- From: Jean-Jacques Moreau <moreau@crf.canon.fr>
- Date: Tue, 12 Jun 2001 16:50:53 +0200
- To: Jacek Kopecky <jacek@idoox.com>
- CC: Herve Ruellan <ruellan@crf.canon.fr>, xml-dist-app@w3.org
Jacek Kopecky wrote:
> Please, can you show me the specific problems created by
> separation of Headers and Body? [...]
I think it ultimately boils down to choosing between option A or B below.
A
=
Envelope process() {
Headers hs = headers();
Body b = body();
Trailers ts = trailers();
while (! hs.atEnd()) {
Header h = hs.next();
h.process(hs, b, ts);
}
b.process(hs, b, ts);
while (! ts.atEnd()) {
Trailer t = ts.next();
t.process(hs, b, ts);
}
}
B
=
Envelope process() {
Blocks bs = blocks();
while (! bs.atEnd()) {
Block b = bs.next();
b.process(bs);
}
}
Jean-Jacques.
Received on Tuesday, 12 June 2001 10:51:11 UTC