CSS associate with document type: problem

Having trouble installing Oxygen? Got a bug to report? Post it all here.
porous
Posts: 6
Joined: Thu Jun 23, 2011 9:40 pm

CSS associate with document type: problem

Post by porous »

I'm having problems associating a CSS stylesheet with a document type.
I add the CSS file through the Author tab of the Document type dialog box. The CSS works fine when I link it directly to my XML, and the .css file shows no errors in oXygen. All other aspects of the Document type work, including custom validation scenarios. Is any additional setup required for adding a CSS to the default author view of a document type?
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS associate with document type: problem

Post by Radu »

Hi,

As long as the XML document is correctly matched with the document type there should not be any problem specifying a CSS in the document type for it as described in our user manual:

http://www.oxygenxml.com/doc/ug-oxygen/ ... t-CSS.html

Just make sure that you have no CSS file association specified directly in the XML file. The default action in this case is to ignore the CSS specified in the document type. Also make sure the path to the CSS specified in the Document Type is valid.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
porous
Posts: 6
Joined: Thu Jun 23, 2011 9:40 pm

Re: CSS associate with document type: problem

Post by porous »

Your comments make sense. However, I am still not able to solve this problem. Author CSS settings for my custom document type are established as shown in the link you provided. The CSS path is correct (and works if I make direct association in the XML file). Any other recommendations would be welcome. The document setup I'm using is very simple right now, just a DTD, catalog file for the DTD, a validation profile pointing to Schematron rules, and hopefully a CSS association. I'm using 12.2 Enterprise Editor on Windows.
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS associate with document type: problem

Post by Radu »

Hi,

If you go to the Oxygen Window menu->Show view->Properties you should have a side view which also shows for the selected editor the associated Document Type. Is it the one you configured? If not then maybe the association rules do not match it.

When the XML document is opened in the Author page, does it show a warning of some kind, complaining for a missing CSS for example?

If you are still having trouble maybe you can send to our support email address (support at oxygenxml dot com) some samples to reproduce the problem (the framework and the XML file).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
porous
Posts: 6
Joined: Thu Jun 23, 2011 9:40 pm

Re: CSS associate with document type: problem

Post by porous »

Thank you, Radu. I will follow up through oXygen support as you suggest.
Post Reply