Advance xptemplate