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
The "oxy_link-text()" function will not be executed
The "oxy_link-text()" function will not be executed
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Senior Solution Architect
KGU-Consulting GmbH
-
- Posts: 801
- Joined: Wed Nov 16, 2005 11:11 am
Re: The "oxy_link-text()" function will not be executed
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
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
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
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
Senior Solution Architect
KGU-Consulting GmbH