Sometimes you need to build some conditional tests in you SharePoint Forms using XSL.
All of that is not a problem, but degugging a variable is a different story.
<xsl:variable name=”LOOKUP_ID”><xsl:value-of select=”@Account_x003a_ID” disable-output-escaping=”no”/></xsl:variable>
<xsl:copy-of select=”$LOOKUP_ID” />
<!– display the value of the variable used in test below on the existence of CRM account for the current value—>
Using the <xsl:copy-of method is very useful to check the content of the variable and display it in a form at anytime.
Tip : look at the different syntax select=”$LOOKUP_ID” starts with a ‘$’ instead of a @