<?xml version="1.0" encoding="windows-1252"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:param name="url"/>

<xsl:template match="/model">
  <table id="Model">
   <tr>
   <td valign="top">
   <div class="Description">
    <xsl:for-each select="desc/t">
     <p>
 	  <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
 	  <xsl:value-of select="."/>
	 </p>
    </xsl:for-each>
   </div>

   <label class="en">Model:</label>
   <label class="es">Modelo:</label>
   <label class="fr">Modèle:</label>
   <xsl:for-each select="name/t">
    <p>
	 <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
	 <xsl:value-of select="."/>
	</p>
   </xsl:for-each>
   <label class="en">Sizes:</label>
   <label class="es">Talles:</label>
   <label class="fr">Tailles:</label>
   <br />
   <xsl:for-each select="sizes">
    <p class="Sizes">
     <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
	 <xsl:value-of select="."/>
	  <xsl:if test="@type='A'">
	   <span class="en"> (American Standard)</span>
	   <span class="es"> (Standar Americano)</span>
	   <span class="fr"> (Standard Americain)</span>
	  </xsl:if>
	  <xsl:if test="@type='E'">
	   <span class="en"> (European Standard)</span>
	   <span class="es"> (Standar Europeo)</span>
	   <span class="fr"> (Standard Europeain)</span>
	  </xsl:if>
	</p>
   </xsl:for-each>
   </td>
   <td rowspan="2" valign="top">
	 <img>
      <xsl:attribute name="src"><xsl:value-of select="$url"/>/photo.jpg</xsl:attribute>
	 </img>
   </td>
  </tr>
  <tr>
   <td valign="bottom">
   <ul style="direction:rtl;">
    <xsl:for-each select="colorset/color">
     <li>
     <xsl:for-each select="t">
      <p>
 	   <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
  	   <xsl:value-of select="."/>
 	  </p>
     </xsl:for-each>
	 <img>
      <xsl:attribute name="src"><xsl:value-of select="$url"/>/<xsl:value-of select="@image"/></xsl:attribute>
	 </img>
	</li>
   </xsl:for-each>
   </ul>
   </td>
  </tr>
 </table>
</xsl:template>

</xsl:stylesheet>
