The xfj:overlay elements are one-page documents which are rendered over the resulting pages which match the rules specified in the overlay element:
<xfj:overlay id="overlay_id" z-index="integer_number">
<!-- xfj:document elements: external-content, input-xml, transform -->
<xfj:apply-rules>
<!-- one more xfj:match elements -->
</xfj:apply-rules>
</xfj:overlay>
The z-index attribute controls the layering, higher valued elements rendering on top of lower valued elements.
Overlays support all the child elements supported by xfj:document, plus the xfj:apply-rules which select which pages of which documents will have this overlay applied and which will be skipped.
NOTE:
If a DAL Job having an overlay contains Java scripts, the $mergedPageCount parameter is used to retrieve the number of pages of the document.
See also: