Change error text, if an file could not be found

Post here questions and problems related to editing and publishing DITA content.
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Change error text, if an file could not be found

Post by Denis »

Hi,
we are using Eclipse Oxygen Author 17.1.

I want to change the message, if a file, which is a referenced in a conref could not be found.
How I could achieve this?

Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Change error text, if an file could not be found

Post by Radu »

Hi Denis,

Do you mean the message which is display embedded in the Author visual editing mode? It's something like Target file not found, right?
Do you want it to be translated or just want a custom message in place?
There is an error node in the Author mode which contains this text.
In the CSS you can match it like:

Code: Select all


@namespace oxy "http://www.oxygenxml.com/extensions/author";

oxy|error{
.....
}
and for example try to hide its text content, maybe add some static content on it. Or match it from the StylesFilter API.

Or you could try to rewrite the entire ro.sync.ecss.extensions.dita.conref.DITAConRefResolver customization and provide your own custom error messages.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply