Formatting problem for RNC files with > 1 level of inclusion

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
whyme
Posts: 70
Joined: Fri Mar 08, 2013 8:58 am

Formatting problem for RNC files with > 1 level of inclusion

Post by whyme » Fri Jul 27, 2018 4:07 am

Given the following files...
  1. a.rnc
  2. incl/b.rnc
  3. incl/c.rnc
...A includes B and B includes C. Validation is fine in all three files. But formatting the document (CTRL + SHIFT + P) works for only B & C. For A I get the following error:
C:\Program Files\Oxygen XML Editor 20\incl\c.rnc (The system cannot find the path specified)

Suggestions?

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

Re: Formatting problem for RNC files with > 1 level of inclusion

Post by Radu » Mon Aug 06, 2018 2:14 pm

Hi,

I cannot quite reproduce this problem on my side. What version of Oxygen are you using?
Also please post the contents of some sample RNC documents with which you can reproduce the problem on your side.

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

whyme
Posts: 70
Joined: Fri Mar 08, 2013 8:58 am

Re: Formatting problem for RNC files with > 1 level of inclusion

Post by whyme » Mon Aug 06, 2018 10:13 pm

I've gotten these results running oXygen 20.0 build 2018042410 on a Mac and 20.1 build 2018061313 on a PC. Sample code below.

a.rnc:

Code: Select all

include "incl/b.rnc" {
start = element test { xsd:double }
}
incl/b.rnc:

Code: Select all

include "c.rnc" {
start = element test { xsd:double }
}
incl/c.rnc:

Code: Select all

start = element test { xsd:double }
The formatting problem holds even if the files are in the same directory. I did it this way because I have a related issue, namely, that when I have oXygen convert something like a.rnc (Document > Schema > Generate/Convert Schema) to a.rng, it doesn't preserve the original directory structure, but puts b.rng and c.rng on the same path. Can that be tweaked?

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

Re: Formatting problem for RNC files with > 1 level of inclusion

Post by Radu » Tue Aug 07, 2018 3:55 pm

Hi,

I added an issue on our side to look into the first problem which seems feasible to fix.
The second problem, with the folder structure being lost, the open source Jing-Trang project used by us to convert RNC to RNG indeed has this problem, I found the opened issue and added a vote for it:

https://github.com/relaxng/jing-trang/issues/6

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

Post Reply