-
Bug
-
Resolution: Fixed
-
Major
-
1.3.0
-
None
-
None
L'attribut n'est pas @name mais @value
<xsl:variable name="value" select="@value"/>
au lieu de
<xsl:variable name="value" select="@name"/>
Exemple
<select name="degree" id="search-degree-{$uniqueId}"> <option value=""><i18n:text i18n:key="PLUGINS_ODFWEB_SERVICE_SEARCH_INPUT_DEGREES_ALL"/></option> <xsl:for-each select="/search/form/fields/degrees/degree"> <xsl:sort select="."/> <xsl:variable name="value" select="@value"/> <option value="{$value}"> <xsl:if test="/search/form/values/degree[$value = .]"> <xsl:attribute name="selected">selected</xsl:attribute> </xsl:if> <xsl:value-of select="."/> </option> </xsl:for-each> </select>
NB : Dans la version 1.1 de l'ODF on utilisait @name