[Zope] Indexing dtml/html files

Michel Pelletier michel@digicool.com
Thu, 09 Mar 2000 12:12:09 -0800


Anders Holmbech Nielsen wrote:
> 
> Hi,
> 
> Is it possible to use catalog to index ordinary html pages intelligent ?
> 
> If I have a html(dtml) file like:
> 
> <HTML>
> <p id=title>
> Are you Intelligent ?
> </p>
> <p id=author>
> A. Einstein
> </p>
> </HTML>
> 
> I would like to index the title and the author id's, for which I could search.
> 
> Is it possible ??

Yes, the Catalog can be used programatically from DTML and Python.  You
will have to implement your own parser (look at the standard htmllib in
python) that feeds the parsed attributes into the Catalog.

Does it do it out of the box?  No.

-Michel