View stylesheet

XML schema http://schemas.unfccc.int/inventoryreporting/simple1_7.xsd
Output type HTML
Description List variables in file
XSL file unfcc-simple-17-to-html.xsl (Last modified: 26 Jun 2015 08:49 )
<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>