In theory yes. What I like to preserve is the ability to "script" the adapter info. The script can be in the sitemap or cocoon.xconf. For the latest I did not see the ability to register there multi-item entity. All components registered there follow the pattern of one-to-one relationship between role and the implementation class. If it is a mechanism to register there multi-item role and the configuration - all registration parameters - are available to the items through configure() method maybe it is the way to avoid sitemap modifications.
Kinga > -----Original Message----- > From: giacomo [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 11:02 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Dispatcher/Adapter > > > On Thu, 7 Feb 2002, DZIEMBOWSKI,KINGA (HP-NewJersey,ex2) wrote: > > > Vadim, > > > > The proposal contains set of interfaces and abstractions. > The extensions > > build on top of it can choose the appropriate > implementation. In this > > example the xml document is processed by StreamGenerator, > then by the > > transformer implementing Dispatcher interface. This transformer is > > extracting specific part of the incoming document ( > scripted as a param in > > the sitemap )converting it to DOM. Then it dynamically > selects the adapter > > and delegates the further processing to it. The result of > the Adapter > > operation is returned to Transformer/Dispatcher and is > injected (streamed) > > into the flow of SAX event (processed document). Then xml > serializer is > > doing the rest. > > So why do you need to extend the sitemap with the Adaptor concept. I > seems to me you use them like ordinary Avalon Components. > Couldn't they > be places into cocoon.xconf instead of the sitemap.xmap? > > Giacomo > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]