<?xml version="1.0"?>

<!-- Using for-each loop -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<!--================= root template =================-->
	<xsl:template match="/">
		<html>
		<head> 
		<title>for-each loop</title>
		</head> 
		<body bgcolor="white">

		<!--================= for each animal =================-->
		<xsl:for-each select="endangered_species/animal">
			<p align="center">
			<br/><font size="+3">
			<nobr><b>
				<xsl:value-of select="name[@language='English']"/>: 
			</b></nobr>
			<nobr><i>
				<xsl:value-of select="name[@language='Latin']"/>
			</i></nobr>
			</font></p>
			<p>The mighty <b> 
				<xsl:value-of select="name[@language='English']"/> 
			</b> faces numerous threats. For more information
			<a href="http://www.worldwildlife.org/"> click</a>
			</p><hr/>
		</xsl:for-each> 

		</body>
		</html>
	</xsl:template>



</xsl:stylesheet>