Too many nested apply-templates calls Error When Running a Transformation
Problem
I'm getting the error message Too many nested apply-templates calls when I try to transform my DocBook file to HTML using default Oxygen JSON Editor DocBook to HTML transformation scenario.
Cause
Most likely, this is the result of a masked stack overflow error.
Solution
Try setting a new VM option with the value -Xss4m. You can also try to slowly increase this to larger values (e.g. -Xss5m or -Xss6m). Note that this consumes memory on a per thread basis (Oxygen JSON Editor can have tens of threads), so using a very large value here can backfire and leave Oxygen JSON Editor without memory.