<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:include href="common.xslt"/>
  <xsl:template match="BUYER_PROFILE">
    <html>
      <head>
        <title>BUYER_PROFILE</title>
        <link rel="stylesheet" href="css/stylesheet.css" type="text/css" />
      </head>
      <body>
        <div class="element">
          <div class="elementLabel">
            Element: BUYER_PROFILE
          </div>
          <div class="attributes">
            <div class="attribute">
              LG: <xsl:value-of select="@LG" />
            </div>
            <div class="attribute">
              CATEGORY: <xsl:value-of select="@CATEGORY" />
            </div>
            <div class="attribute">
              FORM: <xsl:value-of select="@FORM" />
            </div>
            <div class="attribute">
              VERSION: <xsl:value-of select="@VERSION" />
            </div>
          </div>
          <xsl:apply-templates select="SENDER" />
          <xsl:apply-templates select="FD_BUYER_PROFILE" />
        </div>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="FD_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: FD_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="NOTICE_RELATION_PUBLICATION" />
      <xsl:apply-templates select="AUTHORITY_ENTITY_NOTICE_BUYER_PROFILE" />
      <xsl:apply-templates select="OBJECT_NOTICE_BUYER_PROFILE" />
      <xsl:apply-templates select="COMPLEMENTARY_INFORMATION_NOTICE_BUYER_PROFILE" />
    </div>
  </xsl:template>
  <xsl:template match="NOTICE_RELATION_PUBLICATION">
    <div class="element">
      <div class="elementLabel">
        Element: NOTICE_RELATION_PUBLICATION
      </div>
      <div class="attributes">
        <div class="attribute">
          NOTICE: <xsl:value-of select="@NOTICE" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template match="AUTHORITY_ENTITY_NOTICE_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: AUTHORITY_ENTITY_NOTICE_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="NAME_ADDRESSES_CONTACT_BUYER_PROFILE" />
      <xsl:apply-templates select="TYPE_AND_ACTIVITIES_AND_PURCHASING_ON_BEHALF" />
      <xsl:apply-templates select="ACTIVITIES_OF_CONTRACTING_ENTITY" />
    </div>
  </xsl:template>
  <xsl:template match="NAME_ADDRESSES_CONTACT_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: NAME_ADDRESSES_CONTACT_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="CA_CE_CONCESSIONAIRE_PROFILE" />
      <xsl:apply-templates select="INTERNET_ADDRESSES_BUYER_PROFILE" />
    </div>
  </xsl:template>
  <xsl:template match="INTERNET_ADDRESSES_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: INTERNET_ADDRESSES_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="URL_GENERAL" />
      <xsl:apply-templates select="URL_BUYER" />
    </div>
  </xsl:template>
  <xsl:template match="OBJECT_NOTICE_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: OBJECT_NOTICE_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="TITLE_NOTICE_BUYER_PROFILE" />
      <xsl:apply-templates select="TYPE_CONTRACT" />
      <xsl:apply-templates select="SHORT_DESCRIPTION_CONTRACT" />
      <xsl:apply-templates select="CPV" />
    </div>
  </xsl:template>
  <xsl:template match="TITLE_NOTICE_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: TITLE_NOTICE_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="FT" />
      <xsl:apply-templates select="P" />
    </div>
  </xsl:template>
  <xsl:template match="COMPLEMENTARY_INFORMATION_NOTICE_BUYER_PROFILE">
    <div class="element">
      <div class="elementLabel">
        Element: COMPLEMENTARY_INFORMATION_NOTICE_BUYER_PROFILE
      </div>
      <xsl:apply-templates select="NOTICE_DISPATCH_DATE" />
    </div>
  </xsl:template>
</xsl:stylesheet>