Bank Website using xml/xslt
Bank.htm
<html>
<head>
<title >
The British Bank
</title>
</head>
<body bgcolor="#00FFFF">
<h1 align="center">THE BRITISH BANK</h1>
<marquee behaviour="alternate" direction="left">Grow your Money</marquee>
<b>
<p align="center">
One of the oldest bank in Britain with a million customer, providing safe and<br>
Profiltable Banking.</p></b>
<a href="bank.xml">View our branches</a>
</body>
</html>
Bank.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="lib.xsl"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2010-12-19T18:51:39">
<lib>
<ID>1</ID>
<Branch_name>BB-HO</Branch_name>
<Location>Tambaram</Location>
<Manager>Santhanam</Manager>
</lib>
<lib>
<ID>2</ID>
<Branch_name>BB-EXT</Branch_name>
<Location>Velachery</Location>
<Manager>Karthi</Manager>
</lib>
</dataroot>
Bank.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" indent="yes"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>
<xsl:template match="//dataroot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<html>
<head>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html;charset=UTF-8"/>
<title>lib</title>
<style type="text/css"></style>
</head>
<body bgcolor="#ffFacd" link="#0c0000" vlink="#050000">
<h1 align="center">Branch List</h1>
<table border="1" bgcolor="#ffffff" cellspacing="0" cellpadding="0"
id="CTRL1">
<colgroup>
<col style="TEXT-ALIGN: right; WIDTH: 0.9375in"/>
<col style="WIDTH: 0.9375in"/>
<col style="WIDTH: 0.9375in"/>
<col style="WIDTH: 0.9375in"/>
<col style="WIDTH: 0.9375in"/>
</colgroup>
<tbody>
<tr>
<td>
<div align="center">
<strong>ID</strong>
</div>
</td>
<td>
<div align="center">
<strong>Branch Name</strong>
</div>
</td>
<td>
<div align="center">
<strong>Location</strong>
</div>
</td>
<td>
<div align="center">
<strong>Manager</strong>
</div>
</td>
</tr>
</tbody>
<tbody id="CTRL2">
<xsl:for-each select="lib">
<!-- Cache the current node incase the a field is
formatted -->
<tr>
<td>
<xsl:value-of select="ID"/>
</td>
<td>
<xsl:value-of
select="Branch_name"/>
</td>
<td>
<xsl:value-of
select="Location"/>
</td>
<td>
<xsl:value-of
select="Manager"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>