View stylesheet

XML schemas http://schemas.unfccc.int/inventoryreporting/simple1_6.xsd
Output type HTML
Description List variables in file
XSL file unfcc-simple-16-to-html.xsl (Last modified: 17 Jun 2015 16:39 )
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0"
>
  <xsl:output method="xml"/>

  <xsl:template match="data">
  <html>
    <head>
       <title>List of variables</title>
    </head>
    <body>
    <h1>List of variables in file</h1>
    <ul><xsl:text>
</xsl:text>
    <xsl:for-each select="variables/variable">
      <xsl:sort select="@name"/>
      <li><xsl:value-of select="@name"/></li><xsl:text>
</xsl:text>
    </xsl:for-each>
    </ul>
    </body>
    </html>
  </xsl:template>

  <xsl:template match="variable">
    <li><xsl:value-of select="@name"/></li><xsl:text>
</xsl:text>
    <!--
    <xsl:apply-templates/>
    -->
  </xsl:template>

  <xsl:template match="text()"/>

<!--
  <xsl:template match="years">
    <table>
      <tr>
        <xsl:for-each select="year">
          <th><xsl:value-of select="@name"/></th>
        </xsl:for-each>
      </tr>
      <tr>
        <xsl:for-each select="year">
          <td><xsl:value-of select="record/value"/></td>
        </xsl:for-each>
      </tr>
    </table>
  </xsl:template>
-->
</xsl:stylesheet>