Page 1 of 1

The "oxy_link-text()" function will not be executed

Posted: Wed Sep 02, 2020 10:32 am
by SNO
Hello,
I use Oxygen 22.1 in an Eclipse CMS environment. I changed the DITA framework so that the css will be used from the document. the css is also placed beside the document on localhost.

But I get this Error:
Beschreibung: [CSS]: The "oxy_link-text()" function will not be executed unless the CSS file comes from a trusted location.

What am I doing wrong? am I missing some security settings?
Thanks for your help.
Stefan

Re: The "oxy_link-text()" function will not be executed

Posted: Wed Sep 02, 2020 1:47 pm
by alex_jitianu
Hello,

For security reasons, if the CSS is not from a safe location, some CSS functions are not executed. Frameworks, for example, are considered safe locations because they either came built-in with Oxygen or the user have installed them himself.

What you can do:

1. You can go to Options->Preferences... on page Document Type Association / Locations and just add the directory where the CSS is located as an additional frameworks directory. Not a very elegant solution but it is a quick fix without any undesired side effects. It might not be possible for you though, if these document reside in multiple locations.

2. If you set the system property com.oxygenxml.disable.security=true then Oxygen will not sandbox resources that are not from safe locations. For Eclipse, you can set it in eclipse.ini: -Dcom.oxygenxml.disable.security=true


Best regards,
Alex

Re: The "oxy_link-text()" function will not be executed

Posted: Wed Sep 02, 2020 7:05 pm
by SNO
Hi Alex,

thank you very much!
I desided to user your second advice because the path to the css differ for every document loaded.

Regards
Stefan