Date: Wed, 27 Feb 2002 08:22:58 -0500
Reply-To: Paige Miller <paige.miller@KODAK.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paige Miller <paige.miller@KODAK.COM>
Organization: Eastman Kodak Company
Subject: Problem with TEMPLATE & ODS HTML
Content-Type: text/plain; charset=us-ascii
I am attempting to use some PROC TEMPLATE code that was presented at
NESUG 2001, available at
http://www.pace.edu/nesug/proceedings/nesug01/gr/gr6006.pdf
That code is appended at the end of this note. Then, I run PROC TABULATE
as follows:
filename jfer 'c:\whatever\test';
ods html path=jfer frame='frame.html' contents='cont4r.html'
body='bod.html' rs=none newfile=page style=styles.template_b;
proc tabulate data=blahblahblah;
...
run;
ods html close;
The SASLOG provides me with many errors, a few of which are listed
below.
WARNING: Could not find parent template: contents.
WARNING: Could not find parent template: contentfolder.
WARNING: Could not find parent template: Bycontentfolder.
WARNING: Could not find parent template: contentproclabel.
WARNING: Could not locate style reference 'default.colors("docfg")'.
WARNING: Could not locate style reference 'default.colors("docbg")'.
WARNING: Could not locate style reference 'default.colors("contentfg")'.
WARNING: Could not locate style reference 'default.colors("contentbg")'.
I have checked the styles.default to make sure that it is unchanged
since installation, and it appears to be unchanged and correct. The part
of the PROC TEMPLATE code that involving prehtml= and posthtml= appears
to work properly, but the fonts and colors don't work at all. Can anyone
tell me what is wrong?
--
Paige Miller
Eastman Kodak Company
paige.miller@kodak.com
"It's nothing until I call it!" -- Bill Klem, NL Umpire
"When you get the choice to sit it out or dance,
I hope you dance" -- Lee Ann Womack
ODS PATH work.templat (update)
sasuser.templat (READ)
sashelp.tmplmst (READ);
proc template;
define style
styles.template_b/store=work.templat;
parent = styles.default;
replace colors /
"tableborder"=white /*outline of table
and graphs*/
"headerfg"=dark blue /*heading text in
table*/
"databg"=CXDEDDED /*background of cell
tables*/
"datafg"=black /*data in table
cells*/;
replace Text /
'Content Title' = "ANALYSIS OF ROSE
DATA";
/*change font sizes in table of contents*/
/*font for top title*/
replace contents from contents /
font=(tahoma, 5);
/*font forprocedure title*/
replace contentprocname from indexprocname
/ font=(roman,4)
/*remove numbering or bullets */
bullet=none;
/*font for label replacing procedure
title*/
replace contentproclabel from
contentproclabel /
font=(roman,4);
/*font for label below procedure title*/
replace contentfolder from contentfolder /
font=(roman,3);
/*font for listed items and add a space
between items in table of contents*/
replace contentitem from indexitem /
font=(roman,3)
posthtml='<p>';
/*font for by line*/
replace Bycontentfolder from
Bycontentfolder /
font=(roman,3);
/*adding graphics-logos with links to the
top*/
replace Body from Document /
prehtml=
"<TABLE width=""100%"">
<TD valign=bottom align=left >
<font face=""verdana, arial, helvetica,
sans-serif"" size=""1.5"">
GARDENING LINKS
<A href=""http://www.rosegardening.com/""
target=""_parent""><IMG
src=""/path/redicon.gif"" align=left
border=""0""
</font></A></TD>
<TD align=right>
<font face=""verdana, arial, helvetica,
sans-serif"" size=""1.5"">
AMERICAN ROSE SOCIETY
<A href=""http://www.ars.org/""
target=""_parent""><IMG
src=""/path/pinkicon.gif"" align=right
border=""0"">
</A></TD></TABLE>"
/*adding this code (target=""_parent"")
erases the frame-table contents */
/*adding links to the botom*/
posthtml=
"<BODY><p> <center> <table><tr>
<td align=""left"">
<a href=""javascript:history.back(0)""
target=""_parent"">Previous Page</a>
</td></tr></table></center>
<div align=center> <FONT face=HELVETICA
size=1 >
<a
href=""http://www.rainbowfloristandmore.co
m/"" target=""_parent"">
FLOWERS AND GIFTS</a> |
<a
href=""http://roses.about.com/homegarden/r
oses/"" target=""_parent"" >
ROSE GARDENING</a> |
<a
href=""http://roses.about.com/homegarden/r
oses/library/weekly/
bl_Photo-Gallery.htm""target=""_parent"" >
ROSE PHOTOS</a> |
<a href=""http://www.induscorp.com""
target=""_parent"" >
COMMENTS</a> |
<a href=""http://www.induscorp.com""
target=""_parent"">
SEARCH</a> <FONT face=HELVETICA size=1
></div> </BODY>"
leftmargin = 95
rightmargin = 5
background = white;
end;
run;