<?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">
 <div id="Model">
  <img id="Photo">
   <xsl:attribute name="src"><xsl:value-of select="$url"/>/photo.jpg</xsl:attribute>
  </img>
  <div id="Text">
   <h2>
    <xsl:for-each select="name/t">
     <span>
	  <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
	  <xsl:value-of select="."/>
      (#<xsl:value-of select="/model/article" />)
	 </span>
    </xsl:for-each>
   </h2>
   <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>
    <xsl:for-each select="sizes">
	 <h3>
	 <xsl:if test="@type='A'">
	  <b class="en">American Sizes </b>
	  <b class="es">Talles Americanos </b>
	  <b class="fr">Tailles Americaines </b>
	 </xsl:if>
	 <xsl:if test="@type='E'">
	  <span class="en">European Sizes </span>
	  <span class="es">Talles Europeos </span>
	  <span class="fr">Tailles Europeains </span>
	 </xsl:if>
	 <em>
      <xsl:attribute name="class"><xsl:value-of select="@lang"/></xsl:attribute>
	  <xsl:value-of select="."/>
	 </em>
	</h3>
    </xsl:for-each>
   </div>
   <ul>
     <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 width="48" height="48">
        <xsl:attribute name="src"><xsl:value-of select="$url"/>/<xsl:value-of select="@image"/></xsl:attribute>
 	   </img>
 	  </li>
     </xsl:for-each>
   </ul>
  </div>
 </div>
</xsl:template>

</xsl:stylesheet>
