Using Relax NG and DITA-OT
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 105
- Joined: Thu Jan 20, 2022 12:36 pm
Using Relax NG and DITA-OT
Hello,
I'm a little confused. I received a DITA project with a rng declaration as a schema instead of a usual dtd as I saw before. Alternatively, it happens that the dtd are customized, then I just point my editor to the custom DITA-OT.
I understand that Relax NG is an alternate way to declare a schema for my documents. However, I suppose this .rng file is not standard and my customer would need to send it to me first so that I can work on it in the ditamap manager. Am I right? If so, where does this rng file must be placed and how do I point to it in my Oxygen Author configuration?
Thanks a lot for your feedback!
I'm a little confused. I received a DITA project with a rng declaration as a schema instead of a usual dtd as I saw before. Alternatively, it happens that the dtd are customized, then I just point my editor to the custom DITA-OT.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="urn:smtg:dita:rng:smtg_map.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="urn:smtg:dita:rng:smtg_map.rng" schematypens="http://purl.oclc.org/dsdl/schematron"?>
Thanks a lot for your feedback!
------
Gaspard
Gaspard
-
- Posts: 9462
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Using Relax NG and DITA-OT
Hi,
Yes, your clients would need to send you an extra folder containing the Relax NG Schemas and an XML catalog or maybe the folder is a DITA OT plugin, similar to what this topic recommends:
https://www.oxygenxml.com/doc/versions/ ... ation.html
Regards,
Radu
Yes, your clients would need to send you an extra folder containing the Relax NG Schemas and an XML catalog or maybe the folder is a DITA OT plugin, similar to what this topic recommends:
https://www.oxygenxml.com/doc/versions/ ... ation.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 105
- Joined: Thu Jan 20, 2022 12:36 pm
Re: Using Relax NG and DITA-OT
Here is a little update.
The client sent me the DITA-OT used. I can retrieve the rng files references in the ditamap and I can also target the dita-ot in Oxygen. However, I keep having this error message:
I suspect a problem in the path for the rng file, even though I targeted in my parameters the DITA-OT folder. I'm not used to work with Relax NG, this is new to me and I don't have a clue about the process. Would you have any pointer to help me resolve this issue?
The client sent me the DITA-OT used. I can retrieve the rng files references in the ditamap and I can also target the dita-ot in Oxygen. However, I keep having this error message:
Code: Select all
Description: Invalid RNG Schema: urn:smtg:dita:rng:smtg_map.rng, unknown protocol: urn
Description: Invalid SCH Schema: urn:smtg:dita:rng:smtg_map.rng, unknown protocol: urn
I suspect a problem in the path for the rng file, even though I targeted in my parameters the DITA-OT folder. I'm not used to work with Relax NG, this is new to me and I don't have a clue about the process. Would you have any pointer to help me resolve this issue?
2022-02-07_13-29-14.png
2022-02-07_13-31-41.png
You do not have the required permissions to view the files attached to this post.
------
Gaspard
Gaspard
-
- Posts: 9462
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Using Relax NG and DITA-OT
Hi,
With Oxygen setting up the RNG specialization plugin is exactly as setting up the DTD or XML Schema based specialization plugins.
I'm afraid I do not know exactly what's inside that custom DITA OT folder you are using.
Can you run the DITA OT integrator transformation scenario from Oxygen?
https://www.oxygenxml.com/doc/versions/ ... tor-2.html
If validation of the DITA topics will still not work afterwards maybe in the Oxygen Preferences->"XML Catalog" page you can manually add a reference to the "catalog.xml" contained in that specific plugin's folder.
Regards,
Radu
With Oxygen setting up the RNG specialization plugin is exactly as setting up the DTD or XML Schema based specialization plugins.
I'm afraid I do not know exactly what's inside that custom DITA OT folder you are using.
Can you run the DITA OT integrator transformation scenario from Oxygen?
https://www.oxygenxml.com/doc/versions/ ... tor-2.html
If validation of the DITA topics will still not work afterwards maybe in the Oxygen Preferences->"XML Catalog" page you can manually add a reference to the "catalog.xml" contained in that specific plugin's folder.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 105
- Joined: Thu Jan 20, 2022 12:36 pm
Re: Using Relax NG and DITA-OT
Thanks, Radu!
I succeeded in applying the transformation scenario in Oxygen. Now, I can edit and modify my maps. However, it seems that the rng model is not recognized for the topics available as XML files (not .dita). I have this error message when processed:
Do you have any idea of the problem?
I succeeded in applying the transformation scenario in Oxygen. Now, I can edit and modify my maps. However, it seems that the rng model is not recognized for the topics available as XML files (not .dita). I have this error message when processed:
Code: Select all
Cannot determine the type of sample_project/sample_project/topics/glossary/channel_g.xml,
------
Gaspard
Gaspard
-
- Posts: 9462
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Using Relax NG and DITA-OT
Hi,
I do not know exactly what the problem is. The extension of the file should not matter at all.
If you look inside "channel_g.xml" and open it in the Text editing mode to what RNG file does it refer in the xml-model processing instruction?
Do you have another file with the ".dita" extension which works and which refers to the same RNG URI path or does the ".dita" file actually refer to another RNG path?
About the error:
Regards,
Radu
I do not know exactly what the problem is. The extension of the file should not matter at all.
If you look inside "channel_g.xml" and open it in the Text editing mode to what RNG file does it refer in the xml-model processing instruction?
Do you have another file with the ".dita" extension which works and which refers to the same RNG URI path or does the ".dita" file actually refer to another RNG path?
About the error:
Do you get it when editing or when publishing?I have this error message when processed
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