syntax for CSS @import

I'm trying to reference a css file that is sitting on a local drive (d:/styles.css) from within the frameworks\dita\css_classed\dita.css and will eventually be moved off to a network drive for safe keeping. It doesn't seem to work when the file is not in the frameworks\dita\css_classed dir. I've tried the following @import url("d:/styles.css"); @import "d:/styles.css"; @import url('d:/styles.css'); @import 'd:/styles.css'; @import url("d:\styles.css"); @import "d:\styles.css"; @import url('d:\styles.css'); @import 'd:\styles.css'; Have prefixed d: with file:/, file:///, file:\, and file:\\\ The reason I'm doing this is to not allow the writers to change the css whenever a whim hits them. I'm using Oxygen 10.3. Any insight would be appreciated Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.

Dear Mario, You should use the usual URL syntax like: @import "file:///d:/styles.css"; To see this is working, in the "styles.css" you can add a rule like: *{ color:green; } If this is not working in your case, maybe the CSS selector does not match for some reason the XML nodes. If this is the case maybe you can give us more details like the framework you are using (Docbook, DITA, TEI, etc) and some of the content of the "styles.css". To reference a network shared folder the path would be something like (where C25 is the computer's network name): file:////C25/Shared%20Folder/styles.css Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/19/2010 7:04 PM, Mario Madunic wrote:
I'm trying to reference a css file that is sitting on a local drive (d:/styles.css) from within the frameworks\dita\css_classed\dita.css and will eventually be moved off to a network drive for safe keeping. It doesn't seem to work when the file is not in the frameworks\dita\css_classed dir.
I've tried the following
@import url("d:/styles.css"); @import "d:/styles.css"; @import url('d:/styles.css'); @import 'd:/styles.css';
@import url("d:\styles.css"); @import "d:\styles.css"; @import url('d:\styles.css'); @import 'd:\styles.css';
Have prefixed d: with file:/, file:///, file:\, and file:\\\
The reason I'm doing this is to not allow the writers to change the css whenever a whim hits them. I'm using Oxygen 10.3.
Any insight would be appreciated
Marijan (Mario) Madunic Publishing Specialist New Flyer Industries
-------------------------------------------------------------------- Please consider the environment before printing this e-mail.
CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Mario Madunic
-
Radu Coravu