Doug Cutting wrote:
Michael Wechner wrote:
Doug Cutting commented on NUTCH-42: -----------------------------------
I prefer we have a servlet that generates only XML, and then generate HTML from this XML. Do you dislike that approach for some reason?
no, not at all. I much more prefer a servlet. I have a servlet which I use for a meta search engine and could change it for the purposes of Nutch.
It currently offers the following three variations:
1) "pure" XML (plus <?xml-stylesheet ... which might be executed on the client side)
That's currently implemented, without the <?xml-stylesheet.
you mean by src/java/org/apache/nutch/searcher/OpenSearchServlet.java ?
Sorry, didn't realize that you have done this already (whereas Eric said mentioned
something like this on the Lucene mailing list)
I think it would make sense to add <?xml-stylesheet, because XML parsers won't mind,
but it allows client side rendering by XSLT such as for instance
http://search.msn.ch/results.aspx?q=Nutch&format=rss&FORM=ZZRE
Also I think it would make sense to put a link within the search.jsp to the OpenSearchServlet
2) HTML, but which is generated out of the XML based on a server side XSLT
This we need to add. Most users of Nutch will probably tweak it, but a good example would be nice to have in SVN.
yes, that would be the idea that people can tweak it. Also the XSLT file name
could be made configurable within web.xml
3) div-like HTML with a CSS
This could also be generated server-side with XSLT, from the same XML, no?
yes, but I think it might make sense to "hardcode" this because of performance issues, because XSLT transformations (depending on the XSLT) can drag down the server
(of course one could cache the XSLT within memory, but nevertheless ...)
It's just another example, right?
to add it as another example as well would certainly make sense.
Just let me know if I can help on any of these issues or if you or anyone else has already started.
Michi
Doug
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
-- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED]
