Page 1 of 1
Red alert message - how to rid Oxygen of it
Posted: Thu Nov 20, 2008 12:34 pm
by art
On working with Oxygen and specialised DITA topic types this is the red alert message that is displayed at the top edge of the tab:
Cannot load the associated CSS file(s).
The error was: 'No CSS file specified.'
Please switch to the text mode and use the [XSLT/CSS Stylesheet assoziieren] action
to associate a CSS Stylesheet to your document.
What would need to be changed to have the standard author tab view of my contents?
Cheers, Aaron.
Re: Red alert message - how to rid Oxygen of it
Posted: Thu Nov 20, 2008 1:13 pm
by sorin_ristache
Hello,
The default CSS for editing DITA files in Author mode is used only for XML files that match one of the predefined DITA document types. It seems your specialized DITA topic does not match the
predefined DITA topic document type. You can see the match rules of the DITA document type
in the Preferences dialog. Go to menu Options -> Preferences -> Document Type Association, edit the DITA type and look in the
Rules panel of the
Document type dialog. Does any rule match your DITA document? If not you can add a new rule to the table with the rules.
If you want to use a different CSS instead of the built-in CSS for DITA topics you have to create a new document type that specifies a rule for matching your specialized topics and the CSS for editing the topics in Author mode.
Regards,
Sorin
Re: Red alert message - how to rid Oxygen of it
Posted: Wed Jun 08, 2011 6:02 pm
by miltenb
Maybe I am not in the correct demographic or something, but...
What does that all mean ? How do I turn it off ?
Is there a default css I could perhaps use ?
I tried removing all rules in that DITA part, but that got me no further...
please help...
Re: Red alert message - how to rid Oxygen of it
Posted: Thu Jun 09, 2011 9:29 am
by sorin_ristache
Hello,
A default built-in CSS is always used in Author editing mode for rendering an XML file in Author mode if there is no association between the XML file and a CSS stylesheet, either an
explicit association by an
<?xml-stylesheet type="text/css" href="..."?> processing instruction
created by the Associate XSLT/CSS Stylesheet action, or
an implicit one by matching a
built-in document type like DITA, DocBook, etc. that specifies a CSS stylesheet which will be used for all XML documents of that type. The document type of the current XML file is displayed in the Information view. Just open the
Information view from menu Window -> Show View -> Information and look for an entry that starts with
DocumentType changed for file:.
The error message says that there is no CSS stylesheet associated with the current edited XML document, that is no explicit or implicit CSS association as defined above.
Do you have a CSS stylesheet for your XML document? If yes just
insert an xml-stylesheet processing instruction using the Associate XSLT/CSS Stylesheet action in the XML document before opening it in Author mode.
If it is a DITA topic file it should match automatically the DITA document type and be displayed in Author using the built-in CSS for DITA topics. If you still get that error in Author mode please post a small sample file for reproducing the error.
Regards,
Sorin