Pure JavaScript Client

This is a message-receiving client for Apache ESME that is written entirely in Javascript. This very first cut of a client was created as a proof-of-concept to show that a very simple client was possible without any dependence on the server-side programming language.  Based on the current implementation, it could be embedded in Java, C#, etc. It could run in a variety of environments including SharePoint, SAP Portal, etc.

This first version offers: Long-polling Flexible design * The client uses XSL transformation to create HTML from the XML that originates from Apache ESME’s REST-API.

HTML page

{code:lang=javascript}

h4. XLS File

{code:lang=xml}<?xml version="1.0"?>
<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="html" />

    <xsl:template match="author">
    <tr>
    <td>
    <img>
    <xsl:attribute name="src"><xsl:value-of select="@image"

/> From:

    <xsl:template match="body">
    <tr><td>
     Message: <xsl:value-of select="."/></td></tr>
    </xsl:template>

    <xsl:template match="esme_api">
    <table>
    <xsl:apply-templates/>
    </table>
     </xsl:template>

     <xsl:template match="/">
    <xsl:apply-templates/>
     </xsl:template>

</xsl:stylesheet>{code}