On Nov 28, Boyd Pearson wrote: > the template files i'm fine with the only non valid Xhtml is the non > closing option tags - those seem to be entirely out of the users control > unless i have missed something.
On Dec 3, Pete Prodoehl wrote: > Well, we had a mail disaster at work so I don't know if this made it to > the list... > > I managed to make htdig output valid XHTML 1.0 Transitional results just > by editing the templates. > > You may have to dig around a bit to find all the directives you need, > but it's possible. > > > Pete > > Boyd Pearson wrote: > > Has any one written a patch to make htdig output xhtml standard? Yes, as Boyd reported, the missing closing option tags in template variables like FORMAT, METHOD and SORT, and anything generated by build_select_lists, will not be valid xhtml. The other things I found that won't pass are: 1) <input ...> tags generated by build_select_lists don't currently end with "/>", 2) the <br> tag separating multiple excerpts in Display::buildExcerpts() should be <br/>, and 3) ditto for the <br> tag separating description strings in the DESCRIPTIONS template variable. As long as you don't use any of these, you should be able to get fully xhtml-compliant output just by editing your templates. If you need to use any of these features above, you'll need to edit htsearch/Display.cc to fix the generated tags. Can anyone think of a reason not to do this for all future ht://Dig distributions? Are there some older HTML parsers/browsers that would have problems with a tag like <br/>? -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ 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

