Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1354

Pass HTTP request parameters through to XSL scripts

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • search
    • None
    • Any JDK from 1.5 onward. Any OS. Uses standard XSLTC 'compiled'-only version of Apache Xalan distributed with the JRE.

    Description

      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.

      Attachments

        1. rss2.patch
          16 kB
          Lance Norskog

        Activity

          People

            Unassigned Unassigned
            lancenorskog Lance Norskog
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: