On Tue, 21 May 2002, Stephan Michels wrote:
> > > But on my way, I found the jakarta slide project. It seems to me very
> > > interesting. So I implement a first working draft for
> > > a "SlideSourceFactory", and a junit test case. It makes possible
> > > to handle document by revisions, and works with different stores.
> > >
> > > Example: slide://version/test?revision=1.1+username=guest
> > >
> > > It also implements the WriteableSource interface.
> > >
> > > If somebody is interested in, I could commit this things to bugzilla.
> >
> > :-D YEEEES! I looked in slide yesterday too, and this is way *proactive* ;-)
> >
> > I think this would be an excellent addition, and very useful with Forrest
> > too, send it in :-)
>
> Nice to hear, but I should you warn, my knowlege about slide is two days
> old. And took the factory to learn about the infrastructure of slide ;-)
>
> Some more explanations about this factory:
>
> 'slide://version/test' reads the file 'test' from the namespace 'version'
> with the highest revision. If you write this source, you will create a new
> revision of this document.
>
> 'slide://version/test?revision=1.1+user=root', this source read and write
> the exact revision of the document.
>
> The following entry in cocoon.xconf should work, but I haven't it yet
> tested.
>
> <source-factories>
> <component-instance
> class="org.apache.cocoon.components.source.SlideSourceFactory"
> name="slide">
> <domain-configuration>my-dir/Domain.xml</domain-configuration>
> </component-instance>
> Nicola Ken Barozzi wrote :
> Could you supply also a webapp sample?
>
> It's easy, look in the scratchpad/webapp/mount how it is done.
> This could get many trying it and getting involved.
>
> If I commit it as-is, we could miss some help.
I have now commited some examples. One Problem I have, is that the
ResourceReader use url-factory instead of source-factories, I think.
With this examples, you could browse via cocoon through the repository
http://localhost:8080/cocoon/mount/slide/browse/ownrepository/
Also you could access to the repository via WebDAV
http://localhost:8080/cocoon/webdav/
Perhaps, it is not the best way to run the WebDAVServlet in the same
container as cocoon, but I don't know how should I make the exampes
different.
Stephan Michels.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]