<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">

<html>
  <body>
    <h2>Video Catalog - USA highlighted</h2>
    
    <table border="1">
    <tr bgcolor="#9acd32">
      <th align="left">Title</th>
      <th align="left">Artist</th>
      <th align="left">Country</th>
      <th align="left">Company</th>
	  <th align="left">Price</th>
	  <th align="left">Year</th>
    </tr>
    
    <xsl:for-each select="catalog/cd">
	
	<xsl:sort select="title"/>

       	<tr>
            <td><xsl:value-of select="title"/></td>
      		<td><xsl:value-of select="artist"/></td>
			
			<!-- changing output if value is 'USA' -->
			<xsl:choose>
				<xsl:when test="country='USA'">
            		<td bgcolor="#ff00ff">
            		<xsl:value-of select="country"/></td>
          		</xsl:when>
          		<xsl:otherwise>
            		<td><xsl:value-of select="country"/></td>
          		</xsl:otherwise>
        	</xsl:choose>

      		<td><xsl:value-of select="company"/></td>
	  		<td><xsl:value-of select="price"/></td>
	  		<td><xsl:value-of select="year"/></td>
       	</tr>

    </xsl:for-each>
    
    </table>
  </body>
  </html>
  
</xsl:template>
</xsl:stylesheet>