Re: indexers

On Wed, 19 Apr 2000, Paul Lamb wrote:

> After looking at this for a couple of hours, I don't seem to find an answer.
> I want to setup an indexer so that _anything_ with the extension of "xml"
> gets sent to /servlet/cocoon; even if a file isn't associated with that
> resource. i.e., request is for "foo.xml" and there isn't a file on the
> server called "foo.xml", but I want this request to get to the cocoon
> servlet anyway. Presently, as long as there's a file called "foo.xml" it
> works; otherwise it's a 404 - File not found.

The only way to have a virtual object created by the indexer is to add it
in the "directories" section (yes, it is now well chosen), but then you
should have the complete name, it won't use any regex matching, another
way would be to create a new indexer that will act the way you want, like
we did for the ContentTypeIndexer, in charge of creating resources on PUT.

> Noticed the new docs on the website tonight, much improvement over previous.
Thanks! But there is still place for many many improvement in that area ;)
Regards,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    

Received on Wednesday, 19 April 2000 02:18:56 UTC