[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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@xxxxxxxxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: passing parameters to XSL file Date: Thu, 20 Jun 2002 12:57:36 +0530 _________________________________________________________________ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|