02 REFERENCE GUIDE
Working with HTML generation
The Midas Rich
Text LSX allows you to translate all or part of a rich text field into
HTML, or its successor, XHTML. The HTML produced is HTML 4.0
Transitional compliant, while the XHTML produced is XHTML 1.0
compliant. DXL will also be supported as well in the
future, once Lotus releases a final DTD for DXL and we incorporate
that support into Midas.
Since our goal
with the Midas Rich Text LSX is to give the developer maximum
flexibility, we have added some features to allow the developer to
control the generation and output of the HTML. Some of
these features include:
-
"Whole"
or "Fragment" - Allow generation of a complete self-standing
HTML document, or just a fragment to be inserted in another HTML
document, or anywhere in between. These choices are
controlled through the HTML generation properties (see section below).
-
Unformatted,
formatted with older HTML tags or formatted using CSS - Generated HTML
can contain no font and text attribute formatting, or older "
standard" HTML formatting, or CSS formatting controlled.
Each can be controlled to some extent by the developer.
The choice is determined by the HTML generation properties, and
the control is determined by style mappings created using the
SetStyleMapping method
(see sections below).
To allow finer
control over the HTML generated and to prevent the necessity for
post-processing, the
GenerateHTML method
allows a set of properties which may be used to modify the output
produced. In addition, you may specify mappings between
certain font combinations and start/stop tags which indicate that
formatting.
Below are the
properties which may be set to control the HTML generate of the
GenerateHTML method
.
Default values for HTML and XHTML are shown directly after each
entry. The string may be delimited with single quotes ( '
), double quotes ( " ), or vertical bars ( | ), standard
delimiters for LotusScript. Whichever delimiter starts the
string must end it, but the others may be used inside the string.
Thus, Preface=|Content-Type: text/html; charset="us-ascii"|
allows you to quote a portion of the string.
Setting Destination of HTML
Destinations are
new in Version 3.30. They are like "skins" for
the UI, in that they set a number of different properties as defaults
and then allow individual properties to be overwritten. The
exact makeup of these destination sets may be subject to change, so
feel free to set any explicit settings that you need. All
explicitly set properties will override any implicitly set by the
Destination property.
Destination="File", "MIME", "MSWord"
(no default)
Controlling segments of HTML file
Generation="Whole", "Fragment" (defaults to
"Whole". "Fragment" excludes all of the
following segments that are not explicitly set. Set any
segment to "*" to use normal defaults)
MoveStylesInline="Yes", "No" (defaults to
"No". "Yes" means each <div> tag
will have the margins and style attributes in-line, whereas "
No" means that margin and paragraph information will be
consolidated into a cleass which can be used in the <div> tags)
Preface="string" (no default value for HTML or XHTML)
Doctype="string" (see below for HTML and then XHTML
default values)
-
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "
http://www.w3.org/TR/REC-html40/loose.dtd">
-
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
LanguageAbbrev="string" (Defaults to "en"
. Used in <html lang="string"> portion of
default OpeningTag below)
OpeningTag="string" (see below for HTML and then XHTML)
-
<html
lang="en">
<!--
Midas Rich Text LSX Version 2.50, mm/dd/yy -->
-
<html
xmlns="http://www.w3.org/1999/xhtml" lang="en">
<!-- Midas Rich Text LSX Version 2.50, mm/dd/yy -->
HeadTag="string" (see below for HTML and then XHTML)
-
<head><
title></title><meta name="ABSTRACT" content="
Everything"></head>
-
<head><
title></title><meta name="ABSTRACT" content="
Everything" /></head>
Title="string" (if complete HeadTag not set above)
BaseHREF="url" (if complete HeadTag not set above)
AddStyleSheetInfo="style-sheet-info" (no default value
for HTML or XHTML. These will be added in the style portion
of the Head tag if the whole HTML/XHTML file is generated, or in the
style portion in the beginning of an HTML fragment. Often
used in conjunction with the
SetStyleMapping method
)
OpeningGlobalStyle="string" (see below for HTML and
then XHTML)
-
<style
type=\"text/css\">* {font-size: 12pt}</style>
-
<style
type=\"text/css\">* {font-size: 12pt}</style>
OpeningBody="string" (see below for HTML and then
XHTML)
-
<body
text='#000000' bgcolor='#ffffff'>
-
<body
text='#000000' bgcolor='#ffffff'>
ClosingBody="string" (see below for HTML and then
XHTML)
-
</body>
-
</body>
ClosingTag="string" (see below for HTML and then XHTML)
-
</html>
-
</html>
Postscript="string" (no default value for HTML or
XHTML)
Controlling output of HTML
AddNewlines="NL", "CRLF",""
(defaults to "". If this is NL or CRLF, then
approximately every 65 characters, but only without breaking a token,
a newline character will be inserted. The NL indicates a
rich text newline, which is a Char(0), while the CRLF indicates a
carriage return/line feed combination. The former is useful
if the HTML is to be written to a rich text field, while the CRLF is
useful if the HTML is to be written to an external file)
AllowEmptyDivs="Yes", "No" (defaults to "
Yes". Set to "No" to suppress empty <
div></div>)
ConsolidatePABIDS="Yes", "No" (defaults to
"No". Set to "Yes" to make identical
paragraphs use shared DIV ids)
ContentTransferEncoding="quoted-printable" (defaults to
"". If set to "quoted-printable", the
HTML will be generated with quoted-printable encoded characters and
line lengths as used in MIME messages)
OutputToEvent="Yes", "No", num (if the
generated output is greater than the size of the internal buffer, this
will raise the
ActOnText event
and pass the full or almost full buffer. See the Generate
HTML sample database to see how the
A
ctOnText event
must be set up using an On Event ActOnText from rtchunk Call ActOnText
type syntax. The size of the internal buffer is 8194 if the
OutputToEvent='Yes', and
num
if the OutputToEvent=
num
.
Please note that even if OutputToEvent is set to Yes or a num, the
final part of the generated HTML will still be in the return value for
the GenerateHTML call)
RespectHiddenFormulas="Yes", "No" (defaults
to "No", meaning that hide-when formulas are ignored when
generating HTML. Setting this to "Yes" means that
hide-when formulas will be evaluated when the agent is run, but they
will be evaluated with the user name of the device running the script,
which may be a server name rather than the name used in the original
context)
StandardFontTags="Yes", "No" (defaults to
"No", meaning that traditional HTML font tags will be used
in place of CSS to control fonts, text attributes and point sizes)
UseXMLEntities="Yes", "No" (defaults to
'No'. If Yes, XHTML generated will use proper XML entities,
such as å instead of å for å)
WAICompliant="Yes", "No", num (defaults to
'No'. If Yes, HTML generated will comply with Web
Accessibility Initiative guidelines and Section 508 guidelines.
This includes issues such as creating alt tags where relevant,
using titles where supplied. This is likely to change over
subsequent versions as guidelines change and better strategies are
devised for improving the HTML generated to meet the old and new
guidelines
)
Controlling presentation of Tables
CSSBorders="Yes", "No" (defaults to "
No". "Yes" means that table borders are set
via CSS rather than the border attribute, which allows each cell
border to be separately controlled rather than all the same for a
table)
Controlling presentation of Images
ImageHandling="IGNORE", "IN-PLACE", "TO
DISK", "TO RESOURCE" (defaults to "IN-PLACE"
. "IGNORE" means that images are not included at
all; "IN-PLACE" means that graphics are referenced in the
original field just as Domino does; "TO DISK" means that
JPEG and GIF images are saved to the file system, while bitmap images
are still referenced in place; and "TO RESOURCE" means that
JPEG and GIF images are saved as to the current or specified database
as image resources). Please note that along with Version
2.50, we have introduced a new technique to convert bitmaps to GIF
files, thus allowing their export to the file system. This
technique is described in the Converting Bitmaps to GIFs technote
ImageServer="server" (defaults to "", a local
database. Only used when ImageHandling="TO RESOURCE")
ImageFilePath="filepath" (defaults to
"", the current database. Only used when ImageHandling="
TO RESOURCE")
ImageDirectory="directory" (defaults to "
c:\temp\". Only used when ImageHandling="TO DISK")
ImageOverwrite="Yes", "No", if the image file
or image resource already exists, it will not be overwritten if this
is No. (Defaults to Yes)
ImageUNIDAsFolder="Yes", "No", if this is
Yes, the image file or image resource is created using the document's
UNID as a folder, otherwise it is created as the first part of the
name. (Defaults to Yes)
ImageURLDirectory="url-start" (defaults to "/"
, indicating relative URLs. Should start with "
http://" if absolute URL )
ImageUseName="Yes", "No", if Yes then if the
graphic has an HTML property set for Name, this is used as the file
name in the specified directory or the image resource name in the
given database. If No, the filename or image resource name
will be generated using the UNID and offset. (Defaults to No)
InPlaceImageURLDirectory="url-start" (defaults to "
/", indicating relative URLs. Should start with "
http://" if absolute URL. Used for those images which
must remain in-place)
OpenElementString="string" (defaults to "
?OpenElement&FieldElemFormat=gif" for bitmaps and other "
in-place" images to match Domino R4/R5 standard. Could
be changed to "!OpenElement&FieldElemFormat=gif" to
match newer R5 standard)
OpenImageResourceString="string" (defaults to "
?OpenImageResource" for image resource references.
Could be changed to "!OpenImageResource" to match R5 URL
standard)
Controlling presentation and handling of attachments
AttachmentHandling="IN-PLACE", "TO DISK"
(defaults to "IN-PLACE". "IN-PLACE"
means that file attachments are referenced in the original field just as Domino does; "TO DISK" means that file attachments are
detached to the file system to the specified directory)
AttachmentDirectory="directory" (defaults to "
c:\temp\". Only used when AttachmentHandling="TO DISK")
AttachmentGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the attachment. In a future
version, the actual graphic used in rich text will be available, but
for now it is not. Should start with "
http://" if absolute URL. If set to "", no
image will be used, and the file will be represented by a text link. )
AttachmentTextInLink="Yes", "No" (defaults to
"Yes". When an AttachmentGraphic is specified and this is
set to No, the text link will be eliminated. If Yes, both
the graphic and text link will be present)
AttachmentURLDirectory="url-start" (defaults to "
/", indicating relative URLs. Should start
with "http://" if absolute URL )
InPlaceAttachmentURLDirectory="url-start" (defaults to
"/", indicating relative URLs. Should
start with "http://" if absolute URL. Used for in
place attachments as opposed to external attachments)
Controlling presentation of Doclinks, View links, DB links URL Links
RaiseLinkEvent="All", "Doclink", "
URL" (by default, no events are raised. If "
All" is specified, an event is raised for all doclinks and URL
links, while if "Doclink" is specified, an event is raised
only for doclinks, while if "URL" is specified, an event is
raised only for URL links. There must be an On Event
QueryLinkData call to sent the event handler. See the
Generate HTML sample db for a working example)
LinkURLDirectory="url-start" (defaults to "/"
, indicating relative URLs. Should start with "
http://" if absolute URL )
OpenDocumentString="string" (defaults to "
?OpenDocument" for doclinks to match Domino R4/R5 standard.
Could be set to "!OpenDocument" to match newer R5
standard )
OpenViewString="string" (defaults to "
?OpenView" for view links to match Domino R4/R5 standard.
Could be set to "!OpenView" to match newer R5 standard
)
OpenDatabaseString="string" (defaults to "
?OpenDatabase" for db links to match Domino R4/R5 standard.
Could be set to "!OpenDatabase" to match newer R5
standard )
AnchorLinkGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the anchor link. If set to
"", the standard anchor link image will be used)
DoclinkGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the doclink. If set to
"", the standard doclink image will be used)
ViewLinkGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the view link. If set to
"", the standard view link image will be used)
DBLinkGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the db link. If set to
"", the standard db link image will be used)
BrokenLinkGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent a broken link, if identified)
BrokenLinkURL="url" (defaults to "".
Represents a relative or absolute URL which will replace
the broken link, if identified)
Controlling presentation and handling of bullets and other lists
CSSBulletGraphic="url" (defaults to "".
If set to an image URL, that image will be used to represent
bullets in a bullet list)
CSSCheckBulletGraphic="url" (defaults to ""
. If set to an image URL, that image will be used to
represent circles in a check list)
CSSCircleBulletGraphic="url" (defaults to ""
. If set to an image URL, that image will be used to
represent circles in a circle list)
CSSSquareBulletGraphic="url" (defaults to ""
. If set to an image URL, that image will be used to
represent circles in a square bullet list)
Controlling presentation and handling of sections
ExpandGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the expand hinkyminky. If
set to "", the standard image will be used)
CollapseGraphic="url" (defaults to "".
Represents a relative or absolute URL to a graphic image
which will be used to represent the collapse hinkyminky. If
set to "", the standard image will be used)
SectionOpenTag="str" (defaults to "".
If set, this will be used when a section is started)
SectionCloseTag="str" (defaults to "".
If set, this will be used when a section is finished)
SectionIncludeTitle="Yes", "No" (defaults to
"No". If set to Yes, the section title will be
included as
<h3>title</h3>
)
Controlling presentation of Text
DefaultFontFace="font-face" (defaults to "Default
Sans Serif")
DefaultTextAttributes="text-attributes" (defaults to "
Plain")
DefaultPointSize="point-size" (defaults to "
10")
DefaultColor="font-color" (defaults to "Black"
)
DefaultStyleName="style-name" (defaults to ""
, no default style-name)
ForceFontColor="Yes", "No" (defaults to "
No". If set to Yes, the <font color=...> tag will
always be generated if StandardFontTags="Yes")
ForceFontFace="Yes", "No" (defaults to "
No". If set to Yes, the <font face=...> tag will
always be generated if StandardFontTags="Yes")
ForceFontSize="Yes", "No" (defaults to "
No". If set to Yes, the <font size=...> tag will
always be generated if StandardFontTags="Yes")
Font1=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="1" (Defaults to 8)
Font2=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="2" (Defaults to 10)
Font3=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="3" (Defaults to 12)
Font4=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="4" (Defaults to 14)
Font5=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="5" (Defaults to 18)
Font6=ptsize, if specified and if StandardFontTags="Yes"
, any point size this size or smaller will be specified as Font
Size="6" (Defaults to 24)
PreserveSpaces="Yes", "No" (defaults to "
No", meaning that spaces will not be translated to non-blanking
spaces)
PreserveTabs="Yes", "No", "num"
(defaults to "No", meaning that tabs will not be translated
to non-blanking spaces. If "Yes", tabs will be
replaced with 3 non-blanking spaces. If a number is
specified, that is the number of non-blanking spaces which will
replace each tab)
StandardFontTags="Yes", "No" (defaults to
"No", meaning that traditional HTML font tags will be used
in place of CSS to control fonts, text attributes and point sizes)
SuppressFonts="All", "Attr", "Color"
, "Face", or "Size" (defaults to "",
meaning fonts will be specified in the tags or styles. You
can also use any combination of these by specifying "
Face+Size", for example, which would suppress specification of
font face and point size, but would still use specification of
attributes such as bold and italics, and font color)
Example: Sample rich text field rendered to HTML by various methods
Assume that
everything between the following two horizontal rules is in a sample
rich text field we will render:
The paragraph
before the table is presented with one and a half spacing below the
text to provide easier viewing of the separate paragraphs.
This shows up best with bullet items:
|
Text in the first
cell |
Image in the
second cell
|
|
Text in the third
cell |
Doclink in the
fourth cell ==> |
|
A mix of
bold
, underline
or
both
, and text in 10
pt., 12 pt., 14pt., 16pt., 18pt., and 20 pt.
Besides, there is
text in bold
red
,
magenta
and
green
.
|
Text after the
table
First, here is a
comparison of the rendering done by Domino and by the Midas Rich Text
LSX using default parameters:
Rendered to HTML by Domino 5.0.4 (saved as image for display
purposes):
Rendered to HTML by Midas Version 2.23 (saved as image for display
purposes):
There are several
issues with the Domino rendering that are fixed wiith the Midas
rendering.
-
The table is
indented erroneously to the indentation of the bullet text.
(Bug in all current versions of Domino)
-
The table extends
beyond the right margin, possibly due to the faulty indentation.
-
The bullet items
are not separated by the one and a half spacing.
-
The text after the
table has an extra blank line before it.
-
The 12pt. text
appears to be in bold, although it should not be.
-
The point sizes
are approximations based on HTML font sizes, instead of the true point
sizes used by Midas. (Since style sheets are used, true
point sizes can be used as well).
Having seen the
difference between the standard rendering done by Domino and Midas,
let's see what different HTML we could have generated depending on
some of the various options and properties used by the
GenerateHTML method
.
Test 1: HTML 4.01 with CSS (default)
Call with parameters:
Call rtchunk.GenerateHTML("", "HTML",
|OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html lang="
en"><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 -->
<head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Everything"><style
type="text/css">div.pabid1 {} ul.pabid2 {margin-left:
0.25in; list-style: disc outside; margin-top: 0; margin-bottom: 0; }
ul.pabid2 LI {margin-bottom: 0.5em; } div.pabid7 {} </style><
/head><body text='#000000' bgcolor='#ffffff'>The paragraph
before the table is presented with one and a half spacing below the
text to provide easier viewing of the separate paragraphs.
This shows up best with bullet items:<ul class="
pabid2"><li>The
first</li><li>The second</li></ul><table width='100%' border='1'><tr width='353' valign='top'><td
valign='top' width='353'>Text in the first cell</td><td width='353'><span style="{ font-family: 'Comic Sans
MS'}">Image in the second cell </span><img
src="/GenHTML.nsf/0/1784546427c58e89852569ec005026c3/Body/0.306?OpenElement&FieldElemFormat=gif" height="21"
width="21" border="0"></td></tr><tr width='353' valign='top'><td valign='top' width='353'>Text
in the third cell</td><td width='353'><span style="{ font-family: 'Comic Sans MS'}">Doclink in the fourth cell
==> </span><a
href="/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F54852568F9005195EB?OpenDocument"><img
src="/icons/doclink.gif" border="0"></a></td></tr><tr width='353' valign='top'><td
width='707' colspan='2'>A mix of <b>bold</b>, <span style="{text-decoration: underline;
}">underline</span> or <span style="{text-decoration: underline; }"><b>both</b></span>, and
text in 10 pt., <span style="{font-size: 12pt; }">12 pt.</span>, <span style="{font-size: 14pt;
}">14pt.</span>, <span style="{font-size: 16pt; }">16pt.</span>, <span style="{font-size: 18pt;
}">18pt.</span>, and <span style="{font-size: 20pt; }">20 pt.</span><div
class="pabid6">Besides, there is text in bold <span style="{color: rgb(255,0,0);
}"><b>red</b></span>, <span style="{color: rgb(255,0,255); }"><b>magenta</b></span>
and <span style="{color: rgb(0,128,128);
}"><b>green</b></span>.</div></td></tr></table>Text after the table</body></html>
Test 2: XHTML 1.0 with CSS (default)
Call with parameters:
Call rtchunk.GenerateHTML("", "XHTML",
|OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><
html xmlns="http://www.w3.org/1999/xhtml" lang="en"
><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 --><
head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Everything"><style
type="text/css">div.pabid1 {} ul.pabid2 {margin-left:
0.25in; list-style: disc outside; margin-top: 0; margin-bottom: 0; }
ul.pabid2 LI {margin-bottom: 0.5em; } div.pabid7 {} </style><
/head><body text='#000000' bgcolor='#ffffff'>The paragraph
before the table is presented with one and a half spacing below the
text to provide easier viewing of the separate paragraphs.
This shows up best with bullet items:<ul class="
pabid2"><li>The first</li><li>The second<
/li></ul><table width='100%' border='1'><tr
width='353' valign='top'><td valign='top' width='353'>Text in
the first cell</td><td width='353'><span style="{
font-family: 'Comic Sans MS'}">Image in the second cell <
/span><img src="
/GenHTML.nsf/0/072f952a315c9f36852569ec0061ea69/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0" /></td></tr><tr width='353'
valign='top'><td valign='top' width='353'>Text in the third
cell</td><td width='353'><span style="{
font-family: 'Comic Sans MS'}">Doclink in the fourth cell
==> </span><a href="
/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F54852568F9005195EB?OpenDocument"
><img src="/icons/doclink.gif" border="0">
</a></td></tr><tr width='353' valign='top'><
td width='707' colspan='2'>A mix of <b>bold</b>, <
span style="{text-decoration: underline; }">underline<
/span> or <span style="{text-decoration: underline; }"
><b>both</b></span>, and text in 10 pt., <span
style="{font-size: 12pt; }">12 pt.</span>, <span
style="{font-size: 14pt; }">14pt.</span>, <span
style="{font-size: 16pt; }">16pt.</span>, <span
style="{font-size: 18pt; }">18pt.</span>, and <
span style="{font-size: 20pt; }">20 pt.</span><
div class="pabid6">Besides, there is text in bold <span
style="{color: rgb(255,0,0); }"><b>red</b><
/span>, <span style="{color: rgb(255,0,255); }"><
b>magenta</b></span> and <span style="{color:
rgb(0,128,128); }"><b>green</b></span>.<
/div></td></tr></table>Text after the table<
/body></html>
Test 3: HTML 4.01 with CSS, chunk narrowed down to "Table
1"
Call with parameters:
Call rtchunk.GenerateHTML("Table 1", "HTML",
|OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html lang="
en"><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 -->
<head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Table 1"></head>
<body text='#000000' bgcolor='#ffffff'><table width='100%'
border='1'><tr width='353' valign='top'><td valign='top'
width='353'>Text in the first cell</td><td width='353'>
<span style="{ font-family: 'Comic Sans MS'}">Image in
the second cell </span><img src="
/GenHTML.nsf/0/8650dacceddab666852569ec0061ea95/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0"></td></tr><tr width='353'
valign='top'><td valign='top' width='353'>Text in the third
cell</td><td width='353'><span style="{
font-family: 'Comic Sans MS'}">Doclink in the fourth cell
==> </span><a href="
/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F5485256
8F9005195E
B?OpenDocument"><img src="/icons/doclink.gif" border="0"></a></td></tr><tr width='353'
valign='top'><td width='707' colspan='2'>A mix of <b>bold</b>, <span style="{text-decoration: underline;
}">underline</span> or <span style="{text-decoration: underline; }"><b>both</b></span>, and
text in 10 pt., <span style="{font-size: 12pt; }">12 pt.</span>, <span style="{font-size: 14pt;
}">14pt.</span>, <span style="{font-size: 16pt; }">16pt.</span>, <span style="{font-size: 18pt;
}">18pt.</span>, and <span style="{font-size: 20pt; }">20 pt.</span><div
class="pabid6">Besides, there is text in bold <span style="{color: rgb(255,0,0);
}"><b>red</b></span>, <span style="{color: rgb(255,0,255); }"><b>magenta</b></span>
and <span style="{color: rgb(0,128,128);
}"><b>green</b></span>.</div></td></tr></table></body></html>
Test 4: HTML 4.01 with CSS, chunk narrowed down to "Before
Table 1"
Call with parameters:
Call rtchunk.GenerateHTML("Before Table 1", "HTML",
|OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html lang="
en"><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 -->
<head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Before Table 1"><
style type="text/css">div.pabid1 {} ul.pabid2
{margin-left: 0.25in; list-style: disc outside; margin-top: 0;
margin-bottom: 0; } ul.pabid2 LI {margin-bottom: 0.5em; } <
/style></head><body text='#000000' bgcolor='#ffffff'>The
paragraph before the table is presented with one and a half spacing
below the text to provide easier viewing of the separate
paragraphs. This shows up best with bullet
items:<ul class="pabid2"><li>The first</li>
<li>The second</li></ul></body></html>
Test 5: HTML 4.01 without CSS
Call with parameters:
Call rtchunk.GenerateHTML("", "HTML",
|StandardFontTags='Yes' OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html lang="
en"><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 -->
<head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Everything"><
/head><body bgcolor='#ffffff'>The paragraph before the table
is presented with one and a half spacing below the text to provide
easier viewing of the separate paragraphs. This
shows up best with bullet items:<ul><li>The first<
/li><li>The second</li></ul><table width='100%'
border='1'><tr width='353' valign='top'><td valign='top'
width='353'>Text in the first cell</td><td width='353'>
<font face='Comic Sans MS'>Image in the second cell <img
src="
/GenHTML.nsf/0/7e5fe2f863365a1f852569ec0061eae7/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0"></font></td></tr><tr
width='353' valign='top'><td valign='top' width='353'>Text in
the third cell</td><td width='353'><font face='Comic
Sans MS'>Doclink in the fourth cell ==> <a href="
/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F54852568F9005195EB?OpenDocument"
><img src="/icons/doclink.gif" border="0">
</a></font></td></tr><tr width='353'
valign='top'><td width='707' colspan='2'>A mix of <b>
bold</b>, <u>underline</u> or <b><u>
both</u></b>, and text in 10 pt., <font size='4'>12
pt.</font>, <font size='5'>14pt.</font>, <font
size='5'>16pt.</font>, <font size='6'>18pt.</font>
, and <font size='6'>20 pt.<br></font>Besides, there
is text in bold <font color='#ff0000'><b>red</b><
/font>, <font color='#ff00ff'><b>magenta</b><
/font> and <font color='#008080'><b>green</b><
/font>.</td></tr></table>Text after the table<
/body></html>
Test 6: XHTML 1.0 without CSS
Call with parameters:
Call rtchunk.GenerateHTML("", "XHTML",
|StandardFontTags='Yes' OutputToEvent='Yes'|)
HTML generated:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><
html xmlns="http://www.w3.org/1999/xhtml" lang="en"
><!-- Midas Rich Text LSX Version 2.23, 02/09/2001 --><
head><title></title><meta http-equiv="
Content-Style-Type" content="text/css" /><meta
name="ABSTRACT" content="Everything"><
/head><body bgcolor='#ffffff'>The paragraph before the table
is presented with one and a half spacing below the text to provide
easier viewing of the separate paragraphs. This
shows up best with bullet items:<ul><li>The first<
/li><li>The second</li></ul><table width='100%'
border='1'><tr width='353' valign='top'><td valign='top'
width='353'>Text in the first cell</td><td width='353'>
<font face='Comic Sans MS'>Image in the second cell <img
src="
/GenHTML.nsf/0/db926bd0add13c31852569ec0061eb10/Body/0.306?Open
Element&FieldElemFormat=gif" height="21" width="21" border="0"
/></font></td></tr><tr width='353' valign='top'><td valign='top' width='353'>Text in the third
cell</td><td width='353'><font face='Comic Sans MS'>Doclink in the fourth cell ==> <a
href="/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F54852568F9005195EB?OpenDocument"><img
src="/icons/doclink.gif" border="0"></a></font></td></tr><tr width='353'
valign='top'><td width='707' colspan='2'>A mix of <b>bold</b>, <u>underline</u> or
<b><u>both</u></b>, and text in 10 pt., <font size='4'>12 pt.</font>, <font
size='5'>14pt.</font>, <font size='5'>16pt.</font>, <font size='6'>18pt.</font>, and <font size='6'>20
pt.<br /></font>Besides, there is text in bold <font color='#ff0000'><b>red</b></font>, <font
color='#ff00ff'><b>magenta</b></font> and <font
color='#008080'><b>green</b></font>.</td></tr></table>Text after the table</body></html>
Test 7: Fragment of HTML 4.01 with CSS, chunk narrowed down to "
Table 1"
Call with parameters:
Call rtchunk.GenerateHTML("Table 1", "HTML",
|StandardFontTags='Yes' OutputToEvent='Yes'|)
HTML generated:
<table
width='100%' border='1'><tr width='353' valign='top'><td
valign='top' width='353'>Text in the first cell</td><td
width='353'><span style="{ font-family: 'Comic Sans
MS'}">Image in the second cell </span><img src="
/GenHTML.nsf/0/a29d6daa90d34330852569ec0061eb39/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0"></td></tr><tr width='353'
valign='top'><td valign='top' width='353'>Text in the third
cell</td><td width='353'><span style="{
font-family: 'Comic Sans MS'}">Doclink in the fourth cell
==> </span><a href="
/852564840021BE86/A37A3BB73CD81BBF8525647B0016A596/0E22CD52A07C7F54852568F9005195EB?OpenDocument"
><img src="/icons/doclink.gif" border="0">
</a></td></tr><tr width='353' valign='top'><
td width='707' colspan='2'>A mix of <b>bold</b>, <
span style="{text-decoration: underline; }">underline<
/span> or <span style="{text-decoration: underline; }"
><b>both</b></span>, and text in 10 pt., <span
style="{font-size: 12pt; }">12 pt.</span>, <span
style="{font-size: 14pt; }">14pt.</span>, <span
style="{font-size: 16pt; }">16pt.</span>, <span
style="{font-size: 18pt; }">18pt.</span>, and <
span style="{font-size: 20pt; }">20 pt.</span><
div class="pabid6">Besides, there is text in bold <span
style="{color: rgb(255,0,0); }"><b>red</b><
/span>, <span style="{color: rgb(255,0,255); }"><
b>magenta</b></span> and <span style="{color:
rgb(0,128,128); }"><b>green</b></span>.<
/div></td></tr></table>
Test 8: Fragment of HTML 4.01 without CSS, chunk narrowed down to
"Graphic 1"
Call with parameters:
Call
rtchunk.GenerateHTML("Graphic 1", "HTML",
|StandardFontTags='Yes' Generation='Fragment' OutputToEvent='Yes'|)
HTML generated:
<img src="
/GenHTML.nsf/0/5533546d8bce5c4c852569ec0061eb67/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0">
Test 9: Fragment of XHTML 4.01 with CSS, chunk narrowed down to
"Graphic 1"
Call with parameters:
Call rtchunk.GenerateHTML("Graphic 1", "XHTML",
|Generation='Fragment' OutputToEvent='Yes'|)
HTML generated:
<img src="
/GenHTML.nsf/0/3a71e7adfd860ae1852569ec006cb0ba/Body/0.306?OpenElement&
FieldElemFormat=gif" height="21" width="21"
border="0" />