<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns="http://www.w3.org/1999/xhtml">

<xsl:output method="xml" indent="yes" 
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />

	<xsl:template match="opml">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it" dir="ltr">
			<head>
				<title>Black Bird | I miei blog preferiti</title>
				<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
				<meta http-equiv="Content-Language" content="it" />
				
				<meta http-equiv="author" content="Michele Ferretti" />
				<meta http-equiv="description" content="Sito personale di Michele Ferretti, programmazione, linux, mac" />
				<meta http-equiv="keywords" content="michele, ferretti, orvieto, programmatore, programmazione, black.bird, black bird, python, objective-c, cocoa, linux, mac, macintosh" />
				
				
				<meta name="MSSmartTagsPreventParsing" content="true" />
				<meta name="robots" content="all" />
				
				<link rel="shortcut icon" href="/favicon.ico" />
				
				<link rel="home" href="/" title="Home" />
				<link rel="author" href="/chisono" title="Autore" />
				<link rel="help" href="/infosito" title="Info sito" />
				<link rev="made" href="mailto:&#98;&#108;&#97;&#99;&#107;&#46;&#98;&#105;&#114;&#100;&#64;&#116;&#105;&#115;&#99;&#97;&#108;&#105;&#46;&#105;&#116;" />
				
				<link rel="alternate" type="application/rss+xml" href="/feed/rss2" title="RSS feed blog" />
				<link rel="alternate" type="application/atom+xml" href="/feed/atom" title="Atom feed blog" />
				<link rel="alternate" type="application/rss+xml" href="/programmazione/progetti/rss" title="RSS feed progetti" />
				
				<xsl:for-each select="body/outline//outline">
					<xsl:sort select="@title"/>
					<xsl:call-template name="single-feed-head"/>
				</xsl:for-each>				
				
				<link rel="stylesheet" type="text/css" href="/css/screen.css" media="screen" />
				<link rel="stylesheet" type="text/css" href="/css/print.css" media="print" />
				
				<style type="text/css" media="screen">@import "/css/screen.css";</style>
				<style type="text/css" media="print">@import "/css/print.css";</style>
			</head>
			<body>
				<div id="generale">
					<div id="testa" onclick="location.href='/';" title="Link alla home page"><div id="menu"><ul><li><a href="/chisono" accesskey="c" title="Informazioni sull'autore di questo sito." tabindex="" class="menuitem primo">Chi sono</a></li><li><a href="/programmazione" accesskey="p" title="Linguaggi di programmazione, software scaricabile ec..." tabindex="1" class="menuitem">Programmazione</a></li><li><a href="/linux" accesskey="x" title="Il grande sistema operativo libero !" tabindex="2" class="menuitem">Linux</a></li><li><a href="/mac" accesskey="M" title="Il meraviglioso mondo della mela" tabindex="3" class="menuitem">Mac</a></li><li><a href="/setiathome" accesskey="s" title="Il famoso progetto di ricerca di vita extraterrestre." tabindex="4" class="menuitem">SETI@Home</a></li><li><a href="/foto" accesskey="f" title="Le mie foto" tabindex="5" class="menuitem">Foto</a></li><li><a href="/links" accesskey="l" title="" tabindex="6" class="menuitem">Links</a></li></ul></div></div>	
					<div id="middle">
						<div id="centro">
							<div id="contenuto">
							<div id="tracciamento"><a href="/">Home</a></div>
			
							<h1>I miei blog preferiti</h1>
							<ul>
								<xsl:for-each select="body/outline//outline">
									<xsl:sort select="@title"/>
									<xsl:call-template name="single-feed-body"/>
								</xsl:for-each>
							</ul>
							
							<p>Questa pagina &#232; stata generata dinamicamente partendo da file OPML a cui &#232; stato applicato un file <a href="xsl/opml.xsl" title="Scarica il file XSLT">XSLT</a>.<br />Il file OPML contiene l'intera lista dei blog da me iscritti su <a href="http://www.bloglines.com" title="Vai al sito Bloglines">Bloglines.com</a>.</p>
							
							<p>Ultimo aggiornamento: <em><xsl:value-of select="head/dateCreated" /></em></p>
							</div>
						</div>
					</div>
					<div id="footer"><address>&#169; 2000-2005 by <a href="mailto:&#98;&#108;&#97;&#99;&#107;&#46;&#98;&#105;&#114;&#100;&#64;&#116;&#105;&#115;&#99;&#97;&#108;&#105;&#46;&#105;&#116;" title="scrivimi...">Michele Ferretti</a> - <a href="/infosito" title="Informazioni tecniche su questo sito">Info</a></address></div>
				</div>
			</body></html>
	</xsl:template>
	
	<!-- scrive un singolo elemento nell'elenco puntato centrale -->
	<xsl:template name="single-feed-body">
		<xsl:element name="li" xmlns="http://www.w3.org/1999/xhtml">

			<xsl:element name="a">
				<xsl:attribute name="href">http://www.bloglines.com/sub/<xsl:apply-templates select="@xmlUrl"/></xsl:attribute>
				<xsl:attribute name="title">Sottoscrivi con Bloglines "<xsl:apply-templates select="@title"/>"</xsl:attribute>
				<xsl:element name="img">
					<xsl:attribute name="src">http://www.bloglines.com/images/sub_modern5.gif</xsl:attribute>
					<xsl:attribute name="alt">Sottoscrivi con Bloglines</xsl:attribute>
					<xsl:attribute name="align">absmiddle</xsl:attribute>
				</xsl:element>
			</xsl:element>

			<xsl:text> </xsl:text>
			
			<xsl:element name="a">
				<xsl:attribute name="href"><xsl:apply-templates select="@xmlUrl"/></xsl:attribute>
				<xsl:attribute name="title"><xsl:apply-templates select="@title"/></xsl:attribute>
				<xsl:element name="img">
					<xsl:attribute name="src">/images/rss2.png</xsl:attribute>
					<xsl:attribute name="alt">Feed RSS</xsl:attribute>
					<xsl:attribute name="align">absmiddle</xsl:attribute>
				</xsl:element>
			</xsl:element>
			
			<xsl:text> - </xsl:text>
			
			<xsl:element name="a">
				<xsl:attribute name="href">
					<xsl:apply-templates select="@htmlUrl"/>
				</xsl:attribute>
				<xsl:attribute name="title">
					<xsl:apply-templates select="@title"/>
				</xsl:attribute>
				<xsl:value-of select="@title"/>
			</xsl:element>

		</xsl:element>
	</xsl:template>	

	<!-- scrive un singolo elemento nell'head della pagina -->
	<xsl:template name="single-feed-head">
		<xsl:element name="link" xmlns="http://www.w3.org/1999/xhtml">
			<xsl:attribute name="rel">alternate</xsl:attribute>
			<xsl:attribute name="type">application/rss+xml</xsl:attribute>
			<xsl:attribute name="title"><xsl:apply-templates select="@title"/></xsl:attribute>
			<xsl:attribute name="href"><xsl:apply-templates select="@xmlUrl"/></xsl:attribute>
		</xsl:element>
	</xsl:template>

</xsl:stylesheet>

