Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 25361 invoked by uid 500); 5 Apr 2001 21:07:15 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 25344 invoked from network); 5 Apr 2001 21:07:14 -0000 Date: Thu, 05 Apr 2001 17:11:22 -0400 From: "peter.gershkovich" Subject: xsp-variables-parameters To: cocoon-users@xml.apache.org Message-id: <3ACCDF7A.2030503@yale.edu> MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------020808030208010108070106 X-Accept-Language: en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01 References: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --------------020808030208010108070106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I need to get the name of the file abc.xml dynamically in xsp. I am trying to do that via a template called "filename". Is there a way to send a parameter source to that template. ( String source = request.getRequestURI();) Or is it possible to assign it to a variable and then pass to the template (shown below). Please help. I am trying to solve this ... problem on my own for quite a while. source Peter --------------020808030208010108070106 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
I need to get the name of the file abc.xml dynamically in xsp.
I am trying to do that via a template called "filename".

Is there a way to send a parameter <xsp:expr>source</xsp:expr> to that template.
( String source = request.getRequestURI();)
Or is it possible to assign it to a variable and then pass to the template (shown below).

Please help. I am trying to solve this ... problem on my own for quite a while.

<xsl:variable name="uri-location">
<xsp:expr>source</xsp:expr>
</xsl:variable>
<!-- the above assigned a word source to the variable -->
        <xsl:call-template name="filename">
         <xsl:with-param name="x" select="$uri-location"/>
               </xsl:call-template>

Peter
--------------020808030208010108070106--