Hi:
You may want to work with Tech Support on this issue. The various events, such as TABLE_BODY and DATA and DOC_BODY and DOC_HEAD, etc are triggered by SAS and when the event is sent to the open destinations it is the destination that handles the DEFINE EVENT block.
I would expect PROC PRINT to definitely trigger the different events than the events triggered by the LIBNAME engine. Therefore, I would EXPECT you to get different results when you used PROC PRINT with this tagset template versus when you used the LIBNAME engine. So I'm confused -- do you want a TAGSET template to use with ODS or to use with the LIBNAME engine???
In my paper for PharmaSUG a few years ago, I showed the use of a "custom" tagset template that would work for either the LIBNAME engine or the SAS procedures. I got the "custom" template from the developers and at one time, they were talking about rollling some version of the custom tagset out in the item store, but that was NOT true in SAS 9.1.3 -- you needed to get a copy of the custom tagset template in order to replicate the programs in my paper:
http://www.lexjansen.com/pharmasug/2006/technicaltechniques/tt24.pdf
In addition, when you are using SAS 9.1.3, you do not have access to the 9.2 LIBNAME XML engine (which would be specified by XML92 in the LIBNAME statement). (Wondering why you name your outputfile engine92.xml -- when you have SAS 9.1.3??)
http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#/documentation/cdl/...
Also, you use _WEBOUT as the LIBREF and FILEREF and, generally, speaking, this is a bad idea because in some configurations (such as SAS/IntrNet and the BI Platform) _WEBOUT is a reserved file reference for capturing output.
Perhaps you could explain a bit about what you want your TAGSET template to do and whether you want to use it with the LIBNAME engine or ODS. Also, whether you have used the EVENT_MAP tagset to trace what events your procedure of interest might be using. An example of the EVENT_MAP tagset is shown below. If you examing the 2 output files, you will see the "map" of all the events that were triggered by each SAS process.
In order to learn about the events that are triggered when you use the SAS XML Libname Engine (SXLE) in SAS 9.1.3, you have to look at the tagset templates that all start with "SAS" in the template item store. These tagset templates, such as SASIO, SASXMOG, etc will use DIFFERENT events than the events used by the procedures when output is routed to ODS. So your final tagset template will need to be tailored accordingly.
cynthia
[pre]
ods tagsets.event_map file='ev_print.txt';
proc print data=sashelp.class(obs=3);
title 'Event Map for Proc Print';
run;
ods tagsets.event_map close;
ods tagsets.event_map file='c:\temp\ev_frq.txt';
proc freq data=sashelp.class;
titles 'Event Map for Proc Freq';
tables age;
run;
ods tagsets.event_map close;
[/pre]