Page 1 of 1

Formatting problem for RNC files with > 1 level of inclusion

Posted: Fri Jul 27, 2018 4:07 am
by whyme
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?

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

Posted: Mon Aug 06, 2018 2:14 pm
by Radu
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

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

Posted: Mon Aug 06, 2018 10:13 pm
by whyme
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?

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

Posted: Tue Aug 07, 2018 3:55 pm
by Radu
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