﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" omit-xml-declaration="yes" />
  <xsl:template match="/">
    <select name="drop_analyte">
      <option selected="selected" value="">Select an analyte</option>
      <option value="">-------------------------------------------</option>
      <xsl:for-each select="//*[@anlw]">
        <xsl:sort order="ascending" select="."/>
        <option>
          <xsl:attribute name="value">
            <xsl:value-of select="./../@anid"/>
          </xsl:attribute>
          <xsl:value-of select="."/>
        </option>
      </xsl:for-each>
    </select>
  </xsl:template>
</xsl:stylesheet>