According to Hand, Nathan:
> I recently needed to process htdig results before sending them back to the
> user. The htdig template system wasn't flexible enough to do what I wanted
> (SQL queries on results). I originally modified the header/footer/results
> templates to generate quasi-XML output and wrapped that inside PHP but there
> were limitations there as well. The quasi-XML output didn't quite give me
> enough information.
> 
> So I've taken a stab at XML output for htdig. It's based on htsearch and
> works as a CGI. The output conforms to a DTD: I have included this DTD in
> the patch. Using this new CGI you can do something like this:
[snip]
> Would this xmlsearch CGI be useful as a contrib program to htdig? An XML-RPC
> version of xmlsearch is another possibility and my preferred option: the CGI
> is just a first stab. Either way, is there a standard HTDIG DTD and if not,
> is the one I have included in the patch a possible starting point?

Interesting, but it does introduce a lot of duplicate code, or almost
duplicate code, which would make maintenance a bit of a headache.  With
3.1.6 and 3.2.0b4 both in development, we already have a double effort
happening and we wouldn't want to make it a quadruple effort on the
search side of things.

I think a better approach might be to do all you can with templates in
htsearch, and add in any missing features right in htsearch (using
config attributes to enable them), rather than a completely separate
but mostly duplicated CGI program.  What is it that's missing from
htsearch right now anyway?  I've looked through your code but haven't
had enough time to study what it does that can't be done with templates.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to