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

<!-- Your browser does not appear to support client side XSLT -->



    <xsl:template match="/">
	<html>
	<head>
	    <xsl:apply-templates mode="header"/>
	    <link rel="stylesheet" type="text/css" href="/stylesheet.css" />
	    <link rel="alternate" type="application/atom+xml" title="Inigo Surguy" href="http://www.surguy.net/atom.xml" />
	</head>
	<body>

	<h1><xsl:value-of select="article/title"/></h1>

	<p class="author"><xsl:value-of select="article/articleinfo/author/firstname"/><xsl:text> </xsl:text><xsl:value-of select="article/articleinfo/author/surname"/></p>

	<div class="content">
	    <xsl:apply-templates />

	    <h2>Return to index</h2>
	    <p>
		Return to the <a href="/index.html">index page</a>.
	    </p>
	    <p>
	   <!--
	    	<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
	   -->
	    </p>
	</div>

	<xsl:call-template name="navigation" />	
	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
	<xsl:comment> </xsl:comment>
    </script>
    <script type="text/javascript">
     _uacct = "UA-434947-1";
     urchinTracker();
     </script>
	</body>
	</html>
    </xsl:template>

    <xsl:template name="navigation">
	<div class="navigation">
	<h3 class="first">Articles</h3>
	<a href="/index.html#java">Java</a>
	<a href="/index.html#python">Python</a>
	<a href="/index.html#delphi">Delphi</a>
	<a href="/index.html#xml">XML and CSS</a>
	<h3>About me</h3>
	<!-- <a href="cv.html">Curriculum Vitae</a> -->
	<a href="mailto:inigosurguy@hotmail.com" title="Email me at inigosurguy@hotmail.com">Contact me</a>
	<h3>About this site</h3>
 	<a href="http://surguy.net/atom.xml">RSS</a>
	<a href="/articles/clientside-xsl-taglib.xml">Client / server-side XSLT</a>
	<h3>My books</h3>
	<a href="http://www.amazon.co.uk/exec/obidos/ASIN/1904151086/qid%3D/026-0933418-3778811"><img src="/images/xmlbook.jpg" width="148" height="190" alt="Cover of Practical XML for the Web"/></a>
	<blockquote>"Love this book - as a seasoned web developer with heaps of experience I find this book a great reference tool, fantastic prompter when I'm struggling with XML technologies, all round very well written and did I mention already PRACTICAL." - <a href="http://www.amazon.com/exec/obidos/tg/detail/-/1904151086/qid=1069494579/sr=8-1/ref=sr_8_1/103-1861561-4174226?v=glance&amp;n=507846">Hamish Fraser - amazon.com review</a></blockquote>
	<a href="http://www.amazon.co.uk/exec/obidos/ASIN/190415106X/qid=1029944584/sr=1-5/ref=sr_1_3_5/202-4143590-4899065"><img src="/images/cmsbook.jpg" width="148" height="190" alt="Cover of Content Management Systems"/></a>
	<blockquote>"...tackles crucial technical issues that anyone involved in a CMS must face, but the pitch is accessible to most readers interested in the highly complex , and highly fascinating world of CMS" - <a href="http://www.content-wire.com/FreshPicks/Index.cfm?ccs=86&amp;cs=2260">Paola DI MAIO - Content Wire</a></blockquote>
	<a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590591690/103-1861561-4174226"><img src="/images/intranetbook.jpg" width="148" height="190" alt="Cover of Practical Intranet Development"/></a>
	
	</div>
    </xsl:template>

<!-- Head templates -->

    <xsl:template match="article/title" mode="header">
	<title><xsl:value-of select="text()"/></title>
    </xsl:template>

    <xsl:template match="article/title" />
    <xsl:template match="author" />    
    

    <xsl:template match="author" mode="header">
	<meta name="author">
	    <xsl:attribute name="content"><xsl:value-of select="firstname"/><xsl:text> </xsl:text><xsl:value-of select="surname"/></xsl:attribute>
	</meta>
    </xsl:template>

    <xsl:template match="abstract" mode="header">
	<meta name="description">
	    <xsl:attribute name="content"><xsl:value-of select="para"/></xsl:attribute>
	</meta>
    </xsl:template>

    <xsl:template match="text()" mode="header"></xsl:template>

<!-- Body templates -->



    <xsl:template match="abstract">
    </xsl:template>


    <xsl:template match="title">
	<h2><xsl:apply-templates/></h2>
    </xsl:template>

    <xsl:template match="section//section//title">
	<h3><xsl:apply-templates/></h3>
    </xsl:template>

    <xsl:template match="para">
	<p><xsl:apply-templates/></p>
    </xsl:template>
    

    <xsl:template match="emphasis[@role='bold']">
	<b><xsl:apply-templates/></b>
    </xsl:template>

    <xsl:template match="emphasis">
	<em><xsl:apply-templates/></em>
    </xsl:template>

    <xsl:template match="ulink">
	<a href="{@url}"><xsl:apply-templates/></a>
    </xsl:template>
    
    <xsl:template match="listitem">
	<li><xsl:apply-templates/></li>
    </xsl:template>

    <xsl:template match="listitem/para">
	<xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="itemizedlist">
	<ul><xsl:apply-templates/></ul>
    </xsl:template>

    <xsl:template match="lineannotation">
	<span class="comment"><xsl:apply-templates/></span>
    </xsl:template>

    <xsl:template match="inlinemediaobject">
	<img src="{imageobject/imagedata/@fileref}" alt="{textobject/phrase/text()}" />
    </xsl:template>

    <xsl:template match="inlinemediaobject//text()">
    </xsl:template>
    
    <xsl:template match="programlisting">
	<p class="code"><pre><xsl:apply-templates/></pre></p>
    </xsl:template>
    


</xsl:stylesheet>

