Page 1 of 1

oXygen Web Author no finding @import CSS stylesheets

Posted: Wed Sep 11, 2019 10:26 am
by jbvalentin
Hi ,

I've created an framework for a specific set of schemas. It works well in oXygen Author desktop, and I'd like to have it working within the Web Author.

Starting the Web Author thanks to the Web Author test server plugin, and opening the Browser, I end up with the following error:

Error loading CSS filesError parsing file:/D:/Work/oxygen-asd-s1000d/rdf.css (File not found)

This stylesheet is imported by the main CSS with a relative path (e.g. @import "rdf.css";). This main CSS seems to be properly loaded and associated to my document.

Is there something special to configure to use @import's in CSS?

Thank you.

Best regards,
Jean-Baptiste

Re: oXygen Web Author no finding @import CSS stylesheets

Posted: Thu Sep 12, 2019 2:13 pm
by mihaela
Hi,

We tried to reproduce this problem but the imported css applied succesfully. In order to help you we need to analyze your framework settings so, if it is possible, please send us your framework files at support@oxygenxml.com. Also please specify the version of Web Author plugin (go to Prefrences -> Plugins, select the "oXygen Web Author Test Server" plugin and check the version in the plugins properties table).

Best Regards,
Mihaela

Re: oXygen Web Author no finding @import CSS stylesheets

Posted: Fri Sep 13, 2019 3:57 pm
by jbvalentin
Hi,

thank you for your answer.

The framework in publicly available in the following repo: https://github.com/Amplexor/oxygen-asd-s1000d.
There are some template files so that you can try editing an XML.
The plugin version used is the 21.1.0.

Regards,
Jean-Baptiste

Re: oXygen Web Author no finding @import CSS stylesheets

Posted: Mon Sep 16, 2019 1:17 pm
by mihaela
Hi,

We managed to reproduce your problem and found that it is happening when the CSS path contains backslash instead of slash.
We will update the code to also support this paths but for the moment you should change them (for example ${framework}/style/dmodule.css instead of ${framework}\style\dmodule.css).

Best Regards,
Mihaela

Re: oXygen Web Author no finding @import CSS stylesheets

Posted: Mon Sep 16, 2019 2:55 pm
by jbvalentin
Hi,

thank you for you answer.
I'll fix the framework definition.

Regards,
Jean-Baptiste