title: How to show text if checkbox is NOT ticked in XSLT
body: <p>I am trying to use XSLT file to show a red text error message if the checkbox has not been ticked (once I click on the <strong>submit</strong> button on my form), this is my current (and I think relevant part) code in a form:</p>
  
  <pre><code>&lt;div id="confcontent"&gt;
  &lt;xsl:apply-templates select="$model/validationMessages/allMessages" mode="validationMessageList" /&gt;
       &lt;div class="formblock"&gt;
          &lt;form action="{$model/@formAction}" method="post" onSubmit="return checkValidation();"&gt;
              &lt;div class="fieldSet"&gt;
                  &lt;input type="checkbox" name="managerconfirmation" onclick="(input/@managerconfirmation" /&gt;
                  &lt;span&gt;Random text next to checkbox is entered here&lt;/span&gt;&lt;br /&gt;
              &lt;/div&gt;
  
              &lt;div class="fieldSet"&gt;
                &lt;span&gt;I want this message to show up in red if I do not click on the checkbox&lt;/span&gt;
              &lt;/div&gt;
             &lt;div class="fieldSet"&gt;
                &lt;input class="enterbtn" type="submit" value="Enter" /&gt;
                &lt;div class="clearboth"&gt;&amp;#160;&lt;/div&gt;
             &lt;/div&gt;
          &lt;/form&gt;
  
       &lt;/div&gt;
  &lt;/div&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Do I use an <strong>xsl: if test</strong> function to test if checkbox is ticked and if so, how and where in this line of code do I do that?
  Many thanks and appreciation for your assistance if you understand what I am trying to say and if you can help me solve this problem.</p>