math.highest.5.xsl 609 B

123456789101112131415161718
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="/" xmlns:math="http://exslt.org/math">
  4. <out>
  5. * <lowest-prices>
  6. <xsl:for-each select="math:lowest(//sale/@price)">
  7. <xsl:value-of select="../@id"/>;
  8. </xsl:for-each>
  9. </lowest-prices>
  10. * <highest-prices>
  11. <xsl:for-each select="math:highest(//sale/@price)">
  12. <xsl:value-of select="../@id"/>;
  13. </xsl:for-each>
  14. </highest-prices>
  15. </out>
  16. </xsl:template>
  17. </xsl:stylesheet>