"Cannot load the associated CSS files" in Web Author

jeff_hooker
Posts: 10
Joined: Tue Jun 11, 2019 9:01 pm

"Cannot load the associated CSS files" in Web Author

Post by jeff_hooker » Wed Jul 24, 2019 9:31 pm

Hello,

I'm attempting to configure the Web Author to correctly display the XML from my repository (Bluestream XDocs 5.1). Some of the xml topics display correctly, but the majority resolve in the authoring window with a message of "Cannot load the associated CSS files"

This is clearly related to the public identifiers used in the topics. Topics with an identifier of "- //OASIS//DTD DITA Topic//EN" resolve, but topics with an identifier of "- /OASIS//DTD DITA 1.2 Topic//EN" do not, indicating that this is clearly a catalog issue of some sort. I cannot, however, find the appropriate catalog to modify. Where would this be located?

Thank you.

cristi_talau
Posts: 210
Joined: Thu Sep 04, 2014 4:22 pm

Re: "Cannot load the associated CSS files" in Web Author

Post by cristi_talau » Thu Jul 25, 2019 10:01 am

Hello,

From what you describe, Web Author does not identify that your XML file is a DITA topic. To identify a file as a DITA topic, Web Author uses a set of association rules defined in the framework. By default, it matches a set of pre-configured Public IDs among which is the first one you mentioned but not the second one. Besides that, it tries to detect if there is an attribute DITAArchVersion on the root element.

The first thing that popped into my eyes was that the second Public ID has only one 'slash' character at the beginning. Is that a typo? If not, a quick way to solve the issue would be to manually add the missing IDs to the list of pre-configured Public IDs for DITA [1].

Otherwise, I would suggest that you contact Bluestream as from what I know they have a couple of customizations, for example a custom EntityResolver that customizes the behavior of the XML Catalog resolution.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... s-tab.html

jeff_hooker
Posts: 10
Joined: Tue Jun 11, 2019 9:01 pm

Re: "Cannot load the associated CSS files" in Web Author

Post by jeff_hooker » Sat Jul 27, 2019 1:18 am

Yes, the missing slash was a typo.

Could you point out *where* the association rules are stored in the dita plugin? I've searched it stem to stern and everywhere where this is a reference to the functioning ID, there is also a reference to the non-functioning ID.

There is no reference to Public URIs in the dita.framework files that ships with the web author dita plugin, and everywhere within the plugin where "- //OASIS//DTD DITA Topic//EN" is defined, so is "- //OASIS//DTD DITA 1.2 Topic//EN"

When I take one of the repository files with the "- //OASIS//DTD DITA 1.2 Topic//EN" and change it to "- //OASIS//DTD DITA Topic//EN", Web Author opens it without incident, so this clearly is an issue of resolving the public ID correctly; it's just a matter of WHERE is this done?

Thanks,
Jeff.

cristi_talau
Posts: 210
Joined: Thu Sep 04, 2014 4:22 pm

Re: "Cannot load the associated CSS files" in Web Author

Post by cristi_talau » Tue Jul 30, 2019 10:40 am

Hello,

In the dita.framework file we have some rules that match on the Public ID using wildcards, for example:

Code: Select all

<field name="publicID">
  <String>*-//OASIS//DTD DITA Topic*</String>
</field>
Anyway, if you have a license for Oxygen XML Author / Editor you can use the GUI to edit the framework configuration [1].

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... zzf_pns_vz

Post Reply