<?xml version="1.0"?>

<!-- © 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html#License -->
<!-- Copyright (C) 2012 IBM Corporation and Others. All Rights Reserved. -->

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/perfTestResults">
    <report category="test">
      <xsl:for-each select="perfTestResult">
        <xsl:element name="test">
          <xsl:attribute name="duration">
            <xsl:value-of select="@time"/>
          </xsl:attribute>
          <xsl:attribute name="status">success</xsl:attribute>
          <xsl:attribute name="name">
            <xsl:value-of select="@test"/>
          </xsl:attribute>
          <xsl:attribute name="fixture">
          </xsl:attribute>
          <xsl:attribute name="file">/perf-tests</xsl:attribute>
          <xsl:attribute name="stdout">
            iterations: <xsl:value-of select="@iterations"/>
          </xsl:attribute>
        </xsl:element>
      </xsl:for-each>
    </report>
  </xsl:template>
</xsl:stylesheet>
