This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing parameters to XSL file
- From: Krishnam Raju <krishnamrajua at qatalystechnologies dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 20 Jun 2002 15:30:00 +0530
- Subject: RE: [xsl] passing parameters to XSL file
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thak u. I will try it.
-----Original Message-----
From: Vasu Chakkera [mailto:vasucv@hotmail.com]
Sent: Thursday, June 20, 2002 2:09 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] passing parameters to XSL file
Raju,
The following is how you do it..
make use of <xsl:param name = "whatevername">
The following code will help you
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="commandparam"/>
<xsl:template match="/">
This came from the commandline parameter :<xsl:value-of
select="$commandparam"/>
</xsl:template>
</xsl:stylesheet>
and pass the parameters through command line or in the Servlet through the
API.. The XSL Receives it..and you can process it in which ever way you
wanted to.
cheers!!
VAsu
>From: Krishnam Raju <krishnamrajua@qatalystechnologies.com>
>Reply-To: xsl-list@lists.mulberrytech.com
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] passing parameters to XSL file
>Date: Thu, 20 Jun 2002 12:57:36 +0530
>
>Hi all,
> I got a question.
> I want to get some data depending on the selection made in html
>file. The data is stored in an XML file. I parse this XML file using XSL. I
>submit this html file to a servlet passing the name value pairs.
> How to pass parameters to XSL file from servlets?
> How to read that parameter in XSL file.
>
>Regards,
>Krishnam Raju.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list