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

Post here questions and problems related to oXygen frameworks/document types.
SNO
Posts: 44
Joined: Mon Oct 01, 2012 3:05 pm

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

Post by SNO » Wed Sep 02, 2020 10:32 am

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
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH

alex_jitianu
Posts: 820
Joined: Wed Nov 16, 2005 11:11 am

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

Post by alex_jitianu » Wed Sep 02, 2020 1:47 pm

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

SNO
Posts: 44
Joined: Mon Oct 01, 2012 3:05 pm

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

Post by SNO » Wed Sep 02, 2020 7:05 pm

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
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH

Post Reply