Академический Документы
Профессиональный Документы
Культура Документы
XML Publisher
flexible
high quality
template-based publishing
Concept
The main feature of XML Publisher is that it separates
Translation
Report
output
XML Publisher
Oracle
Applications
Other XML
Data Sources
XML
Example Outputs
Formats
Business Requirements
Removes Complexity
Reduces Maintenance Cost
Government Forms
Complex Layouts
Government Forms
High fidelity
Fixed formats
Example:
Customs Form
SF52
W-2
1099
Government Forms
Canada Customs Invoice
Partner Reports
Requirements
High
fidelity
(company logos)
Exact Layout
Tables
Example:
Purchase
Order
Commercial Invoice
Bill of Lading
Partner Reports
Report customization
Vs
XML Publisher
Applications
Microsoft Word
Adobe Acrobat Reader
F
D
P
F
T
R
Process Overview
Set up the XML Publisher responsibility
Set the E-Business Suite report to generate XML
output.
Register the E-Business Suite report as a Data
Definition with XML Publisher.
Design the template and Register the template in the
Template Manager.
Submit the XML report Concurrent request to
generate PDF,EXCE or RTF report format.
XML Template
Navigation:
XML Publisher Administrator-> Template -> Create Template
Report Development
Develop or use an existing report for generating XML
Sample XML
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version
6.0.8.11.3 -->
<T00404464>
<LIST_G_SALES_ORGN>
<G_SALES_ORGN>
<SALES_ORGN>TET</SALES_ORGN>
<LIST_G_ORDER_DETAILS>
<G_ORDER_DETAILS>
<SORT_ORDER_VALUE>200009</SORT_
ORDER_VALUE>
<ORGN>TET-200009</ORGN>
<BOL_NO>12004</BOL_NO>
<WHSE>T1</WHSE>
<SORT_DT>28-FEB-08</SORT_DT>
<RQST_SHIPDT>28-FEB2008</RQST_SHIPDT>
<CUSTOMER_NAME>CONTECH
ATLANTA</CUSTOMER_NAME>
<CT_ST_ZP>CONYERS,
GA</CT_ST_ZP>
<ITEM_NO>BX150060</ITEM_NO>
<QTY>25</QTY>
<SHIPPING_UOM>RL</SHIPPING_UOM>
<SHIP_METHOD_CODE></SHIP_METHOD_CODE>
<STATUS>Awaiting Allocation</STATUS>
<LINE_ID>1982</LINE_ID>
<SHIPPER_CODE></SHIPPER_CODE>
<PO>TEST ORDER#5</PO>
</G_ORDER_DETAILS>
</LIST_G_ORDER_DETAILS>
</G_SALES_ORGN>
</LIST_G_SALES_ORGN>
</T00404464>
RTF method
Form Field method
Totals
Page Totals
<?add-page-total: name;element?>
<?show-page-total: name;number format?>
For example
<?add-page-total: totsal:sal?>
<?show-page-total: totsal:$#,##0.00;($#,##0.00)?>
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)?>
Assigning Value:
<?xdoxslt:set_variable($_XDOCTX, 'variable name', value)?>
Get Value :
<?xdoxslt:get_variable($_XDOCTX, 'variable name')?>
XPATH Notations
Notation
Meaning
Current Node
..
Parent
//
Descendants
Attribute
[]
To specify conditions
Template Builder
The Template Builder is an extension to Microsoft Word
Functions:
Data Definition
Template Definition
Thank You