<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output method="html"/>

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

  <xsl:template match="types">
    <h1>DCOPPython supported types</h1>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="type">
    <h2><xsl:value-of select="@dcoptype"/></h2>
    <xsl:apply-templates select="demarshal-as"/>
    <div>Argument of form:</div>
    <div style="margin-left: 2cm">
      <xsl:for-each select="marshal-as">
        <b><xsl:value-of select="."/></b>
      </xsl:for-each>
    </div>
    <xsl:apply-templates select="info"/>
  </xsl:template>

  <xsl:template match="demarshal-as">
    <div>Returns as: <b><xsl:apply-templates/></b></div>
  </xsl:template>

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

</xsl:stylesheet>
