CSS associate with document type: problem
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 6
- Joined: Thu Jun 23, 2011 9:40 pm
CSS associate with document type: problem
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?
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?
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS associate with document type: problem
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Thu Jun 23, 2011 9:40 pm
Re: CSS associate with document type: problem
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.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS associate with document type: problem
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service