You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2009/08/19 01:14:14 UTC

[jira] Commented: (SOLR-1354) Pass HTTP request parameters through to XSL scripts

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

Hoss Man commented on SOLR-1354:
--------------------------------

Lance: the topic of XSL params came up once upon a time, and before anyone ever got around to implementing it, someone pointed out that using echoParams you could get all of the params into the XML so that the template had access to them.

you've already written the code to convert params to xsl:params ... using echoParams still seems like it's more generally useful, because it can work with any param, and allows for multi-valued params as well (giving the tempalte the power to use the first, or all).

Is there any significant advantage you see to adding xsl:param support that echoParams *can't* handle?

> Pass 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.