Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post here questions and problems related to editing and publishing DITA content.
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

Hello,

Our customer uses Oxygen 21.1 with a customized DITA framework. Since a recent update of the framework the following dialog keeps popping up:
Connecting to www.dita-ot.org:443

The application tries to connect to https://www.dita-ot.org/rng/plugin.rnc.
[...]
I don't have any idea what causes this behavior because we don't use any RNC or RNG. Can I fix this somehow in the framework?

TIA
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Radu »

Hi Frank,

Oxygen notifies you by default when establishing HTTP connections. I do not know from which part of Oxygen the dialog shows up.
When does the dialog pop up? When you open an XML document? Or some other time?
There is an XML catalog which maps this URL to a local resource:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/resources/catalog.xml

and it's referenced in the main DITA OT XML catalog "OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.base/catalog-dita.xml" so both publishing and editing should know about this mapping, but I do not guarantee this for Oxygen 21.1 which is in our end of maintenance period anyway and which officially we no longer support.



Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

Hi Radu,

Thanks for your quick reply. I think we found the culprit in the meantime: The connection request to “www.dita-ot.org” is caused by a processing instruction in plugin.xml of all our custom plugins:

Code: Select all

<?xml-model href=https://www.dita-ot.org/rng/plugin.rnc type="application/relax-ng-compact-syntax"?>
According to https://www.dita-ot.org/3.6/topics/plug ... tions.html it is recommended to include this instruction.

Looks like this resource is somehow missing in the XML catalog files so the local resource is not found. I will check and report back.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

Besides our own custom plugins, I found the reference only twice in the Oxygen 21.1 framework:
  • DITA-OT\plugins\com.elovirta.ooxml\plugin.xml
  • DITA-OT\plugins\com.oxygenxml.pdf.css\plugin.xml
So I suppose we can safely remove this reference from our plugin.xml files.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Radu »

Hi Frank,

Sure, that xml-model is not required to be there, it's used by Oxygen for validation when the plugin.xml is opened and when Oxygen cannot map that HTTP location through the XML catalog it needs to go online.


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

Hi Radu,

Thanks for confirming.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

I have noticed that the DITA-OT documentation recommends the following syntax that we also used:

Code: Select all

<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
The plugins actually use a different href value. And this one is indeed mapped in the catalog file \dita\plugin\catalog.xml:

Code: Select all

<?xml-model href="dita-ot/plugin.rnc" type="application/relax-ng-compact-syntax"?>
So this looks more like an issue with the DITA-OT documentation diverging from the implementation.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Radu »

Hi Frank,

Recent DITA OT versions have this XML catalog "DITA-OT/resources/catalog.xml" which has these mappings:

Code: Select all

  <uri name="https://www.dita-ot.org/rng/project.rnc" uri="project.rnc"/>
  <uri name="https://www.dita-ot.org/rng/plugin.rnc" uri="plugin.rnc"/>
so the DITA OT docs are correct.
That "dita-ot/plugin.rnc" reference is mapped through an Oxygen specific XML catalog to the same rnc file, we've been doing this for a long time, before the DITA OT added the "resources/catalog.xml" catalog.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc

Post by Frank Ralf »

Hi Radu,

Many thanks for this clarification!

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Post Reply