DITA-OT project file validation error

Having trouble installing Oxygen? Got a bug to report? Post it all here.
akiraaa
Posts: 13
Joined: Mon Dec 14, 2020 11:20 am

DITA-OT project file validation error

Post by akiraaa »

Hi,

I always get this validation error when using the include parameter in a DITA-OT project file:
image.png
image.png (40.35 KiB) Viewed 810 times
The referenced documents do exist, and the project file can be transformed successfully. Maybe it's a bug?

I'm using <oXygen/> XML Author 23.1, build 2021082307 on macOS Monterey 12.1.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT project file validation error

Post by Radu »

Hi,
This indeed looks like a bug. And the publishing works, right?
I'm working on Monterey with Oxygen 24, using two sample files like:

Code: Select all

project xmlns="https://www.dita-ot.org/project">
  <include href="p2.xml"/>
</project>
and p2.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://www.dita-ot.org/project">
  
</project>
but I cannot reproduce the problem and I do not remember fixing anything related to this between 23 and 24.
Can you also test with my very small samples? Or if the problem can be reproduced only with your samples can you maybe email us (support@oxygenxml.com) a zip containing some samples to reproduce the problem?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
akiraaa
Posts: 13
Joined: Mon Dec 14, 2020 11:20 am

Re: DITA-OT project file validation error

Post by akiraaa »

Hi,
Yes, the publishing works. I tried your sample files, the error is the same.
image.png
image.png (32.56 KiB) Viewed 784 times
I also asked my colleague who is working on Windows 10 to test the sample files, and she got the same error.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT project file validation error

Post by Radu »

Hi,

I tested with version 23 and I can also reproduce the problem but with version 24 the fake validation error is no longer reported.
After this I also found the internal issue on which we fixed this problem for version 24.
So if you cannot upgrade to Oxygen v 24 you can either ignore the reported error or I can give you some steps to change the Schematron schema we use for validating the project file so that you can fix the problem in your installation folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
akiraaa
Posts: 13
Joined: Mon Dec 14, 2020 11:20 am

Re: DITA-OT project file validation error

Post by akiraaa »

Hi,
It would be great if you can share how to fix this error locally. Cheers.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT project file validation error

Post by Radu »

Hi,

If you open this Schematron file Oxygen uses for DITA OT project validation:

Code: Select all

OXYGEN_INSTALL_DIR/frameworks/dita/dita_project/sch/project.sch
it has a line like this:

Code: Select all

<sch:report test="not(doc-available(@href))">The referenced document does not exist.</sch:report>
which should be replaced with:

Code: Select all

      <sch:report test="not(doc-available(resolve-uri(@href, base-uri())))">The referenced document does not exist or is not well-formed.</sch:report>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply