That is pretty easy to do.Why don't you post what you are invoking, and if you are using ostream, you should post the TPL as well.
I know it is possible but for the begginer everything is dificult.<iw_ostream buffer='FlagPage' file='$flag_page'> <iwpt_compile.ipl -pt default/main/www.domain.com/WORKAREA/development/templatedata/Status/presentation/Status.tpl/></iw_ostream>