<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="no" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />

    <xsl:template name="contributorRoleSelect" >
      <xsl:param name="formIndex" />
      <xsl:param name="selectedID" />
      <xsl:param name="path" />

      <select id="contributorRoleSelect_{$formIndex}">
        <xsl:if test="normalize-space($formIndex)" >
          <xsl:attribute name="name"><xsl:value-of select="$path" />_ContributorHash_Contributor_<xsl:value-of select="$formIndex" />_ContributorRoleID</xsl:attribute>
        </xsl:if>
        <option value="0">Choose...</option>
        <xsl:for-each select="/Root/Form/ContributorRoleList/ContributorRole" >
          <option value="{ContributorRoleID}">
            <xsl:if test="ContributorRoleID = $selectedID">
              <xsl:attribute name="selected">selected</xsl:attribute>
            </xsl:if>
            <xsl:value-of select="ONIXCode" /> : <xsl:value-of select="Description" />
          </option>
        </xsl:for-each>
      </select>
    </xsl:template>

</xsl:stylesheet>
