Professional Documents
Culture Documents
Agenda
Understanding how XML work. Basics to create XML report. Error and troubleshooting. View more advanced examples. Q&A
MS Word
RTF
XML Publisher
Data
Report Output
For example:
Select the size, font, and alignment of text Insert bullets and numbering Draw borders around paragraphs Include a watermark Include images (jpg, gif, or png) Use table auto formatting features Insert a header and footer
Defining Groups
By defining a group, you are notifying XML Publisher that for each occurrence of an element, you want the included fields displayed. At runtime, XML Publisher will loop through the occurrences of the element and display the fields each time. To designate a group of repeating fields, insert the grouping tags around the elements to repeat. Insert the following tag before the first element: <?for-each:XML group element tag name?> <?for-each@section:group name?>
Defining Groups
If you insert the tags around two different table rows, the rows between the tags will be repeated
instruct XML Publisher to start a new section for each occurrence of the G_INVOICE
element, add the @section command to the opening for-each statement for the group, using the following syntax: <?for-each@section:group name?> <?for-each@section:G_INVOICE?> <?end for-each?>
<?xdoxslt:set_variable($_XDOCTX, Counter, 0)?> <?for-each:group name?> <?element?> <?xdoxslt:set_variable($_XDOCTX, Counter, xdoxslt: get_variable($_XDOCTX, Counter) + 1)?> <?if: xdoxslt:get_variable($_XDOCTX, Counter) mod 10=0?> <?split-by-page-break:?> <?end if?>
Round
<?xdofx:2+3?> <?xdofx:lpad('aaa',10,'.')?> <?xdofx:rpad('aaa',10,'.')?> <?xdoxslt:trim( a )?> <?xdofx:decode('xxx','bbb','ccc','xxx','ddd')?> <?xdoxslt:round ( number [, integer ] )?>
See more : Oracle Business Intelligence Publisher Report Designer's Guide Release 10.1.3.4 P Extended Function Support in RTF Templates
IF-THEN-ELSE
It can be used in an expression. The syntax is:
IF <boolean_expressionA> THEN <numeric or character expression1> [ELSIF <boolean_expressionB THEN <numeric or character expression2>] ... [ELSE <numeric or character expression3] END IF
IF-THEN-ELSE
Example :
<?xdofx:if
then '4.25%'
then '4.5%' end if ?>
( your parameters ) .
View Examples :
1- Ramco Print Invoice XML ( For each Group , Page Break , Master and Detail , IF Then ,
For each@section )
2- Ramco Customer Site Balance ( muli-groups , Header And Footer ) 3- Ramco Payment Calendar (Cross Table ) 4- Trail Balance ( Groping & Sorting Data )
QUESTIONS ANSWERS