Oxygen errors with RNG doctype declarations
Post here questions and problems related to editing and publishing DITA content.
-
- 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?
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?
-
- Posts: 9467
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen errors with RNG doctype declarations
Hi,
A DITA XML topic which refers to a Relax NG schema does this by using the xml-model processing instruction, something like this:
So not by using the DOCTYPE declaration which is reserved for referencing DTDs.
Regards,
Radu
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>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service