チェックボックスがオンになっていない場合(フォームの送信ボタンをクリックすると)、XSLTファイルを使用して赤いテキストエラーメッセージを表示しようとしています。これは、フォーム内の現在の(関連する部分だと思います)コードです。
<div id="confcontent">
<xsl:apply-templates select="$model/validationMessages/allMessages" mode="validationMessageList" />
<div class="formblock">
<form action="{$model/@formAction}" method="post" onSubmit="return checkValidation();">
<div class="fieldSet">
<input type="checkbox" name="managerconfirmation" onclick="(input/@managerconfirmation" />
<span>Random text next to checkbox is entered here</span><br />
</div>
<div class="fieldSet">
<span>I want this message to show up in red if I do not click on the checkbox</span>
</div>
<div class="fieldSet">
<input class="enterbtn" type="submit" value="Enter" />
<div class="clearboth"> </div>
</div>
</form>
</div>
</div>
</xsl:template>
xsl:if test関数を使用してチェックボックスがオンになっているかどうかをテストしますか?オンになっている場合は、このコード行のどこでどのように実行しますか?私が言おうとしていることを理解し、この問題を解決するのを手伝ってくれるなら、あなたの援助に感謝します。