";
put "SAS Output Frame" / if !exists(value);
put VALUE;
put "" CR;
end;
define event top_code;
start:
set $content_position "first" /if cmp(type, 'f');
set $content_position "last" /if cmp(type, 'l');
set $content_orientation "horizontal" /if cmp(colcount, '1');
set $content_orientation "vertical" /if cmp(colcount, '2');
put "" nl;
end;
define event contents_pages_frameset;
start:
break /if !exists(pages_name, contents_name);
put "" nl;
end;
define event content_frameset;
put "23%" / if !exists(CONTENTSIZE);
put CONTENTSIZE;
end;
define event body_frameset;
put "*" / if !exists(BODYSIZE);
put BODYSIZE;
end;
define event pages_frame;
break /if !exists(pages_name);
put '" CR;
/* close up the frameset for the contents files if they both exist */
trigger contents_pages_frameset finish;
end;
define event content_frame;
break /if !exists(contents_name);
put '" CR;
end;
define event body_frame;
put '" CR;
/* create a frameset to hold the two contents files if they both exist. */
trigger contents_pages_frameset start/ if cmp($content_position, "last");
end;
define event doc;
start:
put HTMLDOCTYPE CR;
put "" CR;
finish:
put "" CR;
end;
define event doc_head;
start:
put "" CR;
put VALUE CR ;
finish:
put "" CR;
end;
define event code_body;
trigger contents_code;
end;
define event contents_bullet_style;
put "" CR CR;
end;
define event contents_javascript;
trigger contents_bullet_style;
trigger contents_inline_code /if !any(code_name, code_url);
trigger contents_code_link /if any(code_name, code_url);
put CR;
put "" CR;
end;
define event contents_inline_code;
trigger javascript_tag start;
trigger contents_code;
trigger javascript_tag finish;
end;
define event javascript_tag;
start:
put "" CR;
put "" CR;
end;
define event contents_code;
put "var openimage = 'folderopen.gif';" CR;
put "var closeimage = 'folderclosed.gif';" CR;
put CR;
put "var initialized = false;" CR;
put "var expanded = false;" CR;
put CR;
put "// Check for DOM support" CR;
put "var DOMsupport = false;" CR;
put 'if (document.getElementById && ' CR;
put ' document.createTextNode && ' CR;
put " document.createElement)" CR;
put " DOMsupport = true;" CR;
put CR;
put "function getAllLists()" CR;
put "//" CR;
put "// Get a list of all lists in the document" CR;
put "// " CR;
put "{" CR;
put " var lists = new Array();" CR;
put " var uls = document.getElementsByTagName('UL');" CR;
put " for (var i = 0; i < uls.length; i++)" CR;
put " lists[lists.length] = uls[i];" CR;
put " var ols = document.getElementsByTagName('OL');" CR;
put " for (var i = 0; i < ols.length; i++)" CR;
put " lists[lists.length] = ols[i];" CR;
put " return lists;" CR;
put "}" CR;
put CR;
put "function getAllListItems()" CR;
put "//" CR;
put "// Get a list of all list items in the document" CR;
put "//" CR;
put "{" CR;
put " return document.getElementsByTagName('LI');" CR;
put "}" CR;
put CR;
put "function expandCollapse()" CR;
put "{" CR;
put " if ( expanded ) collapseAll();" CR;
put " else expandAll();" CR;
put "}" CR;
put CR;
put "function collapseAll()" CR;
put "//" CR;
put "// Collapse all lists down to 'level' " CR;
put "//" CR;
put "{" CR;
put " initAll(null, false);" CR;
put " expanded = false;" CR;
put "}" CR;
put CR;
put "function expandAll(level)" CR;
put "//" CR;
put "// Expand all lists up to 'level' " CR;
put "//" CR;
put "{" CR;
put " initAll(level, true);" CR;
put " expanded = true;" CR;
put "}" CR;
put "" CR;
put "function initAll(level, visible)" CR;
put "//" CR;
put "// Expand/collapse all lists up to 'level' " CR;
put "//" CR;
put "{" CR;
put " if ( !DOMsupport ) return;" CR;
put CR;
put " // Initialize list elements to their starting behavior" CR;
put " if ( !initialized ) " CR;
put " {" CR;
put " initialized = true;" CR;
put CR;
put " // Set onclick events for all items with nested lists" CR;
put " var items = getAllListItems();" CR;
put " for (var i = 0; i < items.length; i++)" CR;
put " {" CR;
put " var elem = items[i];" CR;
put " if ( elem.getElementsByTagName('UL') ||" CR;
put " elem.getElementsByTagName('OL') )" CR;
put " {" CR;
put " elem.onclick = toggleView;" CR;
put " elem.style.cursor = 'pointer';" CR;
put " }" CR;
put " }" CR;
put CR;
put " collapseAll();" CR;
put " }" CR;
put CR;
put " // If level is undefined or less than zero, expand everything" CR;
put " if ( !level || level < 0 ) " CR;
put " level = -1;" CR;
put CR;
put " var lists = getAllLists();" CR;
put CR;
put " for (var i=0; i < lists.length; i++)" CR;
put " {" CR;
put " nesting = getNestingLevel(lists[i]);" CR;
put ' if ( nesting == 0 && visible == false )' CR;
put " continue;" CR;
put " if ( level == -1 || nesting < level )" CR;
put " {" CR;
put " setDisplay(lists[i], visible);" CR;
put CR;
put " var li = lists[i].parentNode;" CR;
put ' while ( li && li.nodeName != ''LI'' )' CR;
put " li = li.parentNode;" CR;
put " if ( li ) setImage(li, visible);" CR;
put " }" CR;
put " }" CR;
put "}" CR;
put CR;
put "function setDisplay(elem, visible)" CR;
put "{" CR;
put " var display = (visible) ? 'block' : 'none';" CR;
put " elem.style.display = display;" CR;
put "}" CR;
put CR;
put "function setImage(elem, visible)" CR;
put "{" CR;
put " if ( !openimage || !closeimage ) return;" CR;
put CR;
put " var images = elem.getElementsByTagName('IMG');" CR;
put " " CR;
put " if ( !images.length ) return;" CR;
put CR;
put " var image = images[0];" CR;
put CR;
put " image.src = ( visible ) ? openimage : closeimage;" CR;
put "}" CR;
put CR;
put "function toggleView(e)" CR;
put "//" CR;
put "// If the children of this item are hidden, display them." CR;
put "// If they are displayed, hide them." CR;
put "//" CR;
put "{" CR;
put " var elem = (window.event) ? window.event.srcElement : e.target;" CR;
put CR;
put ' while ( elem && elem.nodeName != ''LI'' )' CR;
put " {" CR;
put " if ( elem.nodeName == 'A' ) " CR;
put " return true;" CR;
put " elem = elem.parentNode;" CR;
put " }" CR;
put CR;
put " if ( !elem ) return;" CR;
put CR;
put " var children = elem.childNodes;" CR;
put CR;
put " for (var i = 0; i < children.length; i++)" CR;
put " {" CR;
put " c = children[i];" CR;
put ' if ( c.nodeName != ''UL'' && c.nodeName != ''OL'' ) continue;' CR;
put " if ( !c.style ) continue;" CR;
put " setImage(elem, (c.style.display != 'block'));" CR;
put " setDisplay(c, (c.style.display != 'block'));" CR;
put " }" CR;
put CR;
put " if (window.event) window.event.cancelBubble = true;" CR;
put " else e.stopPropagation();" CR;
put "" CR;
put " return false;" CR;
put "}" CR;
put "" CR;
put "function getNestingLevel(elem)" CR;
put "//" CR;
put "// Get the nesting level of the given list" CR;
put "//" CR;
put "{" CR;
put " var parent = elem.parentNode;" CR;
put " var level = 0;" CR;
put ' while ( parent && parent.nodeName != ''BODY'' )' CR;
put " { " CR;
put " if ( parent.nodeName == 'UL' || " CR;
put " parent.nodeName == 'OL' )" CR;
put " level++;" CR;
put " parent = parent.parentNode;" CR;
put " }" CR;
put " return level;" CR;
put "}" CR;
end;
define event contents_head;
start:
trigger doc_head;
finish:
trigger contents_javascript;
trigger doc_head;
end;
define event contents_code_link;
put "" CR;
put "" CR;
end;
define event top_head;
start:
put "" CR;
put VALUE CR;
finish:
put "" CR;
end;
define event doc_title;
put "";
put "SAS Output" / if !exists(VALUE);
put VALUE;
put "" CR;
end;
define event content_title;
put "";
put "SAS Output" / if !exists(VALUE);
put VALUE;
put "" CR;
end;
define event doc_meta;
put '' CR;
trigger show_charset;
put "" nl /if exists(value);
break /if !any( htmlcontenttype, encoding);
break /if ^exists(htmlcontenttype) and ^exists($show_charset);
put "' CR;
end;
define event top_meta;
put '' CR;
trigger show_charset;
put "" nl /if exists(value);
break /if !any( htmlcontenttype, encoding, $show_charset);
put "' CR;
end;
define event ie_check;
trigger javascript start;
put 'var _info = navigator.userAgent' CR;
put 'var _ie = (_info.indexOf("MSIE") > 0' CR;
put ' && _info.indexOf("Win") > 0' CR;
put ' && _info.indexOf("Windows 3.1") < 0);' CR;
set $ieCheckDone "true";
trigger javascript finish;
end;
/* Web Accessibility Feature 1194.22 (I) */
/*-----------------------------------------*/
define event doc_body;
put '" CR;
trigger pre_post;
put CR;
trigger ie_check;
finish:
trigger pre_post;
put "" CR;
end;
define event doc_foot;
start:
put "" CR;
finish:
put "" CR;
end;
/* Web Accessibility Feature 1194.22 (I) */
/*-----------------------------------------*/
define event javascript;
start:
put '" CR CR;
put '' CR; /* 508 */
end;
define event startup_function;
start:
put "function startup(){" CR CR;
finish:
put TAGATTR CR;
put "}" CR;
end;
define event shutdown_function;
start:
put "function shutdown(){" CR CR;
finish:
put TAGATTR CR;
put "}" CR;
end;
define event windowload;
put VALUE CR;
end;
define event contents;
start:
put HTMLDOCTYPE CR;
put "" CR;
finish:
put "" CR;
end;
define event contents_body;
start:
put "" CR;
finish:
put "" CR;
end;
define event preformatted;
start:
put "
";
finish:
put "
";
end;
define event contents_title;
put "";
end;
define event stylesheetclass;
put " font-family: " FONT_FACE;
put ";" CR / exists(FONT_FACE);
put " font-size: " FONT_SIZE;
put ";" CR / exists(FONT_SIZE);
put " font-weight: " FONT_WEIGHT;
put ";" CR / exists(FONT_WEIGHT);
put " font-style: " FONT_STYLE;
put ";" CR / exists(FONT_STYLE);
put " color: " FOREGROUND;
put ";" CR / exists(FOREGROUND);
put " text-decoration: " text_decoration;
put ";" CR / exists(text_decoration);
put " background-color: " BACKGROUND;
put ";" CR / exists(BACKGROUND);
put " background-image: url('" BACKGROUNDIMAGE "')" /if exists(backgroundimage);
put ";" CR / exists(BACKGROUNDIMAGE);
trigger margins;
/*trigger Border_shadow / if exists(BORDERCOLORDARK, BORDERCOLORLIGHT ); */
trigger Border;
put " list-style-type: " BULLET;
put ";" CR / exists(BULLET);
put " height: " OUTPUTHEIGHT;
put ";" CR / exists(OUTPUTHEIGHT);
put " width: " OUTPUTWIDTH;
put ";" CR / exists(OUTPUTWIDTH);
put " text-align: " / exists(just);
put $just_lookup[just];
put ";" CR / exists(just);
put " vertical-align: " / exists(vjust);
put $vjust_lookup[vjust];
put ";" CR / exists(vjust);
put " " htmlstyle;
put ";" CR / exists(htmlstyle);
end;
define event margins;
put " text-indent: " indent;
put ";" nl / exists(indent);
break /if cmp(htmlclass, 'contentItem');
break /if cmp(htmlclass, 'pagesItem');
break /if cmp(htmlclass, 'ContentFolder');
break /if cmp(htmlclass, 'ByContentFolder');
put " margin-left: " LEFTMARGIN;
put ";" CR / exists(LEFTMARGIN);
put " margin-right: " RIGHTMARGIN;
put ";" CR / exists(RIGHTMARGIN);
put " margin-top: " TOPMARGIN;
put ";" CR / exists(TOPMARGIN);
put " margin-bottom: " BOTTOMMARGIN;
put ";" CR / exists(BOTTOMMARGIN);
end;
define event Border_shadow;
put " border-left: " BORDERWIDTH;
put " outset: " / exists(BORDERCOLORLIGHT);
put ";" CR / exists(BORDERCOLORLIGHT);
put " border-top: " BORDERWIDTH;
put " outset: " / exists(BORDERCOLORLIGHT);
put ";" CR / exists(BORDERCOLORLIGHT);
put " border-right: " BORDERWIDTH;
put " outset: " / exists(BORDERCOLORDARK);
put ";" CR / exists(BORDERCOLORDARK);
put " border-bottom: " BORDERWIDTH;
put " outset: " / exists(BORDERCOLORDARK);
put ";" CR / exists(BORDERCOLORDARK);
end;
define event Border;
put " border-width: " borderwidth;
put ";" CR / exists(borderwidth);
put " border-top-width: " bordertopwidth;
put ";" CR / exists(bordertopwidth);
put " border-bottom-width: " borderbottomwidth;
put ";" CR / exists(borderbottomwidth);
put " border-right-width: " borderrightwidth;
put ";" CR / exists(borderrightwidth);
put " border-left-width: " borderleftwidth;
put ";" CR / exists(borderleftwidth);
put " border-color: " bordercolor;
put ";" CR / exists(bordercolor);
put " border-top-color: " bordertopcolor;
put ";" CR / exists(bordertopcolor);
put " border-bottom-color: " borderbottomcolor;
put ";" CR / exists(borderbottomcolor);
put " border-right-color: " borderrightcolor;
put ";" CR / exists(borderrightcolor);
put " border-left-color: " borderleftcolor;
put ";" CR / exists(borderleftcolor);
put " border-style: " borderstyle;
put ";" CR / exists(borderstyle);
put " border-top-style: " bordertopstyle;
put ";" CR / exists(bordertopstyle);
put " border-bottom-style: " borderbottomstyle;
put ";" CR / exists(borderbottomstyle);
put " border-right-style: " borderrightstyle;
put ";" CR / exists(borderrightstyle);
put " border-left-style: " borderleftstyle;
put ";" CR / exists(borderleftstyle);
end;
define event style_inline;
put ' ' tagattr;
break / if !any(font_face, font_size, font_weight, font_style,
foreground, background, backgroundimage,
LEFTMARGIN, RIGHTMARGIN, TOPMARGIN, bottommargin,
bullet, outputheight, outputwidth, htmlstyle, indent, text_decoration,
borderwidth,
bordertopwidth, borderbottomwidth, borderrightwidth, borderleftwidth,
bordercolor,
bordertopcolor, borderbottomcolor, borderrightcolor, borderleftcolor,
borderstyle,
bordertopstyle, borderbottomstyle, borderrightstyle, borderleftstyle);
put ' style="';
put " font-family: " FONT_FACE;
put ";" / exists(FONT_FACE);
put " font-size: " FONT_SIZE;
put ";" / exists(FONT_SIZE);
put " font-weight: " FONT_WEIGHT;
put ";" / exists(FONT_WEIGHT);
put " font-style: " FONT_STYLE;
put ";" / exists(FONT_STYLE);
put " color: " FOREGROUND;
put ";" / exists(FOREGROUND);
put " text-decoration: " text_decoration;
put ";" / exists(text_decoration);
put " background-color: " BACKGROUND;
put ";" / exists(BACKGROUND);
put " background-image: url('" BACKGROUNDIMAGE "')" /if exists(backgroundimage);
put ";" / exists(BACKGROUNDIMAGE);
put " margin-left: " LEFTMARGIN;
put ";" / exists(LEFTMARGIN);
put " margin-right: " RIGHTMARGIN;
put ";" / exists(RIGHTMARGIN);
put " margin-top: " TOPMARGIN;
put ";" / exists(TOPMARGIN);
put " margin-bottom: " BOTTOMMARGIN;
put ";" / exists(BOTTOMMARGIN);
put " text-indent: " indent;
put ";" / exists(indent);
trigger Border_inline ;
put " list_style_type: " BULLET;
put ";" / exists(BULLET);
put " height: " OUTPUTHEIGHT;
put ";" / exists(OUTPUTHEIGHT);
put " width: " OUTPUTWIDTH;
put ";" / exists(OUTPUTWIDTH);
/*
put " text-align: " / exists(just);
put 'center' /if cmp(just, 'c');
put 'right' /if cmp(just, 'r');
put 'left' /if cmp(just, 'l');
put ";" / exists(vjust);
put " vertical-align: " / exists(vjust);
put 'middle' /if cmp(vjust, 'c');
put 'top' /if cmp(vjust, 't');
put 'bottom' /if cmp(vjust, 'b');
put ";" / exists(vjust);
*/
put " " htmlstyle;
put ";" / exists(htmlstyle);
put '"';
end;
define event Border_inline;
put " border-width: " borderwidth;
put ";" / exists(borderwidth);
put " border-top-width: " bordertopwidth;
put ";" / exists(bordertopwidth);
put " border-bottom-width: " borderbottomwidth;
put ";" / exists(borderbottomwidth);
put " border-right-width: " borderrightwidth;
put ";" / exists(borderrightwidth);
put " border-left-width: " borderleftwidth;
put ";" / exists(borderleftwidth);
put " border-color: " bordercolor;
put ";" / exists(bordercolor);
put " border-top-color: " bordertopcolor;
put ";" / exists(bordertopcolor);
put " border-bottom-color: " borderbottomcolor;
put ";" / exists(borderbottomcolor);
put " border-right-color: " borderrightcolor;
put ";" / exists(borderrightcolor);
put " border-left-color: " borderleftcolor;
put ";" / exists(borderleftcolor);
put " border-style: " borderstyle;
put ";" / exists(borderstyle);
put " border-top-style: " bordertopstyle;
put ";" / exists(bordertopstyle);
put " border-bottom-style: " borderbottomstyle;
put ";" / exists(borderbottomstyle);
put " border-right-style: " borderrightstyle;
put ";" / exists(borderrightstyle);
put " border-left-style: " borderleftstyle;
put ";" / exists(borderleftstyle);
end;
define event embedded_stylesheet;
start:
put "" nl;
end;
define event style;
put "" CR;
end;
define event shortstyles;
/* put "" CR;*/
end;
define event alignstyle ;
putl '.l {text-align: left }';
putl '.c {text-align: center }';
putl '.r {text-align: right }';
putl '.d {text-align: "." }';
putl '.t {vertical-align: top }';
putl '.m {vertical-align: middle }';
putl '.b {vertical-align: bottom }';
putl 'TD, TH {vertical-align: top }';
putl '.stacked_cell{padding: 0 }';
end;
define event bodystyle;
style=body;
put "body {" CR;
trigger stylesheetclass;
put "}" CR;
trigger linkclass /if exists(linkcolor);
trigger vlinkclass /if exists(visitedlinkcolor);
trigger alinkclass /if exists(activelinkcolor);
end;
define event linkclass;
/* a:link, a:visited, a:hover, a:active */
put "a:link {" CR;
put "color:" linkcolor CR;
put "}" CR;
end;
define event vlinkclass;
put "a:visited {" CR;
put "color:" visitedlinkcolor CR;
put "}" CR;
end;
define event alinkclass;
put "a:active {" CR;
put "color:" activelinkcolor CR;
put "}" CR;
end;
define event titlestyle;
style = systemtitle;
put "h1 {" CR;
trigger stylesheetclass;
put "}" CR;
end;
define event proctitlestyle;
style = proctitle;
put "h2, h3, h4, h5, h6 {" CR;
trigger stylesheetclass;
put "}" CR;
end;
define event tablestyle;
style = table;
put "table {" CR;
trigger stylesheetclass;
put "}" CR;
end;
define event tdstyle;
style = data;
put "td {" CR;
trigger stylesheetclass;
put "}" CR;
end;
define event thstyle;
style = header;
put "th {" CR;
trigger stylesheetclass;
put "}" CR;
end;
define event list;
start:
put "<";
trigger list_tag;
trigger listclass;
put ">" CR;
finish:
put "";
trigger list_tag;
put ">" CR;
end;
/*-------------------------------------------------------eric-*/
/*-- All this so we don't get the style class on the top --*/
/*-- level of the list. If we did then the margins are --*/
/*-- much wider than we'd like. --*/
/*----------------------------------------------------14Jun02-*/
define event listclass;
break /if cmp(htmlclass, "contents");
break /if cmp(htmlclass, "pages");
putq " class=" HTMLCLASS ;
end;
define event list_entry;
start:
put "
" nl;
end;
define event anchor;
putq "" CR / if length(NAME);
end;
define event breakline;
put " ";
end;
define event splitline;
put " ";
end;
define event line;
put "";
end;
define event pagebreak;
put PAGEBREAKHTML CR;
end;
define event map;
start:
put "" CR;
end;
define event map_area;
start:
put "' CR;
end;
define event map_coordinate;
put ' coords="' / if !exists($coord_started);
put ',' / if exists($coord_started);
set $coord_started "true";
put coordinate;
end;
define event image;
put '
' nl;
put "" CR;
put "
" CR;
end;
define event style_align;
break /if !any(just, vjust);
put ' style="';
trigger inline_just /if exists(just) ;
trigger inline_vjust /if exists(just) ;
put '"';
end;
define event set_just_lookup;
set $just_lookup['c'] 'center';
set $just_lookup['r'] 'right';
set $just_lookup['d'] 'right';
set $just_lookup['l'] 'left';
set $just_lookup['C'] 'center';
set $just_lookup['R'] 'right';
set $just_lookup['D'] 'right';
set $just_lookup['L'] 'left';
set $vjust_lookup['t'] 'top';
set $vjust_lookup['m'] 'middle';
set $vjust_lookup['c'] 'middle';
set $vjust_lookup['b'] 'bottom';
set $vjust_lookup['T'] 'top';
set $vjust_lookup['M'] 'middle';
set $vjust_lookup['C'] 'middle';
set $vjust_lookup['B'] 'bottom';
end;
define event inline_just;
put ' text-align: ';
put $just_lookup[just] ';';
end;
define event inline_vjust;
put ' vertical-align: ';
put $vjust_lookup[vjust] ';';
end;
define event paragraph;
start:
put "
" nl;
put VALUE;
finish:
put "
" nl;
end;
/* Web Accessibility Feature 1194.2 (H) */
/*--------------------------------------*/
define event table;
start:
put "
" CR;
put "
" CR;
set $parent_table_spacing cellspacing;
set $parent_table_padding cellpadding;
finish:
put "
" CR;
put "
" CR;
end;
define event verbatim_container;
start:
put "
" CR;
put "
" CR;
finish:
put "
" CR;
put "
" CR;
end;
define event verbatim;
start:
put "
" CR;
trigger preformatted;
finish:
trigger preformatted;
put "
" CR;
end;
define event verbatim_text;
put value;
put nl;
end;
define event table_summary;
put ' summary='; /* 508 */
putq summary; /* 508 */
break /if exists(summary); /* 508 */
put '"'; /* 508 */
put "Procedure " proc_name ": "; /* 508 */
put output_label; /* 508 */
put output_name /if !exist(output_label); /* 508 */
put '"'; /* 508 */
end;
define event table_head;
put "" CR;
finish:
put "" CR;
end;
define event table_body;
put "" CR;
finish:
put "" CR;
end;
define event table_foot;
put "" CR;
finish:
put "" CR;
end;
define event colgroup;
put "
" CR;
finish:
put "
" CR;
end;
define event colspec_entry;
put "
" CR;
end;
define event row;
put "
" CR;
finish:
put "
" CR;
end;
/* Web Accessibility Feature 1194.22 (G&H) */
/*-----------------------------------------*/
define event rowcol;
putq ' rowspan=' ROWSPAN;
putq ' colspan=' COLSPAN;
trigger rowhead / breakif contains(HTMLCLASS,"RowHeader");
trigger colhead / if contains(HTMLCLASS,"eader");
end;
/* Web Accessibility Feature 1194.22 (G&H) */
/*-----------------------------------------*/
define event rowhead; /* 508 */
do /if exists(ROWSPAN);
put ' scope="rowgroup"';
else;
put ' scope="row"';
done;
end;
/* Web Accessibility Feature 1194.22 (G&H) */
/*-----------------------------------------*/
define event colhead; /* New Event */
do /if exists(COLSPAN);
put ' scope="colgroup"';
else;
put ' scope="col"';
done;
end;
/* for compatibility with past releases and other tagsets */
define event align;
trigger real_align start;
trigger real_align finish;
end;
define event real_align;
start:
set $vjust vjust;
set $just just;
set $just "r" /when cmp("d", just);
set $vjust "m" /when cmp("c", vjust);
put ' class="';
put $just ' ' $vjust /if any($just, $vjust);
unset $vjust;
unset $just;
finish:
put '"';
end;
define event classalign;
trigger real_align start;
put ' ' htmlclass;
trigger real_align finish;
end;
define event header;
start:
put "
";
trigger cell_value;
finish:
trigger cell_value;
put "
" CR;
end;
define event data;
start:
put "
";
trigger cell_value;
finish:
trigger cell_value;
put "
" CR;
end;
define event stacked_cell;
start:
put '
';
put '
' nl;
finish:
put '
' nl;
end;
define event stacked_value;
start:
put "
" nl;
trigger data;
finish:
trigger data;
put "
" nl;
end;
define event stacked_value_header;
start:
put "
" nl;
trigger header;
finish:
trigger header;
put "
" nl;
end;
define event cell_value;
start:
trigger preformatted /if asis;
set $close_hyperlink "true" / if exists(URL);
trigger hyperlink / if exists(URL);
put value / if !exists(URL);
finish:
trigger hyperlink / if exists($close_hyperlink);
unset $close_hyperlink;
trigger preformatted /if asis;
end;
define event cell_is_empty;
put ' ';
end;
define event alt_align;
putq ' align=' $just_lookup[just];
end;
/* Web Accessibility Feature 1194.22 (H) */
/*---------------------------------------*/
define event association;
put '
' nl;
put '
';
put "
" CR;
finish:
put "
" CR;
put "
" CR;
put "
" CR;
end;
define event assoc_end_got_capt;
put "";
end;
define event caption;
put "
";
put TEXT;
finish:
put "
" CR;
put "
" / if cmp(TYPE, "T");
put "
" / if cmp(TYPE, "L");
end;
/*==========ODA==========*/
define event pre_post;
start:
put PREHTML;
putq '' /if exists(PREIMAGE);
put PRETEXT;
finish:
put POSTTEXT;
putq '' /if exists(POSTIMAGE);
put POSTHTML;
end;
define event proc;
put "
" CR;
finish:
put "
" CR;
end;
define event output;
put "
" CR;
finish:
put "
" CR;
put " " CR;
end;
define event align_output;
put "
" CR;
finish:
put "
" CR;
end;
define event byline;
put "
";
put VALUE;
put "
" CR;
end;
define event proc_title;
put "
";
put VALUE;
put "
" CR;
end;
/*-------------------------------------------------------eric-*/
/*-- For inline formatting. Currently, everything is --*/
/*-- a span function. That could be enhanced to more --*/
/*-- varied events later. --*/
/*----------------------------------------------------5Mar 03-*/
define event span;
start:
trigger pre_post;
set $pre_post POSTTEXT;
do /if postimage;
set $pre_post $pre_post '' /if exists(POSTIMAGE);
done;
set $pre_post $pre_postput POSTHTML;
put '";
put value;
finish:
put "";
put $pre_post;
unset $pre_post;
end;
define event nbspace;
start:
put space ;
end;
define event format;
put '";
put value;
put "";
end;
define event title_format_section;
put '";
trigger hyperlink_value / if exists(URL);
put VALUE / if !exists(URL);
put "";
end;
define event proc_title_group;
finish:
put "
" nl;
end;
define event proc_note_group;
start:
put " " nl;
put "
" nl;
finish:
put "
" nl;
end;
define event system_title;
start:
put "
";
put VALUE;
break /if exists(value);
put ' ' /if exists(empty);
finish:
put "
" nl;
end;
define event system_footer;
start:
put "
";
put VALUE;
finish:
put "
" CR;
end;
define event note;
put "
";
put VALUE;
put "
" CR;
end;
define event warning;
put "
";
put VALUE;
put "
" CR;
end;
define event error;
put "
";
put VALUE;
put "
" CR;
end;
define event fatal;
put "
";
put VALUE;
put "
" CR;
end;
define event branch;
start:
break / if hidden;
trigger contents_branch;
finish:
break / if hidden;
trigger contents_branch;
end;
define event proc_branch;
start:
break / if hidden;
set $proc_name "true";
trigger contents_branch;
trigger pages_branch;
unset $proc_name;
finish:
break / if hidden;
set $proc_name "true";
trigger contents_branch;
trigger pages_branch;
unset $proc_name;
end;
define event leaf;
start:
break / if hidden;
trigger contents_leaf;
end;
/**********************************/
/* These events are specific to */
/* javameta output. Some of these */
/* are also applicable to the */
/* MSOffice2k tagset (cdh) */
/**********************************/
define event java_graph;
start:
put "