<?xml version="1.0" encoding="UTF-8"?><!-- DWXMLSource="vagts_assg_04b.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes" omit-xml-declaration="yes" method="html" encoding="UTF-8"/>
	
	<!-- root template; matches root element in the xml sheet -->
	<xsl:template match="country">
		<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<title>Karen Vagts: XML Portfolio - XSL Example No. 3</title>
				
				<style type="text/css" media="all">
				body {
	font: 12px Verdana, Arial, Helvetica, sans-serif;
	color: #333333;
	padding: 20px;
	border: thin solid #0000FF;
}
				h1 {
	font: bold 14pt Verdana, Arial, Helvetica, sans-serif;
	color: #0066CC;
}
				th {
	font: bold 12px Verdana, Arial, Helvetica, sans-serif;
	color: #666666;
	background: #CCCCCC;
	padding: 2px;
	border: 1px solid #666666;
	vertical-align:bottom;
}	
	td {
	font: 10px Verdana, Arial, Helvetica, sans-serif;
	padding: 2px;
	border: 1px solid #666666;
	vertical-align:top;
	
}

				</style>
		</head>
			<body>
				<!-- Specify the introductory text -->
				
				<h1><xsl:value-of select="spain/introduction"/></h1>
				<p>Date: <xsl:value-of select="spain/documentDate"/></p>
				
				<h2>Sample Data from the Gazetteer</h2>
				<xsl:apply-templates/>
			
	</body>
		</html>
		</xsl:template>
		<!-- End of root template -->
	<xsl:template match="communities">
		<xsl:for-each select="community">
		<ul>
			<li><strong>Community name:</strong>  <em><xsl:value-of select="communname"/></em><br />

			Official Capital: <xsl:value-of select="capitals/capitalofficial"/><br />
			Other capitals: <xsl:value-of select="capitals/capitalother"/><br />
			Provinces: <xsl:value-of select="provinces"/><br />
			Languages: <xsl:value-of select="languages"/><br />
			Statistics:<br />
				<ul><li>Population: <xsl:value-of select="statistics/population"/></li>
				<li>Area: <xsl:value-of select="statistics/area"/></li></ul>
			Geographic Location:
				<ul><li>Latitude: <xsl:value-of select="location/latitude"/></li>
				<li>Longitude: <xsl:value-of select="location/longitude"/></li></ul>
			International Region Code: <xsl:value-of select="isocode"/><br />
			<hr />

			</li>
		</ul>	
		</xsl:for-each>
		
	</xsl:template> 

</xsl:stylesheet>