October 1, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

From XML Data to HTML Tables

  • September 15, 2000
  • By Richard G. Baldwin
  • Send Email »
  • More Articles »

The Output

If you load this XML file into your IE5 browser, you should see something very similar to the following in the browser window:

 
Title Author Price
Java R.Baldwin $9.95
Python R.Baldwin $15.42
XML R.Baldwin $19.60

So there you have it. The use of an XSLT file to transform the contents of a simple XML database into an HTML table.

Complete Program Listings

A complete listing of the XML file is shown below, followed by a complete listing of the XSLT file. Copyright 2000, Richard G. Baldwin. Reproduction in whole or in part in any form or medium without express written permission from Richard Baldwin is prohibited.

XML
 
 

 
 

 
Java 
R.Baldwin 
$9.95 
 

 
Python 
R.Baldwin 
$15.42 
 

 
XML 
R.Baldwin 
$19.60 
 

 
XSLT

 
 
 

 

 
 

 

 
Title Author Price

About the author: Richard Baldwin is a college professor and private consultant whose primary focus is a combination of Java and XML. In addition to the many platform-independent benefits of Java applications, he believes that a combination of Java and XML will become the primary driving force in the delivery of structured information on the Web.

Richard has participated in numerous consulting projects involving Java, XML, or a combination of the two. He frequently provides onsite Java and/or XML training at the high-tech companies located in and around Austin, Texas. He is the author of Baldwin's Java Programming Tutorials, which has gained a worldwide following among experienced and aspiring Java programmers. He has also published articles on Java Programming in Java Pro magazine.

Richard holds an MSEE degree from Southern Methodist University and has many years of experience in the application of computer technology to real-world problems.





Page 3 of 3



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel