Hide a 1x1 table using Conditional Routing when the field includes HTML
I am trying to use Conditional Regions to hide a field when that field is null. However, the XML entry contains HTML tags so the <?if:NOTE_UTD!=''?> is not working.
In my example, the XML file contains this entry:
<NOTE_UTD><html>
<head>
</head>
<body bgcolor="#ffffff">
</body>
</html>
</NOTE_UTD>
I'm using a template to render the HTML and also force a specific font and size. Here is a sample:
<xsl:template name="NOTEUTD_HTML">
<fo:inline font-family="Calibri" font-size="9px">
<xsl:value-of select="xdoxslt:HTML2FO($_XDOXSLTCTX, (.//NOTE_UTD)[1], '')" disable-output-escaping="yes"/>