<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<html>
<TITLE> Biblio </TITLE>
		<body>
		<h2>Ma bibliotheque</h2>
		<hr/>
		<h4>Magazines</h4>
		<table border="1">
			<tr bgcolor="#ffe4b5"> 
				<th align="left">Titre</th>
				<th align="left">Date de parution</th>
			</tr>
		   <xsl:for-each select="/BIBLIOTHEQUE/MAGAZINE">
			<tr>
				<td><xsl:value-of select="TITRE"/></td>
				<td><xsl:value-of select="DATEPARUTION"/></td>
			</tr>
		   </xsl:for-each>
		</table>
		<hr/>
		<h4>Romans</h4>
		<table border="1">
		<tr bgcolor="#ffe4b5">
			<th align="left">Titre</th>
			<th align="left">Auteur</th>
			<th align="left">Editeur</th>
			<th align="left">Année</th>
		</tr>
		    <xsl:for-each select="/BIBLIOTHEQUE/ROMAN">
			<tr>
				<td><xsl:value-of select="TITRE"/></td>
				<td><xsl:value-of select="AUTEUR"/></td>
				<td><xsl:value-of select="EDITEUR"/></td>
				<td><xsl:value-of select="ANNEE"/></td>
			</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>


