[Run Sample]
Displaying XML documents in web pages is a task that web developers perform on a regular basis. Using the XML web server control in ASP.NET 2.0 makes displaying XML data enjoyable. You can easily load different XSLT style sheets to show the same XML file in DiffERENT WAYS.
This example uses a web page that contains both a DropDownList and an XML web server control to display an XML file (Authors.xml) using one of three different XSLT style sheets. When a selection is made from the DropDownList the SelectedIndexChanged event fires and the XML Control's TransformSource Property Is Set To The Proper Xslt Style Sheet for the SELECTED View. There Are Three Views to Choose from:
Authors Phone List Blue (Authors1.xslt) Authors Address List (Authors2.xslt) Authors Phone List Green (Authors3.xslt) All of the views display the Authors.xml file in a different format. The only difference between the two phone lists is .