Hi List,

I want to make a user-request-parameter available till the end of the pipeline, so 
that I could
use it in the last transformer for displaying what the user requested for. The 
pipeline in my case 
looks something like this:

<map:match pattern="adh/user/search">
        <map:generate src="adh/resources/search.xml"/>
        <map:transform src="adh/styles/buildsearch.xsl">
                <map:parameter name="use-request-parameters" value="true"/>
        </map:transform>
        <map:transform type="sql">
                <map:parameter name="use-connection" value="portal"/>
        </map:transform>
        <map:transform src="adh/styles/builddocument.xsl">
                <map:parameter name="user-request-parameters" value="true"/>
        </map:transform>
        <map:transform type="cinclude"/>
        <map:select type="browser">
                <map:when test="explorer">
                        <map:transform src="adh/styles/search_html.xsl"/>
                </map:when>
                <map:when test="mozilla5">
                        <map:transform src="adh/styles/search_ns_html.xsl"/>
                </map:when>
                <map:otherwise>
                        <map:transform src="adh/styles/search_html.xsl"/>
                </map:otherwise>
        </map:select>
        <map:serialize type="html"/>
</map:match>
====================================================================================
I have this parameter available till the build-search.xsl, in my pipeline as seen 
below:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<!-- Make the request parameter available -->
<xsl:param name="keyword"/>

<xsl:template match="search">
        <results>
          <execute-query xmlns="http://apache.org/cocoon/SQL/2.0";>
           <query>
                SELECT uri from keyword_search_table where keyword = '<xsl:value-of 
select="$keyword"/>'
           </query>
          </execute-query>
        </results>

</xsl:template>

</xsl:stylesheet>

======================================================================================

Next in the pipeline is builddocument.xsl & then search_html.xsl/search_ns_html.xsl.

So my question is how do I make the parameter "keyword" (which holds the 
user-request-parameter)
available to the search_html.xsl transformer so that I could display it on the 
browser, specifying that
heres what the user looked for and heres the search results.

I hope I cleared my doubt, if not let me know ??

Regards
Sam

Reply via email to