<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:iteraplan="urn:iteraplan">
  <xsl:output method="html" indent="yes" encoding="UTF-8" omit-xml-declaration="yes"/>
 
  <xsl:template match="iteraplan:Container">
    [INFO] Content was written to strategicvalueBB.html which can be loaded from the file list on the right!
    <xsl:result-document href="strategicvalueBB.html">
    <html>
      <body><table>
          <tr>
            <th>Building Block Type</th>
            <th>Name</th>
            <th>Strategic Value</th>
          </tr>
          <xsl:apply-templates select="contents[number(@Strategic_32_value) > 8]" />
        </table></body>
    </html>
    </xsl:result-document>
  </xsl:template>
   
  <xsl:template match="iteraplan:Container/contents">
    <tr>
      <td><xsl:value-of select="substring-after(./@xsi:type, 'iteraplan:')" /></td>
      <td><xsl:value-of select="./@name" /></td>
      <td align="right"><xsl:value-of select="number(./@Strategic_32_value)" /></td>
    </tr>
  </xsl:template>
 
</xsl:stylesheet>