TEMPLATE Procedure: Creating Markup Language Tagsets

Example 7: Modifying an Event to Include Other Style Sheets

Features:
PROC TEMPLATE features::
DEFINE EVENT statement:
PUTQ statement

Details

The following program provides some example code that you can use to link a previously created style sheet to an event that you define.

Program

define event stylesheet_link;
putq '<link rel= 'STYLESHEET' type='text/css'
href=' URL '>' nl / if exists(url);
putq '<link rel= 'STYLESHEET' type='text/css'
href='http://your/stylesheet/url/goes/here'>' nl;
putq '<link rel= 'STYLESHEET' type='text/css'
href='http://your/stylesheet/url/goes/here'>' nl;
end;

Program Description

Define an event that links to a style sheet. This code defines an event that creates a link to a previously created style sheet instead of the style sheet that SAS generated.
define event stylesheet_link;
putq '<link rel= 'STYLESHEET' type='text/css'
href=' URL '>' nl / if exists(url);
putq '<link rel= 'STYLESHEET' type='text/css'
href='http://your/stylesheet/url/goes/here'>' nl;
putq '<link rel= 'STYLESHEET' type='text/css'
href='http://your/stylesheet/url/goes/here'>' nl;
end;