﻿<?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="xml" indent="yes"/>

    <xsl:template match="/">
      <xsl:variable name="HostName" select="AjaxRequest/HostName"></xsl:variable>
     
      <xsl:if test="count(AjaxRequest/ApiSourceDetails)!=0">
      <div class="row">
          <div id="ApiSourceData" class="table-responsive">
            <span>
              <h5>Integrator Details</h5></span>
            <table class="table table-striped tbleout">
              <tr bgcolor="#FFFFFF" class="trhead">
                <th style="text-align:left">URL</th>
                <th style="text-align:left">API Key</th>
                <th style="text-align:left">Action</th>
              </tr>
              <xsl:for-each select="AjaxRequest/ApiSourceDetails">
                <tr>
                  <td>
                    <xsl:value-of select="concat('Https://',$HostName,'/CsIntegrator300/', Hashcode)"/>
                  </td>
                  <td >
                      <xsl:value-of select="APIKey"/>
                  </td>
                  <td>
                    <button class="btn btn-defualt"> Disable </button>
                  </td>
                </tr>
              </xsl:for-each>
            </table>

          </div>
      </div>
      </xsl:if>
      
        
      
    </xsl:template>
</xsl:stylesheet>
