Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 17976 invoked from network); 17 Jul 2006 18:46:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2006 18:46:23 -0000 Received: (qmail 63446 invoked by uid 500); 17 Jul 2006 18:46:18 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 63387 invoked by uid 500); 17 Jul 2006 18:46:18 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 63353 invoked by uid 99); 17 Jul 2006 18:46:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 11:46:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 11:46:16 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id B16C25B77E; Mon, 17 Jul 2006 11:45:49 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id A9A3D7F403 for ; Mon, 17 Jul 2006 11:45:49 -0700 (PDT) Date: Mon, 17 Jul 2006 11:45:49 -0700 (PDT) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: SOLR stylesheet In-Reply-To: Message-ID: References: <0E441808C874A643BDE192712931EB6851BEE8@EXCHVIC1.ffx.jfh.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : I believe I had posted the same message several months ago and was told the : stylesheet functionality was for internal use in a previous release and is : not "functional" now. not quite ... the "tabular.xsl" file that is commited in SVN is for an old XML format that Solr no longer supports -- we never got arround to making a new one that could deal with the current XML format. If you want to use XSLTs with Solr as is, you have to either put them in the admin directory of the WAR when building Solr, or configure your servlet container in some way such that they can be accessed by clients using the url solr/admin/yourname.xsl -- all the Solr code does is write an header using a relative URL out of the stylesheet param (take a look at the XMLWriter class to see what i mean) one of the things currently on the TaskList to make all types of "plugin" things easier -- including stylesheets. If anyone is interested in submitting a patch for this, I've been thinking that a better way for the stylesheet sstuff to work, would be for the requestHandler registration in the solrconfig to contain a mappping from short stylesheet names to fully qualified URIs, and then XMLWriter would lookup the value of hte stylesheet param in that Map to determine the header to output -- that way people could configure differnet request handlers with differnet supported stylesheets. Another possible approach, would be to add init params to queryResponseWriter so they could be configured there. if anyone is interested in purusing either of these options, step on over the the solr-dev list and we can spit ball them some more. -Hoss