According to Joachim Seibert: > > > Is it possible to wrap htsearch??? Ie > > Sure. See some examples in <http://www.htdig.org/files/contrib/wrappers/> > > as well as <http://www.devshed.com/Server_Side/PHP/Search_This> > > Has anybody thought about wrapping htsearch-results to XML? > Here ist an example of my "long" template: > > <hit anchor="$(ANCHOR)" last_mod="$(MODIFIED)" position="$(CURRENT)"> > <url>$(URL)</url> > <title>$(TITLE)</title> > <score>$(SCORE)</score> > <match_percent>$(PERCENT)</match_percent> > <hops>$(HOPCOUNT)</hops> > </hit> > > The Problem with XML and these results is, that all occurences of & > have to be transformed to & and there must not exist any <> in > the results. > This is the reason, why I left out the DESCRIPTION-field. > > Has anyone experiences with that?
You can use $&(DESCRIPTION) to get an SGML-encoded form of the variable. You should have a look at contrib/xmlsearch* which is bundled in the 3.1.6 snapshot in http://www.htdig.org/files/snapshots/ for an example of XML output from htsearch. -- 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-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

