<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:math="http://exslt.org/math"
                exclude-result-prefixes="math">

<xsl:template match="values">
  <results>
    <xsl:apply-templates/>
  </results>
</xsl:template>

<xsl:template match="value">
   <result>
      <xsl:value-of select="math:power(./@base,.)" />
   </result>
</xsl:template>

</xsl:stylesheet>
