Script Templates 7-35
7.6.4 SimpleToc
Figure 7–4 shows an example of the Simple TOC script template.
Figure 7–4 Example of the Simple TOC Script Template
The SimpleToc sample script template contains the following code: html
head { if element=property.title}
title{ insert element=property.title suppress=tags}title { else}
titleConverted { insert element=pragma.sourcefilename}title { if}
{ if element=pragma.cssfile} link rel=stylesheet href={ insert element=pragma.cssfile}link
{ if}
defaultPageTitle=Converted Content include std_html_head_declarations
head
include body_def include std_page_begin
include std_header
table border=0 cellpadding=0 cellspacing=0 width=550 trtd
{ repeat element=sections} { if element=sections.current.title}
a href={ link element=sections.current.bodyorimage} { insert element=sections.current.title suppress=tags}
a brbr
{ if}
{ if element=sections.current.type value=wp}
7-36 Administrators Guide for Dynamic Converter
{ if element=sections.current.headings.1.body} { repeat element=sections.current.headings}
a href={ link element=sections.current.headings.current.body} { insert element=sections.current.headings.current.title
suppress=tags} a
brbr
{ if element=sections.current.headings.current.headings.1.body} { repeat element=sections.current.headings.current.headings}
160;160;160;160;160; a href={ link
element=sections.current.headings.current.headings.current.body} { insert element=sections.current.headings.current.headings.current.title
suppress=tags} a
brbr { repeat}
{ if} { repeat}
{ if} { if}
{ repeat}
hr size=3hr { repeat element=sections}
{ insert element=sections.current.bodyorimage width=500} hr size=3hr
{ repeat}
{ if element=property.author} pbAuthor:bbrbr
{ insert element=property.author suppress=tags} p
{ if} brbr
{ if element=property.title} pbTitle:bbrbr{ insert element=property.title
suppress=tags}p { if}
brbr { if element=property.subject}
pbSubject:bbrbr{ insert element=property.subject suppress=tags}p
{ if} brbr
{ if element=property.keywords} pbKeywords:bbrbr{ insert element=property.keywords
suppress=tags}p { if}
brbr { if element=property.comment}
pbComment:bbrbr{ insert element=property.comment suppress=tags}p
{ if} brbr
tdtr table
include std_page_end
Script Templates 7-37
body html
7.6.5 Slideshow, Slideshowb, and Slideshowc