﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="html" indent="yes"/>

    <xsl:template match="/user">
      <style type="text/css">
        .dsc{
        font-weight:bold;
        vertical-align:top;
        text-align:left;
        }
        .prof
        {
        background-color:#<xsl:value-of select="profile_background_color"/>;
        color:#<xsl:value-of select="profile_text_color"/>;

        }
        .prof a {
        color:#<xsl:value-of select="profile_link_color"/>;
        text-decoration:none;
        overflow:auto;
        }
      </style>

      <table cellpadding="5" cellspacing="0" style="background-image:url({profile_background_image_url}); width:100%;text-align:center;">
        <tr style="text-align:center">
          <td style="text-align:center">
            <div style="padding-bottom:5px;">
              <img src="http://assets1.twitter.com/images/twitter_logo_s.png" width="85" height="20"/>
            </div>
            <center><div style="vertical-align:super; font-size:x-large; font-weight:bold;background-color:white;width:80%; color:black;text-align:center;">
              <img src="{profile_image_url}"/>
              <a href="http://twitter.com/{screen_name}">
                <font color="black" style="text-decoration:none">
                  <xsl:value-of select="screen_name"/></font>
              </a>
            </div>
            </center>
            <center>
            <div style="width:80%;background-color:white;margin-top:5px;border-color:black;border-width:1px;border-style:solid;">
              <xsl:value-of select="status/text"/>
            </div>
            </center>
            <center>
            <table cellspacing="0" style="text-align:center;vertical-align:top;width:80%;margin-top:5px;" class="prof">
              <tr>
                <td class="dsc" colspan="2" style="text-align:center;border:1px;border-style:solid;">Profile</td>

              </tr>
              <tr>
                <td class="dsc" style="border-top-width:1px;border-top-style:solid; border-left-width:1px;border-left-style:solid;">Location:</td>
                <td style="border-top-width:1px;border-top-style:solid;border-right-width:1px;border-right-style:solid;">
                  <xsl:value-of select="location"/>
                </td>
              </tr>
              <tr >
                <td class="dsc" style=" border-left-width:1px;border-left-style:solid;">Description</td>
                <td style="border-right-width:1px;border-right-style:solid;">
                  <xsl:value-of select="description"/>
                </td>
              </tr>
              <tr>
                <td class="dsc" style="border-bottom-width:1px;border-bottom-style:solid; border-left-width:1px;border-left-style:solid;">Website:</td>
                <td style="border-bottom-width:1px;border-bottom-style:solid;border-right-width:1px;border-right-style:solid;">
                  <a href="{url}">
                    [Link]
                  </a>
                </td>
              </tr>

              <tr>
                <td colspan="2">
                  <table style="width: 100%;text-align:center" class="prof" cellpadding="0" cellspacing="0">
                    <tr>
                      <td style="border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-top-width:1px;border-top-style:solid;">
                        <xsl:value-of select="friends_count"/>
                      </td>
                      <td style="border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-top-width:1px;border-top-style:solid;">
                        <xsl:value-of select="followers_count"/>
                      </td>
                      <td style="border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-top-width:1px;border-top-style:solid;">
                        <xsl:value-of select="statuses_count"/>
                      </td>
                    </tr>
                    <tr>
                      <td style="font-size:x-small;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-bottom-width:1px;border-bottom-style:solid;">Following</td>
                      <td style="font-size:x-small;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-bottom-width:1px;border-bottom-style:solid;">Followers</td>
                      <td style="font-size:x-small;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid;border-bottom-width:1px;border-bottom-style:solid;">Updates</td>
                    </tr>
                  </table>


                </td>

              </tr>
            </table>
            </center>
            <div style="height:15px;">
              <xsl:text disable-output-escaping="yes"> </xsl:text>
            </div>
          </td>
        </tr>
      </table>
    </xsl:template>
</xsl:stylesheet>
