You are on page 1of 3

Others Formatting (1)

Row/Column High Lighting


<?if@row:position() mod 2=0?>
<xsl:attribute name="background-color
xdofo:ctx="incontext">green</xsl:attribute>
<?end if?>

Creation of Page Total Element


<?add-page-total:TotalFieldName;'element'?>
<?add-page-total:dt;DEBIT'?>

Displaying Page Total


<?show-page-total:TotalFieldName;'number-format'?>
<?show-page-total:dt;$#,##0.00; ($#,##0.00)?>

Sorting
<?sort:element name?>

Page Breaks
<?split-by-page-break:?>

Last Page Only


<?start@last-page:body?>
<?end body?>

Others Formatting (2)

Conditional High Lighting with Text Decoration


<xsl:attribute xdofo:ctx="block" name="font-weight">bold</xsl:attribute>

Oracle Number Format Mask


<?format-number:fieldname;999G999D99?>

Oracle Date Format Mask


<?format-date:fieldname;MASK?>

Mask Output for US Locale

SHORT 2/31/99

MEDIUM Dec 31, 1999

LONG Friday, December 31, 1999

SHORT_TIME 12/31/99 6:15 PM

MEDIUM_TIME Dec 31, 1999 6:15 PM

LONG_TIME Friday, December 31, 1999 6:15 PM

SHORT_TIME_TZ 12/31/99 6:15 PM GMT

MEDIUM_TIME_TZ Dec 31, 1999 6:15 PM GMT

LONG_TIME_TZ Friday, December 31, 1999 6:15 PM GMT

Extended SQL and XSL Functions

Syntax:
<?xdofx:expression?>

Examples:
<?xdofx:rpad(FIRST_NAME||LAST_NAME),30,'x')?>
<?xdofx:decode('xxx','bbb','ccc','xxx','ddd')?>
<?xdofx:Instr('abcabcabc','a',2)?>
<?xdofx:upper(char)?>

You might also like