You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Fergus McMenemie <fe...@twig.me.uk> on 2009/02/27 12:10:47 UTC

passing parameters into the XSLTResponseWriter: particularly hostname

Hello all,

I was wondering if there was a way of passing parameters into 
the XSLTResponseWriter writer.

I always like the option of formatting my search results as an 
RSS feed. Users can therefore configure their phone, browser etc
to automatically redo a search every so often and have new items
in the result set highlighted to them.

However many RSS clients require links to the underlying content 
to be absolute. So I need to pass in the full hostname, of the
machine serving the results, to the transform generating my RSS
feed. How do I do this?

Regards Fergus
-- 

===============================================================
Fergus McMenemie               Email:fergus@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================

Re: passing parameters into the XSLTResponseWriter: particularly hostname

Posted by Fergus McMenemie <fe...@twig.me.uk>.
>: I was wondering if there was a way of passing parameters into 
>: the XSLTResponseWriter writer.
>
>I don't think there's anyway to pass input in the traditional <xsl:param> 
>sense, but you can set default/invariant params along with echoParams=all 
>to get the values you want into the XML doc itself where your stylesheet 
>has access to it.
>
>
>-Hoss

Doh! of course.

Thanks.
-- 

===============================================================
Fergus McMenemie               Email:fergus@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================

Re: passing parameters into the XSLTResponseWriter: particularly hostname

Posted by Chris Hostetter <ho...@fucit.org>.
: I was wondering if there was a way of passing parameters into 
: the XSLTResponseWriter writer.

I don't think there's anyway to pass input in the traditional <xsl:param> 
sense, but you can set default/invariant params along with echoParams=all 
to get the values you want into the XML doc itself where your stylesheet 
has access to it.


-Hoss