D'aprés ce test
<xsl:if test="(/document/TDEBITS/TDEBIT/p2='1') or (/document/TDEBITS/TDEBIT/p2='')">
<xsl:attribute name="checked">1</xsl:attribute>
</xsl:if>
Si il n'y a pas de données ds TDEBIT, existe-t-il une constante du type
NULL, ou
qqchose du style isnull(/document/TDEBITS/TDEBIT/p2,'0') ?