For demonstration purposes, we will create a simple search
engine in which XSLT is used to iterate through the XML file (data retrieved
from the database) to display the data based on the user entered criteria. It
consists of user information, such as First Name, Last Name, Email, etc. Also
we will give the user the ability to search in a specified category and in
which order the data should be displayed. This option is hidden by default; a
button is used to allow the user to specify more options to his or her search.
Throughout this article we have to complete the following
steps.
·
Create an XML document containing users' information.
·
Create an XSL file which will navigate through the XML document.
·
Write code behind to transform the XML into HTML.