Stream-based architectural processing of multiple groves at once

From owner-xml-dev@ic.ac.uk  Fri Oct  3 23:25:32 1997
Date: Sat, 04 Oct 1997 10:51:04 +0700
From: James Clark <jjc@jclark.com>
Subject: Re: AFs and the DPH

 -------------------------------------------------------------------

Paul Prescod wrote:

> Also it seems to me that in architectural forms you can *either* get a
> single architectural stream, as is the case in the output of Jade, or
> you can get multiple fully constructed groves (as in GroveMinder), but I
> wonder if it is possible to do stream-based architectural processing of
> multiple groves at once? In other words is there a way to build
> something like an ESIS that provides multiple groves at once and makes
> links between them? Could you comment on what this stream would look
> like? I think that it is admirable that archforms work in these two
> different modes, but I might like to take advantage of the best features
> of both modes at once -- access to all architectural "views" and
> stream-based processing. Is this feasible?

Yes, it's feasible, and the API to SP's architecture engine
(ArcEngine.h) already supports it.  You provide an ArcDirector that
returns an event handler for each "view" you are interested in
(including the original document).  For each potentially architectural
event (eg start element, data, end element), the architecture engine
will make a call on the event handler for each architecture for which
that event is architectural followed by a call on the event handler for
the original document, thus potentially allowing the event handler for
the original document access to all architectural views.  This approach
depends on the fact that an architecture engine never creates more than
one element in the architectural document for each element in the
original document.

James

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)