How to format number based on conditions.
How to format number based on conditions. I used below statement
<?xdoxslt:ifelse(AmtListPricePerUnit_ID247>0 and CurrencyCodeFrom_ID251!='USD',<? format-number:AmtListPricePerUnit_ID247;'##,##0.00'?>,<? format-number:AmtListPricePerUnit_ID247;'$#,##0.00'?>)?>
but if currency code='USD' output shows as ,$3.35)?>. Appreciate your help.