Oracle XML Publisher Admin - Modifying a template
We have a check template that I am trying to modify with the following logic
Pseudo logic: When paymentstatus/code = ‘VOID_BY_OVERFLOW’ print *VOID* else when Addressee is not null print Addressee, otherwise print Name
Current Logic
<?xdofx:if ../PaymentStatus/Code = 'VOID_BY_OVERFLOW' then '****** VOID ******' else ../Payee/Name end if?>
I have tried the below options but neither work. Option 1 is close but it does not recognize Addressee having a value.
Option 1
<?xdofx:if../PaymentStatus/Code='VOID_BY_OVERFLOW'then'*VOID*'elseif ../Payee/Address/Addressee=null then ../Payee/Name else ../Payee/Address/Addressee end if?>
Option 2
<xsl:choose>