<xsl:template match="/">
<form class="options" action="/emarket/basket/put/element/{udata/page/@id}/">
<xsl:apply-templates select="//group[@name = 'catalog_option_props']/property" />
<input type="submit" class="button" value="Добавить"/>
</form>
</xsl:template>
<xsl:template match="property">
<table>
<thead>
<tr>
<th colspan="3" align="left">
<xsl:value-of select="concat(title, ':')" />
</th>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="value/option" />
</tbody>
</table>
</xsl:template>
<xsl:template match="option">
<tr class="param_{object/@id}">
<td style="width:20px;">
<input type="radio" name="options[{../../@name}]" value="{object/@id}" id="{generate-id()}">
<xsl:if test="position() = 1">
<xsl:attribute name="checked">
<xsl:text>checked</xsl:text>
</xsl:attribute>
</xsl:if>
</input>
</td>
<td>
<label for="{generate-id()}">
<xsl:value-of select="object/@name" />
</label>
</td>
<td align="right">
<label for="{generate-id()}">
<p class="price"><span class="sum"><xsl:value-of select="@float" /> </span><span class="suffix">p</span></p>
<div class="add_amount">
<img class="minus" src="/templates/public/images/minus_amount.png"/>
<input id="amount_{@id}" class="amount" type="text" name="amount" value="1" maxlength="3"/>
<img class="plus" src="/templates/public/images/plus_amoun.png" />
</div>
</label>
</td>
</tr>
</xsl:template>