added support for require and fixed xslt error in view.