Colin Paul Adams <[EMAIL PROTECTED]> writes:

> >>>>> "Vadim" == Vadim Gritsenko <[EMAIL PROTECTED]> writes:
> 
>     >> and if so, how do I tell the file generator to use the custom
>     >> SourceResolver?
>     >> 
> 
>     Vadim> Why do you need "custom SourceResolver"??? Just use the
>     Vadim> regular one. See any of other source implementations as an
>     Vadim> example.
> 
> I've been looking at XMLDBSource and XMLDBSourceFactory.
> 
> I guess there must be some way that cocoon knows to associate the
> xmldb scheme with these, but I can't figure out what it is.
> Nor what a SourceFactory is for.

Yes, look into cocoon.xconf. There is a section 
"source-factories", which associates protocols with
SourceFactories. Whenever a source of certain
type is required, the coresponding's  SourceFactory
method getSource() is called by the SourceResolver.

Martin

Reply via email to