Oxygen errors with RNG doctype declarations

Post here questions and problems related to editing and publishing DITA content.
cliostechscribe
Posts: 1
Joined: Tue May 06, 2025 11:16 pm

Oxygen errors with RNG doctype declarations

Post by cliostechscribe »

I am working on implementing DITA customizations using RNG, starting with a simple claim of the grammars. When I change the doctype declaration on a new topic, Oxygen returns errors. Oxygen returns the same errors when I change from the default doctype declarations to the OASIS RNG doctype declarations (urn:oasis:names:tc:dita:rng:topic.rng).
Two errors are returned:
The "DITA Validation" validation engine is not compatible with the current document type.
The markup declarations contained or pointed to by the document type declaration must be well-formed.

I tried adding the OASIS RNG doctype declaration as an Association rule in the DITA framework. Oxygen returned the same errors.
Is there a different configuration I should change? Or is the problem something different?
Radu
Posts: 9467
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen errors with RNG doctype declarations

Post by Radu »

Hi,
A DITA XML topic which refers to a Relax NG schema does this by using the xml-model processing instruction, something like this:

Code: Select all

<?xml-model href="urn:oasis:names:tc:dita:rng:topic.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<topic id="topic_ehd_mhd_gfc">
    <title></title>
    <body>
        <p></p>
    </body>
</topic>
So not by using the DOCTYPE declaration which is reserved for referencing DTDs.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply