TEMPLATE Procedure: Creating Markup Language Tagsets |
PROC TEMPLATE features: |
DEFINE EVENT statement:
|
PUT statement |
|
TRIGGER statement | |
|
Event attribute: |
|
This example uses different styles for events.
|
define event Gnote;
start:
put '<div>';
trigger align;
put '>';
put '<table>';
put '<tr>' nl;
finish:
put '</tr>' nl;
put '</table>' nl;
put '</div>';
end;
define event GBanner;
put '' nl;
trigger pre_post;
put '' nl;
end;
define event GNContent;
put '';
trigger pre_post start;
put VALUE;
trigger pre_post finish;
put '';
end;
define event noteBanner;
style=NoteBanner;
trigger GBanner;
end;
define event NoteContent;
style=NoteContent;
trigger GNContent;
end;
define event note;
trigger Gnote start;
trigger noteBanner;
trigger noteContent;
trigger Gnote finish;
end;
define event WarnBanner;
style=WarnBanner;
trigger GBanner;
end;
define event WarnContent;
style=WarnContent;
trigger GNContent;
end;
define event Warning;
trigger Gnote start;
trigger WarnBanner;
trigger WarnContent;
trigger Gnote finish;
end;
|
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.