Page 1 of 1

Oxygen errors with RNG doctype declarations

Posted: Tue May 06, 2025 11:29 pm
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?

Re: Oxygen errors with RNG doctype declarations

Posted: Wed May 07, 2025 9:03 am
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