- An XML file with, for example, addresses and names.
- An a XML field which contains the letter text.
At runtime the designer will add the names and addresses by replacing placeholders in the letter text. There are 5 placeholders which are identified by using the text $1,$2,$3,$4 and $5.
We deliver 3 examples:
- Letter.xre: uses plain text for the letter contents
- LetterHTML.xre and LetterHTML2.xre: use HTML code within the XML file which provides rich text formatting features. Note however this will work at runtime only if you use the J4L FOP Printer server (or the WAR file in your own server).
The two Letter HTML example work in the same was as the plain text example with 2 minor differences, the content of the XML file and the flags in the designer. A use case for this is the Oracle APEX Rich Text editor. A business user can utilize the editor to enter text, this will save the HTML data in a Oracle table. Later on a XSL-FO can be created based on the stored HTML field.
The LetterHTML example takes an input field an CDATA element which contain HTML code.
- <h1>, <h2>, <h3>, <h4> , <h5> headers
- <p> paragraph
- <strong> or <b> bold text
- <em> or <i> italic text
- <u> underlined text
- <big> or <small> text size
- <br> line feed
- <ol>/<il> bullets
- color , font-size, font-style, font-family ,text-align attributes (for <p> and <span>)