iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning XML Course: Displaying XML into HTML - www.itechcollege.com XML Course: Displaying XML into HTML - www.itechcollege.com
Free Courses
HTML
JavaScript
CSS
ASP
PHP
JSP
C++
ASP.NET
SQL
AJAX
FTP
XML

courses > XML > Displaying XML into HTML

Displaying XML into HTML

To transform XML into HTML, you can use CSS, or XSLT. XSLT is the recommended style sheet language of XML. XSLT stands for "eXtensible Stylesheet Language Transformations". The below is an example of how to link an XML file to XSLT file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="gps_template.xsl"?>
<gps>
<item>
<name>TomTom XL 330S 4.3-Inch Touchscreen Traffic-Ready Portable GPS Navigator</name>
<price>$299.95</price>
<link>http://www.selectagps.com/TomTom-XL-330S-4-3-Inch-Touchscreen-Traffic-Ready-Portable-GPS-Navigator-Electronics--d_B0016ORQDI.html</link>
<description>
<![CDATA[An extra-wide touchscreen helps you find your way, worry-free. TomTom has the most accurate maps and with TomTom Map Share technology you can instantly modify street names, street direction, and POIs on your own device. The XL 330 is preloaded with millions of points of interest to enhance your traveling experience. The TomTom XL 330 is traffic-ready, so you can outsmart the traffic, wherever you go, and go confidently.]]>
</description>
</item>
</gps>

In the example above, the XSLT transformation is done by the browser, when the browser reads the XML file. Different browsers may produce different result when transforming XML with XSLT.

Using either CSS or XSLT for transforming XML into HTML is complicated. If you already know one of scripts, for example, Javascript, ASP, or PHP, you don't have to use CSS or XSLT for transforming XML into HTML. In the following chapters, we will discuss how to do it.



  Back to Index Page
 Next Page:  

XML Introduction
XML Format and Structure
XML Elements
XML Attributes
XML Syntax 1
XML Syntax 2
XML Naming Rules and Practices
XML Using CDATA for Dealing with HTML Tags
Displaying XML into HTML
XML Parser
XML DOM
XMLHttpRequest Object 1
XMLHttpRequest Object 2
XMLHttpRequest Object 3
Create an XML File From a Database 1
Create an XML File From a Database 2
Save XML File on Server


Online Education, Online Training for Your Job, Distance Education, E-learning Programs for Your Career!Online Colleges, Online Universities, E-learning & Distance Education for Your Career! Easy Job Training & Online Courses.


   Email A Friend  
 
Earn Online Degree
for Your Job
I found a job after I earned an online degree!
Online classes for finding a Job. Online College, Online University, Degrees, E-learning school, online certificate Earn your
online degree now!
Online Training
for Good Job
Why I work so hard but earn so little? Why I cannot find a high paying job?
Online training for a Good Jobs. Online Degree, E-learning school, online certificate Go to
online school now!

Copyright ©2024, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech