i have a edit form where i need that hide the field 'Потврда за објаву' if value of field 'Статус документа' is 'Документ је одобрен' but my if statement does not woks.
my code is
<tr>
<td valign="top" class="ms-formlabel" width="190px">
<H3 class="ms-standardheader"><nobr>Потврда за објаву</nobr></H3>
</td>
<td valign="top" class="ms-formbody" width="600px">
<xsl:variable name="StatusDokumenta" select="@_x0421__x0442__x0430__x0442__x0443__x0441__x0020__x0434__x043e__x043a__x0443__x043c__x0435__x043d__x0442__x0430_" />
<xsl:if test="$StatusDokumenta = 'Документ је одобрен'">
<SharePoint:FormField runat="server" id="ff26{$Pos}" ControlMode="Edit" FieldName="_x041f__x043e__x0442__x0432__x0440__x0434__x0430__x0020__x0437__x0430__x0020__x043e__x0431__x0458__x0430__x0432__x0443_" __designer:bind="{ddwrt:DataBind('u',concat('ff26',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@_x041f__x043e__x0442__x0432__x0440__x0434__x0430__x0020__x0437__x0430__x0020__x043e__x0431__x0458__x0430__x0432__x0443_')}" /><SharePoint:FieldDescription runat="server" id="ff26description{$Pos}" FieldName="_x0440__x0435__x0432__x0438__x0437__x0438__x0458__x0435_" ControlMode="Edit" />
</xsl:if>
</td>
</tr>