I'm getting an odd publishing command error whenever I try use a <iw_include> reference in my .tpl. A preview works fine, but when it comes time to generate, I get a publishing error. From my debugging I've narrowed it down to the temporary code that iwpt_compile.ipl creates. Take a look:
my $comp = TeamSite:
Tparser::compile_page(
undef,
$iw_include_file,
[
'-pt' , $iw_include_file,
'-iw_pt-arg' , 'eval_init',
'-iw_pt-dcr_data',
$iw_parser->{'iw_xml'}{'data'}{'iw_pt'}{'dcr'},
# filtered list of command line args
'-ofile', 'Y:\default\main\projects\project_name\WORKAREA\client\web\global\new_on_website.aspx',
'-iw_pt-dcr', 'Y:\default\main\projects\project_name\WORKAREA\client\templatedata\Templates_ProjectName\Whats_New\data\whats_new',
'-iw_include-location', 'Y:\default\main\projects\project_name\WORKAREA\client\',
'-ocode', 'test.ipl',
],
'eval_init' , \%iw_param,
'pkg_suffix', $_iw_include_pkg_suffix,
'manifest_fh', $iw_parser->{manifest_fh},
);
iwpt_output($comp);
}
Error:
Bad name after ocode' at test.ipl line 153.
If I remove or modify the command line parameter "-iw_include-location" to remove the last slash or remove it entirely, it works just fine. I've tried variations on the include syntax, all without luck.
<iw_include pt="templatedata\include\menu_reference.tpl" />
<iw_include pt="templatedata\include\menu_reference.tpl" mode="cwd"/>
Any suggestions?
TS 6.5 / WIN2k