This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all, My requirement is to dynamically send a query to XML file depends upon the user's selection and get the output. <result> <row> <uid>1</uid> <name>sham</name> </row> <row> <uid>2</uid> <name>guru</name> </row> </result> we are giving the option of getting the uid from the user. Assume the user enters the uid 1 and it should give the output "Sham". How to do this using XSL / JSP. Expecting your valuable reply in the near future. Thanks in advance. Jowsaki
You can pass uid as a parameter to your XSLT. How to do it depends on which XSLT processor you use, check documentation! Here is how you would do it with Xalan. Then you have to declare this parameter in your XSLT: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="uid" select="'default value'"/> And then you can use it like this (for example): <xsl:template match = "result/row[./uid=$uid">
[This message has been edited by Mapraputa Is (edited July 31, 2001).]