remove processing of templates entirely; ensure main document nodes are properly filtered under SD polyfill.