Action différente suivant les droits
Je veux sur une Form une Action pour un Administrateur et une autre pour un non Adminstrateur
Je déclare une variable vACTION au dessus de ma form de la façon suivante.
Code:
1 2 3 4 5 6 7 8
|
<xsl:variable name="vACTION" select="/document/Aliases/CARTE_TDLL">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_Administrator = '1'">UpdateCARTET1?CA_ID={CA_ID}</xsl:when>
<xsl:otherwise>LISTECARTET?CAMPAGNE={/document/Params/CAMPAGNE}&SEARCHED_CODE_CLIENT={/document/Params/SEARCHED_CODE_CLIENT}</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<form name="MainForm" method="POST" action="{$vACTION}" |
Quand j'exécute, il me retourne cette erreur
TXSLProc.Load - C:\Program Files\e-delos\Projects\CARTE_T\Bin\XML\CARTE_T\CARTE_TWM\FormCARTET1.xsl Variable or parameter 'vACTION' cannot have both a select attribute and non-empty content