Author mode CSS extensions
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Mon Feb 02, 2009 12:07 am
Author mode CSS extensions
Post by ZeroLinden »
I can't get the CSS extensions that allow you to show things like XML comments and processing instructions in author mode to work. Here's the start of my .css file:
The rest of the selectors in the file pertain to the default namespace and work just fine. But these don't seem to ever show up. The above is almost cut-n-paste from the documentation.
I also note that even though I set my preferences to do CSS 3.0 validation, it still marks these lines as invalid. For example, the first line is marked: "Sorry, the at-rule @namespace is not implemented."
I'm running 9.3, build 2008092518) under Mac OS X 10.5.6, java.vm.version is 1.5.0_16-133. Any help on this would be greatly appreciated.
Code: Select all
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
* {
margin:0;
padding:0;
}
oxy|document {
display:block;
}
oxy|processing-instruction {
display:block;
color:red;
background-color:inherit;
font-size:smaller;
}
oxy|comment {
display:block;
color:red;
background-color:#eee;
margin-left: 3em;
}
oxy|cdata{
display:inherit;
}
I also note that even though I set my preferences to do CSS 3.0 validation, it still marks these lines as invalid. For example, the first line is marked: "Sorry, the at-rule @namespace is not implemented."
I'm running 9.3, build 2008092518) under Mac OS X 10.5.6, java.vm.version is 1.5.0_16-133. Any help on this would be greatly appreciated.
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author mode CSS extensions
Hello,
In the Oxygen Preferences->Editor->Author page you have to uncheck the Hide processing instructions and the Hide comments checkboxes. You cannot control this by specifying the display for them in the CSS file.
Oxygen knows how to parse a CSS file with namespace declarations to render XML in the Author but the W3C CSS Validator integrated in Oxygen cannot handle them.
So although the validator reports errors, you can still use namespaces in the CSS files used for Author rendering.
Regards,
Radu
In the Oxygen Preferences->Editor->Author page you have to uncheck the Hide processing instructions and the Hide comments checkboxes. You cannot control this by specifying the display for them in the CSS file.
Oxygen knows how to parse a CSS file with namespace declarations to render XML in the Author but the W3C CSS Validator integrated in Oxygen cannot handle them.
So although the validator reports errors, you can still use namespaces in the CSS files used for Author rendering.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Mon Feb 02, 2009 12:07 am
Re: Author mode CSS extensions
Post by ZeroLinden »
Thanks - that worked like a charm! I'd say that option is pretty hidden! For future reference, I'd love to have those three Hide checkboxes on the toolbar so I can easily turn 'em on and off for a document as I work on it.
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author mode CSS extensions
Hi,
As the toolbar is very crowded the decision was to add an "Options..." entry in the Author contextual menu so that you can reach the Author options page faster.
This will probably be available in 10.2
Regards,
Radu
As the toolbar is very crowded the decision was to add an "Options..." entry in the Author contextual menu so that you can reach the Author options page faster.
This will probably be available in 10.2
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Mon Feb 02, 2009 12:07 am
Re: Author mode CSS extensions
Post by ZeroLinden »
That sounds great! Thanks for the follow up, I really appreciate it.
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