Transform XML into HTML Using XSLT
page 1 of 4
Published: 04 Jun 2007
Abstract
In this article Haissam Abdul Malak examines how to output an HTML page from an XML file using XSLT.
by Haissam Abdul Malak
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28675/ 537

Introduction

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.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 4 and 5 and type the answer here:

User Comments

Title: how to Write code behind to transform the XML into HTML.   
Name: Jagadeesh
Date: 5/29/2008 5:35:47 AM
Comment:
How to write code to convert from xml to html
Title: Article is very good but Not working for me.   
Name: Sushil Dhanuka
Date: 4/22/2008 8:20:44 AM
Comment:
Hi Haisaam,

This article is very good but somehow not working for me as I made small changes. I am loading this XSL and XML file directly in HTML using javascript. I do not get any search results.

If you can send me email where I can attach my XSL and HTML files.

It would be very helpful for me.

Thanks in advance

Kind Regards
Title: Good one to know XSLT   
Name: Anjaneya
Date: 2/12/2008 6:55:04 AM
Comment:
Good Article
Title: Prefix add in URl   
Name: Mukesh
Date: 12/27/2007 4:32:31 AM
Comment:
how to add the prefix http if it not added by user.
if user write google.com it convert to http://www.google.com
Title: Please help on xslt   
Name: Bao
Date: 12/7/2007 4:46:29 AM
Comment:
Hi Abdul Malak,

I have a question maybe you can help,

Is it possible to read from an HTML form (like the ones that you have on the internet to register to forums, etc) and yo save it into a xml file with XSLT by clicking on a button 'save'?

many thanks for your help !

Bao
Title: Very good.   
Name: Jignesh raval
Date: 11/27/2007 7:08:00 AM
Comment:
I have read your artical, you have explained in such a good manner, very nice and very usefull.

Thank you.

Jignesh Raval, India
Title: Beautiful   
Name: Guido
Date: 7/11/2007 2:26:38 PM
Comment:
Nice explanation. Hopefully I would be able to change it for my project
Title: Transform XML into HTML Using XSLT   
Name: chanchal choudhary
Date: 6/11/2007 12:46:33 AM
Comment:
Really good and complete help which satisfies its title completely
Amust read for people who are new to xml transform
Title: Re:Missing Information   
Name: Haissam Abdul Malak
Date: 6/4/2007 11:26:34 AM
Comment:
check the below link to download the project
http://authors.aspalliance.com/HabdulMalak/1296.zip

Regards,
Title: Missing Information   
Name: Jim Arthur
Date: 6/4/2007 9:45:25 AM
Comment:
From your article under Javascript section "To check how to embed JavaScript inside XSLT, please download the project file."
So, where is the download link?
Title: Nice one!   
Name: Bilal Haidar [MVP]
Date: 6/4/2007 9:21:40 AM
Comment:
Nice article as usual!
I am still waiting for the series ;)

Regards

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 9/7/2008 2:21:39 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search