<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                 xmlns="http://www.w3.org/1999/xhtml">
 
   <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="name">
     <h1><xsl:value-of select="text()"/></h1>
   </xsl:template>
 
   <xsl:template match="title">
     <b>Title:</b> <xsl:value-of select="text()"/> <br/>
   </xsl:template> 

   <xsl:template match="email">
     <b>Email:</b> <a href="mailto:{text()}"><tt>
       <xsl:value-of select="text()"/>
     </tt></a><br/>
   </xsl:template> 

   <xsl:template match="phone">
     <b>Phone:</b> <xsl:value-of select="text()"/> <br/>
   </xsl:template> 

</xsl:stylesheet>
