0% found this document useful (0 votes)
71 views

XML Publisher Basics

This document provides instructions for common tasks in Oracle XML Publisher including: 1) Setting line numbers and page breaks in reports 2) Applying headers, footers, and colors across pages 3) Formatting tables, rows, and cells 4) Performing calculations like totals and sorting 5) Executing PL/SQL procedures It also provides scripts for deleting data definitions and templates from the backend.

Uploaded by

Sumit K
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

XML Publisher Basics

This document provides instructions for common tasks in Oracle XML Publisher including: 1) Setting line numbers and page breaks in reports 2) Applying headers, footers, and colors across pages 3) Formatting tables, rows, and cells 4) Performing calculations like totals and sorting 5) Executing PL/SQL procedures It also provides scripts for deleting data definitions and templates from the backend.

Uploaded by

Sumit K
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Xml Publisher Basics

1) How wil u set sl.no in xml reports?


we wil use postion attribute here
syntax: <?position()?>
2) How wil u give pagebreaks after specific records(rows)?
we wil use <?split-by-page-break?>
syntax: <?if:position() mod 5=0 ?><?split-by-page-break:?><?end if?>
------ we should not use split-by -page-break in table.
3) How 2 Avoid the page break inbetween the table
Navg: In the table properties we wil select row tab
in that we we wil select check box Allow row 2 break across the page
4) How wil give Headers to all pages?
by using start body and end body
syntax: <?start-body?>
<?end body?>
5) Xml publisher can have Only one top level elements
6) How 2 give count of elemnts in last page of the report?
syntax: <?start@last-page:body?>
count attrbute1
<?end body?>
7) How to appy colours alternatively?
syntax: <?if@row:position() mod 2=0?> <xsl:attribute name="background-color"
xdofo:ctx="incontext">silver</xsl:attribute><?end if?>
8) How wil u set Heading per each page?
Navg: In the table properties we wil select row tab ->
in that we we wil select check box repeat header for each page
9) Navigation for landscape
Navg: pagelayout ->page setup ->landscape(to the text----only 4 tat page)
10) How 2 apply colour in Background
Navg: borders and shading -> shading -> fill
11) How 2 remove Boarders
Navg: borders and shading -> borders -> (remove all sides except down)
12) Check box (check box) <?ename>kasi?>
14) Drop dowlist select drop dronlist give list of elements then go for add help text
15. If we want to hilight one cell then we wil write syntax like
<?if:debit>1000?><xsl:
attribute xdofo:ctx=
"block" name="backgroundcolor">
red</xsl:
attribute><?end if?>
16).we wil do running totals like this
<?xdoxslt:set_variable($_
XDOCTX, RTotalVar, xdoxslt:
get_variable($_XDOCTX,
RTotalVar) + INVAMT)?>
17) if i want to calclulate totals -------- <?add-page-total:variablename;'column_name'?>
to display those columns <?show-page-total:ct;$#,##0.00; ($#,##0.00)?>
18.we can do sorting like this
syn:-<?sort:element name?>
ex:--<?sort:vendor_name?><?sort:vendor_num?>
18. set autotrace traceonly -to trace the query without data
19.select to_char(to_date('10/25/2008','MM/DD/YYYY'),'dd-mon-yyyy') from dual
20. we can execute pl/sql proceures with EXEC or CALL command;

21) to remove extra 0's in xml


<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?CP_COST?></fo:bidi-
override>
22) sum of sal
<?sum(SAL[text()])?>

Xml Publisher ( How to Delete Data Definition & Template from Back end )

Script for deleting the datadefinition


------------------------------------------------>
BEGIN
XDO_DS_DEFINITIONS_PKG.DELETE_ROW('INV','NRGINTR');
END;
--------------------------------------------------------
--------------------------------------------------------
script for deleting the template
------------------------------------------------------>
BEGIN
XDO_TEMPLATES_PKG.DELETE_ROW('INV','NRGINTR');
END;

You might also like