36
5-6
Dynamic Converter Template Editor Guide
Globals
To include HTML or scripting code in the head of a web page:
1. Click Globals (
), and then click Head to open that tab dialog.
2. Click Include HTML or scripting code in the Head, and do one of the following:
ʍ Click Use the following, and enter the code in the box, or
ʍ Click Use the contents of this file and enter the path and file name in the text box
or click the Gallery button to locate the file.
3. Click OK.
Including HTML or Scripting Code Inside the
HTML Tag
You can include HTML or scripting code inside the HTML tag, which will be applied
globally to your Web output pages. Typically, the most likely use of this would be to drop
in the LANG or Version attributes.
The LANG attribute allows you to identify the language being used for the Web pages
associated with the template, while the Version attribute allows you to include a version
number in the output. The LANG attribute can be used by a user agent in different ways,
including assisting search engines and speech synthesizers.
To include HTML or scripting code in the HTML tag:
1. Click Globals (
), and then click Tags to open that tab dialog.
2. Select Include HTML or scripting code inside the HTML tag, and then click either
Use the following or Use the Contents of this file.
3. If you click Use the following, enter the code you want to use. For example, to denote
Web pages in Italian, you would enter LANG=“it” (note the quotations marks around
the language abbreviation).
4. If you click Use the contents of this file, enter the path and file name in the text box
to locate the file.
5. Click OK.
Note: You can convert HTML source files (for example, ASP files) by adding the
appropriate header information to the output files. In addition to following the above steps
to add the code containing the header information, you should select the Include for
HTML documents check box. The specified code will be added to the top of all HTML
source files associated with the selected template.
33
Dynamic Converter Template Editor Guide
5-7
Globals
Including Scripting Variables in Output
The global settings available to enhance the look or functionality of Web pages include the
option to include scripting variables in output pages. With JavaScript, these variables can
be used to access different information stored in the output HTML files.
To include scripting variables in output:
1. Click Globals (
), and then click Options to open that tab dialog.
2. Click Include scripting variables in output.
3. Click Variables contain source file details if you want the TRANSIT_SOURCE
variable to include the path of source documents.
4. Click OK.
Compliance With HTML 4.0
If you are using a CSS-enabled template, Template Editor is fully compliant with the
HTML 4.0 standard. If you are using a non–CSS-enabled template, Template Editor does
not comply with HTML 4.0 in one respect.
Template Editor seeks to duplicate the look of source documents in the Web pages you
create. As a result, in order to duplicate indentation in the source documents, Template
Editor uses the <BLOCKQUOTE> and <UL> tags. You can remove these if you want to
create a Web page that is fully compliant with HTML 4.0.
To create a Web page compliant with HTML 4.0:
1. Click Formatting (
).
2. Select all the elements in the Elements list.
3. Click the Paragraph tab to open that tab dialog.
Note: To temporarily remove HTML or scripting code from a body page but keep it
available for future use, clear the Include HTML or scripting code in the HTML tag
check box. When you’re ready to assign the code once more within the HTML tag, select
the check box.
Note: See also Handling an Event Within a Body Page (page 5-4) (which you would also
set up on the Tags tab dialog).
29
5-8
Dynamic Converter Template Editor Guide
Globals
4. Under Alignment, click Don’t Specify.
5. Click Save to save your template changes.
Generating XML-Compliant Output
The global settings available in Template Editor include the option to generate XML
output.
Any source documents that Dynamic Converter can turn into HTML output, it can just as
easily turn into XML output. As a result, information is no longer trapped in Web pages,
but can be made accessible to other applications.
To generate XML-compliant output:
1. Click Globals (
), and then click Options to open that tab dialog.
2. Click Generate XML-compliant output.
3. Click the XML Options button to open that dialog box (see note).
4. Enter XML code, as appropriate, at the top of all output HTML files and also at the
end by selecting the appropriate check boxes, clicking Use this (specify the code) or
Use the contents of this file (specify the file that contains the code).
5. Click OK to return to the Options tab dialog, and click OK again to return to the main
window.
Note: Template Editor generates XML output by removing telltale HTML elements such
as the HTML, Head, and Body tags. It also balances tags, where necessary. Thus, instead
of generating <IMG SRC=“filename.gif”> for HTML output, Template Editor will
generate <IMG SRC=“filename.gif”/> (the forward slash at the end of the element content
is used to denote the closing tag).
Note: In the XML Options dialog box you might specify an XML declaration such as
<?xml version=“1.0”?>
.
54
Dynamic Converter Template Editor Guide
5-9
Globals
S
UPPRESSING
C
ROSS
-R
EFERENCES
IN
A
W
EB
P
AGE
The global settings available to enhance the look of Web pages include the option to
include or suppress cross-references.
Template Editor automatically includes cross-references in Web pages and retains the
links inserted in the source document. But you can suppress the cross-references, if you
want.
To suppress cross-references in a web page:
1. Click Globals (
), and then click Options to open that tab dialog.
2. Clear the Include cross references in output check box.
3. Click OK.
The cross-references are no longer linked to the target text in the Web page (but they
remain linked in the source document).
S
PECIFYING
A
T
ARGET
FOR
E
XTERNAL
H
YPERLINKS
You may want to include a link from your Web site to an external location, such as an
altogether different Web site. When you include this type of external hyperlink, you may
want the site that is referenced in the link to open in a separate browser window. When
this occurs, those viewing your Web site retain their place on your site and can simply
close the window of the external site without losing their connection to your site.
To specify a target for external links:
1. Click Globals (
), and then click Options to open that tab dialog.
2. Under Include cross-references in output, select Use this target for external
hyperlinks, and enter _blank in the text box (see note).
3. Click OK.
Note: You can enter any standard HTML target into the text box depending on what you
want to do:
–_blank opens a new browser window that is separate from your web site.
–_self opens the document in the same window that contained the page with the link, so
the current page is “overwritten.”
–_top opens the document in the full browser window.
36
5-10
Dynamic Converter Template Editor Guide
Globals
G
RAPHICAL
E
LEMENTS
The following topics are covered in this section:
ʍ Setting Colors for a Web Page (page 5-10)
ʍ Selecting a Graphics Set for a Web Page (page 5-10)
ʍ Selecting a Background Graphic for a WebPage (page 5-11)
Setting Colors for a Web Page
The global settings available to enhance the look of your Web page include the option to
set colors for the text, links, and background of Web pages.
To set colors for a web page:
1. Click Globals (
), and then click Colors to open that tab dialog.
There are four color options plus a fifth choice that enables you to use a graphic
instead of a color as the background for the Web page.
2. To select a background color, click the Background check box and the click the Color
button to open the Color dialog box. Select any color, and then click OK to return to
the Color tab dialog.
The color you selected appears in the color bar and can also be viewed in the Sample
box.
3. Choose additional colors for other components of the Web page, if you want. The
Sample box will show the result of each color choice.
Selecting a Graphics Set for a Web Page
The global settings available to enhance the look of Web pages include the option to select
one of the 28 graphics sets supplied with Template Editor.
Making one of the graphics sets the default Set for a particular template ensures the
consistent use of navigation buttons and visual aids for all the Web pages created with that
template. You can switch between Sets at any time to dramatically alter the look and feel
of your Web pages.
Note: You can also select a background graphic, instead (see Selecting a Background
Graphic for a Web Page on page5-11). Or you can use a background color with a
background graphic, if the graphic is transparent.
36
Dynamic Converter Template Editor Guide
5-11
Globals
To select or change a set:
1. Click Globals (
), and then click Set to open that tab dialog.
2. The Set text box displays the name of any Set currently selected for the template.
Click Gallery to open the Gallery dialog box.
3. Select the Set you want to use. The graphics from the Set will appear in the Preview
window.
4. Click Make Default. The name of the selected Set is now in bold.
5. Click OK to return to the Set tab dialog.
6. Click Apply Set Selection. This will change all graphics currently specified in the
template.
A dialog box appears and asks you to confirm your selection of the Set. Click Yes.
7. Click OK to return to Globals.
Selecting a Background Graphic for a
Web Page
The global settings available to enhance the look of your Web pages include the option to
add a background graphic. You can choose a graphic from the selection of GIFs shipped
with Dynamic Converter.
To select a background graphic:
1. Click Globals (
), and then click Colors to open that tab dialog.
2. Click Use a background graphic.
If you have picked a graphics set from the Gallery and made it the default, the
background graphic from this Set will automatically display in the Sample box and the
path to the GIF will display in the File Name text box.
3. If you have not picked a graphics set, or want to select another graphic, do one of the
following:
ʍ Enter the path and file name of the graphic you want to use, or
ʍ Click Gallery and choose a graphic from the Backgrounds group of graphics.
Note: If you make a graphics set the default for a particular template, the background
graphic from that Set will automatically be applied by Template Editor to all Web pages
created with that template. You can change or turn off the background graphic in the
Colors tab dialog of Globals.
38
5-12
Dynamic Converter Template Editor Guide
Globals
4. Click OK.
O
THER
W
EB
P
AGE
S
ETTINGS
The following topics are covered in this section:
ʍ Adding an Address to your Web Page (page 5-12)
ʍ Adding an E-Mail Address to Your Web Page (page 5-13)
ʍ Adding Titles to a Web Page (page 5-13)
ʍ Displaying Headers and Footers in a Web Page (page 5-14)
ʍ Including Revision Information From Source Documents (page 5-15)
ʍ Setting the Order of Navigation and Visual Aids in a Web Page (page 5-15)
ʍ Skipping Single Hard Carriage Returns (page 5-16)
ʍ Suppressing Footnotes and Endnotes in aWebPage (page 5-16)
ʍ Adding Options to a Web Page (page 5-17)
ʍ Suppressing Tables in a Web Page (page 5-17)
Adding an Address to your Web Page
The global settings available to enhance the look of your Web page include the option to
add an address to Web pages.
To add an address to a Web page
1. Click Globals (
), and then click Address to open that tab dialog.
2. Under Address Lines, click Include Address. In the four text boxes, enter the
information you want to display in your Web page. It will appear at the end of the
page.
Note: The address can contain any kind of information. For example, you might enter
a copyright line here.
3. Click OK.
Note: You can use a background color instead of a graphic, if you want. See Setting Colors
for a Web Page (page5-10). You can also use a background color with a background
graphic, if the graphic is transparent.
Documents you may be interested
Documents you may be interested