<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

  <xsl:template match="/">
        <p STYLE="{color:green}"><b>For the town:</b></p>
       <xsl:apply-templates select="//family" />
  </xsl:template>
 
     <xsl:template match="family">
       <table border='1'><tr><td>FAMILY:
       <xsl:apply-templates select=".//surname" />
       <xsl:apply-templates select=".//dad" />
      <xsl:apply-templates select=".//mom" />
      <xsl:apply-templates select=".//son" />
      <xsl:apply-templates select=".//daughter" />
      </td></tr></table><p></p>
      </xsl:template>
  
     <xsl:template match="surname">
       <b> 
            <xsl:value-of />
        </b>
      </xsl:template>


     <xsl:template match="dad">
       <tr><td><p STYLE="{color:black}">dad=
            <xsl:value-of />
       </p></td></tr>
      </xsl:template>

     <xsl:template match="mom">
       <tr><td><p STYLE="{color:pink}">mom= 
            <xsl:value-of />
        </p></td></tr>
      </xsl:template>

     <xsl:template match="son">
       <tr><td colspan='2'><p STYLE="{color:blue}">son= 
            <xsl:value-of />
       </p></td></tr>
      </xsl:template>

     <xsl:template match="daughter">
       <tr><td colspan='2'><p STYLE="{color:red}">daughter= 
            <xsl:value-of />
        </p></td></tr>
      </xsl:template>

</xsl:stylesheet>





