<?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 activeuserIS.html which can be loaded from the file list on the right!
  	<xsl:result-document href="activeuserIS.html">
  	<html>
  	  <body><table>
		  <tr>
  		  	<th>Information Systems</th>
  		  	<th>Name</th>
  		  	<th>Active User</th>
  		  </tr>
		  <xsl:apply-templates select="contents[number(@aktive_32_User) > 250]" />
		</table></body>
  	</html>
  	</xsl:result-document>
  </xsl:template>
  
  <xsl:template match="iteraplan:Container/contents[@xsi:type='iteraplan:InformationSystem']"> 
  <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(./@aktive_32_User)" /></td>
    </tr>
  </xsl:template>

</xsl:stylesheet>