[ http://issues.apache.org/jira/browse/NUTCH-42?page=comments#action_63257 ] Jack Tang commented on NUTCH-42: --------------------------------
Hi Doug I have finished converting xml to html using xslt. Here is how-to: 1. update OpenSearchServlet.java. I added xslt transfomer into it and replaced /base + "search.jsp"/ with requestUrl. Also, I try to implement pagination. 2. add StylesheetCache.java under package org.apache.nutch.util 3. add default.xslt under WEB-INF/xslt/ dir. Or you can config it in nutch-default.xml like this: <property> <name>webui.xslt</name> <value>WEB-INF/xslt/default.xslt</value> <description>the location of xslt file</description> </property> ------------------------------------------------ And I think we should talk about pagination again. It is hard to implement pagination using xslt when NutchRss only provides <nutch:nextPage> data. Yep, maybe I am not much familiar with xslt. In my idea, the pagination in NutchRss should like this: <nutch:pagination> <nutch:page pageNo="1">http://..../opensearch?...</nutch:page> <nutch:page pageNo="2">http://..../opensearch?...</nutch:page> <nutch:page pageNo="3">http://..../opensearch?...</nutch:page> <nutch:page pageNo="4">http://..../opensearch?...</nutch:page> </nutch:pagination> Then, I get the pagination via <xsl:for-each>. If you agree with this, I will go ahead. Comments? > enhance search.jsp such that it can also returns XML > ---------------------------------------------------- > > Key: NUTCH-42 > URL: http://issues.apache.org/jira/browse/NUTCH-42 > Project: Nutch > Type: Wish > Components: web gui > Reporter: Michael Wechner > Priority: Trivial > Attachments: search.jsp.diff, search.jsp.diff > > Enhance search.jsp such that by specifying a parameter format=xml the JSP > will return an XML, whereas if no format is being specified then it will > return HTML -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
