Details
Description
When you are stuck with a pre-existing schema which contains underscores, it is currently impossible to transform objects based on this schema using existing XSLT sheets, as they expect the names with single underscores, and the SaxWriter class only uses the default XmlReader constructor which does not allow for custom escaping to be defined.
Enclosed patch rectifies this
- SaxWriter gains a constructor which enables you to pass a custom name replacer
- TraxSource is able to use SaxWriter instance passed to setXMLReader method.
Apologies for the lack of test code, but it does flawlessly transform about 3000 files here
Usage example -
{{
}
I've applied a slightly different version for the TraxSource and fixed the patch for the SaxWriter to keep our unit tests running
You may give the current SNAPSHOT a try.
Thanks!