lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Norskog (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1354) Experimental new feature: allow out-of-the-box apps by passing HTTP request parameters through to XSL scripts
Date Mon, 10 Aug 2009 00:16:14 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741157#action_12741157
] 

Lance Norskog commented on SOLR-1354:
-------------------------------------

This experiment has two aims:
1) It should be possible to send in an HTTP request that creates an RSS2.0 feed for any Solr
index.
2) The rss2.xsl script should give a handy starting point for other XSL scripts, giving an
easily altered style for XSL's weirdly limited tools.

Parameters are name 'tr.param='. This convention made sense as 'tr=' gives the name of the
XSL script.

There a few holes in the RSS 2.0 implementation. They are listed in the header text of rss2.xsl.
The RSS2.0 standard is from http://cyber.law.harvard.edu/rss/rss.html by Dave Winer. (Yeah,
yeah.) An ATOM 1.0 version is left as an exercise for the unwary.



> Experimental new feature: allow out-of-the-box apps by passing HTTP request parameters
through to XSL scripts
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1354
>                 URL: https://issues.apache.org/jira/browse/SOLR-1354
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>         Environment: Any JDK from 1.5 onward. Any OS. Uses standard XSLTC 'compiled'-only
version of Apache Xalan distributed with the JRE.
>            Reporter: Lance Norskog
>            Priority: Minor
>         Attachments: rss2.patch
>
>
> It is not possible to create a standard web application with the Solr distribution without
coding in XSL, Ruby, HTML/Javascript etc.
> This patch is an experiment that allows you to configure an RSS 2.0 feed through HTTP
parameters. To do this, it supplies:
> 1) a change to XSLTWriter.java to pass an HTTP parameter named 'tr.name' through as an
XSL parameter called 'name'. The XSL script must then declare 'name' as a global parameter.
> 2) example/solr/conf/xslt/rss2.xsl - a mostly complete implementation of RSS 2.0.
> 3) a sample <requestHandler> in example/solr/conf/solrconfig.xml which configures
solr/rss2 as an RSS feed for the sample electronics store in example/solr. This <requestHandler>
supplies all parameters for the RSS feed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message