W3C home > Mailing lists > Public > xml-dist-app@w3.org > June 2001

Re: Issue 25 Proposal

From: Jean-Jacques Moreau <moreau@crf.canon.fr>
Date: Tue, 12 Jun 2001 16:50:53 +0200
Message-ID: <3B262C4D.B4D15BF0@crf.canon.fr>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:01 GMT