Opening large DocBook files in Oxygen takes a long time

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
csun
Posts: 27
Joined: Wed Dec 20, 2017 9:56 pm

Opening large DocBook files in Oxygen takes a long time

Post by csun » Sat Aug 10, 2019 12:52 am

Hi,

By default, Oxygen opens DocBook files for me in Author mode. Most times it works fine, but when it tries to open a large DocBook file (it is large because of the amount of XIncludes), the Author mode can take 10 minutes or even longer to respond.

Do you have some recommendations on improving its response time?

Below are some ideas I had...

Is there a way to set up Oxygen to conditionally open files in Text mode?
- If a file takes less than 1 minute to open in Author mode, then open in Author mode;
- otherwise, open it in Text mode.

Or, after a file tries to open in Author mode for longer than e.g. 1 minute, can we let it turn off XInclude resolution automatically, so that hopefully it can still open in Author mode but more quickly?

Thanks,
Charles

Radu
Posts: 6392
Joined: Fri Jul 09, 2004 5:18 pm

Re: Opening large DocBook files in Oxygen takes a long time

Post by Radu » Tue Aug 13, 2019 9:43 am

Hi Charles,

Indeed, if the XML document has lots of xi:includes Oxygen will try to expand them all when switching to the Author visual editing mode.
Unfortunately for now we do not have such a feature which would automatically halt the open operation (or avoid expanding xi:includes) once a decision would be taken that the operation takes too long.
There still should be a progress dialog which appears when you open the XML document, and one stage of the progress is the stage in which references are resolved. I think that if you cancel the progress dialog in this stage the XML document should be opened in the Author visual editing mode but with not all references expanded.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply