Blog / Oracle Application Blog

Water Mark Text in XML Publisher report

Water Mark Text in XML Publisher report
This blog outlines the steps involved to
include the Watermark Text to XML reports.
Let’s assume a base template as below






















Step
1:

Create a xml tag for the watermark text



Step
2:
Create variable inside xml tag as follows
   xsl:variable name=”wMark”

After variable give condition based on requirement
  
For 
example:

<xsl:variable name=”wMark”
select=”xdoxslt:ifelse(.//G_ERROR/MSG!=’N’,’Error : Missing of  Item Description  ‘,”) “/>




















Step 3:
Create a custom watermark and select radio
button as Text watermark

Page Layoutà
watermarktext










































Text
field should be <?$wMark?>

Note
:
It should Match with the Name Specified while Creating the Variable. 

Click
on Apply




























Step
4:

Load xml data and see the preview  below


Output :


Related blogs