<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="iso-8859-1" indent="yes"/>
 
   <xsl:template match="card">
     <html>
       <head><title>business card</title></head>
	   <body>
         <xsl:apply-templates select="name"/>
         <xsl:apply-templates select="title"/>
         <xsl:apply-templates select="email"/>
         <xsl:apply-templates select="phone"/>
       </body>
	 </html>
   </xsl:template>
 
   <xsl:template match="card/name">
     <h1><xsl:value-of select="text()"/></h1>
   </xsl:template>
 
   <xsl:template match="email">
     <p>email: <a href="mailto:{text()}"><tt>
       <xsl:value-of select="text()"/>
     </tt></a></p>
   </xsl:template> 

   <xsl:template match="phone">
    <p><b>PHONE: <xsl:value-of select="text()"/></b></p>
   </xsl:template> 

</xsl:stylesheet> 
