Toolkit Plugin-Contributed Author CSS Style Sheets

I may have asked this before I don't remember doing so: What would it take to enable Open Toolkit plugins to *automatically* contribute Author CSS style sheets? I have developed a basic use pattern where I deploy Toolkit plugins for my specializations to the Toolkit installed under Oxygen. This makes all the DTDs for my specializations immediately available to Oxygen, which is about as convenient as it's possible for the system to be, given that all the default DITA stuff just works. But I would also like to be able to contribute Author-mode CSS style sheets using the same plugins so that I don't have to manage two different deployment and packaging actions. It would be nice, for example, to be able to distribute a Zip with Toolkit plugins that when others install them under Oxygen, all the Oxygen-specific stuff just works, at least CSS style sheets. Thanks, Eliot ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hi Eliot, The default CSS stylesheets which are used to render DITA in Oxygen reside in the "OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/" directory, the main stylesheet being the "dita.css" file. Your plugin can contribute with a folder structure which when copied in Oxygen can overwrite the "dita.css" with your own CSS and even add more stylesheets to the "css_classed" directory. There is another possibility: your plugin can contribute a modified "dita.framework" file in "OXYGEN_INSTALL_DIR/frameworks/dita" which specifies as a CSS stylesheet the path to your own customized CSS. You can modify the "dita.framework" in your Oxygen installation by editing the "DITA" document type with the "Developer" role and then distribute it. Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Eliot Kimber wrote:
I may have asked this before I don't remember doing so:
What would it take to enable Open Toolkit plugins to *automatically* contribute Author CSS style sheets?
I have developed a basic use pattern where I deploy Toolkit plugins for my specializations to the Toolkit installed under Oxygen. This makes all the DTDs for my specializations immediately available to Oxygen, which is about as convenient as it's possible for the system to be, given that all the default DITA stuff just works.
But I would also like to be able to contribute Author-mode CSS style sheets using the same plugins so that I don't have to manage two different deployment and packaging actions.
It would be nice, for example, to be able to distribute a Zip with Toolkit plugins that when others install them under Oxygen, all the Oxygen-specific stuff just works, at least CSS style sheets.
Thanks,
Eliot
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Eliot, Assuming you know exactly where your CSSes are for the DITA OT plugins, for instance you may known that their structure is something like: pluginName/css/pluginName.css then you should be able to write an AuthorExtensionStateListener extension for the DITA framework that receives a callback when you open a file for which your framework is activated and on that callback you can make sure all your plugins CSSes stylesheets are imported from the CSS that you use in your DITA framework, if they are not imported then you have the chance modify the DITA CSS file to import them. Note that the AuthorExtensionStateListener is not available in 10.2 being one of the new 10.3 additions and you will need a development snapshot to use that now or you can wait for the 10.3 release. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Eliot Kimber wrote:
I may have asked this before I don't remember doing so:
What would it take to enable Open Toolkit plugins to *automatically* contribute Author CSS style sheets?
I have developed a basic use pattern where I deploy Toolkit plugins for my specializations to the Toolkit installed under Oxygen. This makes all the DTDs for my specializations immediately available to Oxygen, which is about as convenient as it's possible for the system to be, given that all the default DITA stuff just works.
But I would also like to be able to contribute Author-mode CSS style sheets using the same plugins so that I don't have to manage two different deployment and packaging actions.
It would be nice, for example, to be able to distribute a Zip with Toolkit plugins that when others install them under Oxygen, all the Oxygen-specific stuff just works, at least CSS style sheets.
Thanks,
Eliot
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

OK, I'll explore this approach when 10.3 comes out. I was thinking along the lines of either a naming convention to use in plugins or maybe entries in the plugin.xml file that would allow Oxygen to reliably find Oxygen-specific CSS files. I'll think about that some more. Cheers, E. On 5/28/09 1:21 AM, "George Cristian Bina" <george@oxygenxml.com> wrote:
Hi Eliot,
Assuming you know exactly where your CSSes are for the DITA OT plugins, for instance you may known that their structure is something like:
pluginName/css/pluginName.css
then you should be able to write an AuthorExtensionStateListener extension for the DITA framework that receives a callback when you open a file for which your framework is activated and on that callback you can make sure all your plugins CSSes stylesheets are imported from the CSS that you use in your DITA framework, if they are not imported then you have the chance modify the DITA CSS file to import them.
Note that the AuthorExtensionStateListener is not available in 10.2 being one of the new 10.3 additions and you will need a development snapshot to use that now or you can wait for the 10.3 release.
Best Regards, George
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
participants (3)
-
Eliot Kimber
-
George Cristian Bina
-
Radu Coravu