DITA RNG customization plugin not recognized by oXygen 17
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
DITA RNG customization plugin not recognized by oXygen 17
Post by Frank Ralf »
Hi,
I've created a DITA RNG specialization as a DITA-OT plugin (http://www.oxygenxml.com/doc/versions/1 ... ation.html):
I've successfully run the Ant integrator script, the entry gets added to the catalog-dita.xml file of the DITA-OT:
However, the catalog reference doesn't seem to be picked up by oXygen 17.0 because test files won't validate. When I reference the main catalog file of the plugin directly in the document type (framework) validation works.
Because I've successfully done similar specializations before using oXygen 16 could this be related to oXygen 17? Any pointers welcome.
Kind regards,
Frank
I've created a DITA RNG specialization as a DITA-OT plugin (http://www.oxygenxml.com/doc/versions/1 ... ation.html):
Code: Select all
<plugin id="com.company-name.dita.rng">
<feature extension="dita.specialization.catalog.relative" file="catalog.xml"/>
</plugin>
Code: Select all
<nextCatalog catalog="plugins/com.company-name.dita.rng/catalog.xml" />
Because I've successfully done similar specializations before using oXygen 16 could this be related to oXygen 17? Any pointers welcome.
Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA RNG customization plugin not recognized by oXygen 17
Hi Frank,
Does the publishing work?
Could you check in the Oxygen 17 installation, the Preferences->DITA page?
That should be the place where the main DITA OT installation is referenced.
By default its catalog-dita.xml should be added by Oxygen to the used list of XML catalogs.
Could you also look inside the catalog-dita.xml to see that it contains a reference to your plugin's catalog?
Regards,
Radu
Does the publishing work?
Could you check in the Oxygen 17 installation, the Preferences->DITA page?
That should be the place where the main DITA OT installation is referenced.
By default its catalog-dita.xml should be added by Oxygen to the used list of XML catalogs.
Could you also look inside the catalog-dita.xml to see that it contains a reference to your plugin's catalog?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: DITA RNG customization plugin not recognized by oXygen 17
Post by Frank Ralf »
Many thanks for your quick reply, Radu! I think this might indeed be the culprit. I will check and report back.
Frank
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: DITA RNG customization plugin not recognized by oXygen 17
Post by Frank Ralf »
Hi Radu,
That was indeed the reason. I use a separate DITA framework which is integrated into oXygen as an additional framework (Options > Preferences > Document Type Association > Location). With oXygen 16 that was enough to also point oXygen to that framework's DITA-OT. With oXygen 17 I have to set the path separately as you suggested.
However, using one of the framework related editor variables (${frameworkDir}/DITA-OT or ${framework}/DITA-OT) didn't work. I had to resort to an environment variable (which we use anyway): ${env(MY_DITA_XML_DIR)}\DITA-OT
Many thanks again for your help.
Frank
That was indeed the reason. I use a separate DITA framework which is integrated into oXygen as an additional framework (Options > Preferences > Document Type Association > Location). With oXygen 16 that was enough to also point oXygen to that framework's DITA-OT. With oXygen 17 I have to set the path separately as you suggested.
However, using one of the framework related editor variables (${frameworkDir}/DITA-OT or ${framework}/DITA-OT) didn't work. I had to resort to an environment variable (which we use anyway): ${env(MY_DITA_XML_DIR)}\DITA-OT
Many thanks again for your help.
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA RNG customization plugin not recognized by oXygen 17
Hi Frank,
If the reference is like this:
${configured.ditaot.dir.url}/catalog-dita.xml
then it would use the setting in the DITA Preferences page to point to its catalog.
But if you change it to this:
${framework}/DITA-OT/catalog-dita.xml
then it will refer to its catalog without taking the preferences into account.
Regards,
Radu
If you edit your custom DITA framework, in the Catalogs list it has a reference to the catalog-dita.xmlWith oXygen 16 that was enough to also point oXygen to that framework's DITA-OT.
If the reference is like this:
${configured.ditaot.dir.url}/catalog-dita.xml
then it would use the setting in the DITA Preferences page to point to its catalog.
But if you change it to this:
${framework}/DITA-OT/catalog-dita.xml
then it will refer to its catalog without taking the preferences into account.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: DITA RNG customization plugin not recognized by oXygen 17
Post by Frank Ralf »
Hi Radu,
Thanks for this explanation. After giving the issue some more thought I noticed that using the ${framework} variable on the DITA settings page cannot work because at any given time there might be more than one framework active.
I will use your solution and override the DITA setting in our customized framework.
Kind regards,
Frank
Thanks for this explanation. After giving the issue some more thought I noticed that using the ${framework} variable on the DITA settings page cannot work because at any given time there might be more than one framework active.
I will use your solution and override the DITA setting in our customized framework.
Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA RNG customization plugin not recognized by oXygen 17
Hi Frank,
Exactly, the ${framework} editor variable can only be used when editing a document type configuration. So it cannot be used anywhere externally, for example in other preference pages.
Regards,
Radu
Exactly, the ${framework} editor variable can only be used when editing a document type configuration. So it cannot be used anywhere externally, for example in other preference pages.
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