User`s guide

Add Holes in an HTML Template
13-125
Replace STYLE_NAME with the name of a default text (HTML span element) style to
use for formatting Text objects appended to this hole. If a Text object appended to
this hole does not specify a style name, the DOM API sets the text object StyleName
property to the default style name. The style must be defined in the style sheet of the
template. Defining in the template a default text style for hole content eliminates the
need to format hole content programmatically.
Set HOLEID to the ID of the hole, and use HOLE_DESCRIPTION to describe the hole.
5
Zip the template using the zipTemplate command.
Templates based on the DOM API default HTML template contain a style sheet for holes
that highlights the hole IDs when you display the template in a browser.
Create a Block Hole
1
Unzip the template using the unzipTemplate command.
2
Open the report.html document of the template in an HTML or text editor.
3
Position the insertion point at the desired location for the hole. You cannot set he
insertion point inside a paragraph.
4
Add code that uses this pattern:
<div>
<span>
<div class="Hole" data-default-hole-style-name="STYLE_NAME"
data-hole-id="HOLEID">
<span class="HoleId">HOLEID</span>
<span class="HoleDesc">HOLE_DESCRIPTION</span>
</div>
</span>
</div>
Replace STYLE with the name of a default paragraph (HTML p element) style to
use for formatting text content appended to this hole. If you do not specify a style
name for a Text object appended to this hole, the DOM API sets the text object
StyleName property to the default style name. The template style sheet must define
the default style. Defining a default paragraph style for hole content eliminates the
need to format hole content programmatically.
Set HOLEID to the ID of the hole, and use HOLE_DESCRIPTION to describe the hole.