buffer the xml/xslt streams