<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" indent="no"/>

  <xsl:template match="/masterlist">
  <xsl:for-each select="/masterlist/*/parameter">
    <xsl:choose>
      <xsl:when test="name-ML">
         ("<xsl:value-of select="name-ML"/>","<xsl:value-of select="name"/>")
      </xsl:when>
      <xsl:otherwise>
         ("<xsl:value-of select="name"/>","<xsl:value-of select="name"/>")
      </xsl:otherwise>
      </xsl:choose>
  </xsl:for-each>

</xsl:template>

</xsl:stylesheet>