oXygen Web Author no finding @import CSS stylesheets

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

oXygen Web Author no finding @import CSS stylesheets

Post 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
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: oXygen Web Author no finding @import CSS stylesheets

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: oXygen Web Author no finding @import CSS stylesheets

Post 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
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: oXygen Web Author no finding @import CSS stylesheets

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: oXygen Web Author no finding @import CSS stylesheets

Post by jbvalentin »

Hi,

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

Regards,
Jean-Baptiste
Post Reply