Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
XSL filter ignores "omit-xml-declaration" setting in stylesheets #403
The problem is the filter invokes Nokogiri in a way that returns an object representing the transformed XML. When the filter requests a string representation from the object a new XML declaration is naturally generated.
The solution is to change the filter so it fetches the raw output of the transformation, which will make omitted elements stay omitted.
This is another small fix I've made locally and I'll submit a pull request in a moment.