Fixes #826 "Add support for XSLCache in the XSLWriter"

Fixes #826