Page 1 of 1

Use of alternate CSS available in Oxygen Web Author

Posted: Fri Jul 15, 2016 6:26 pm
by hatchjk
Is the use of alternate CSS available in Oxygen Web Author? If so, could someone point me to documentation describing how to implement?

Re: Use of alternate CSS available in Oxygen Web Author

Posted: Mon Jul 18, 2016 9:52 am
by Gabriel Titerlea
Yes, alternate CSS is available. You only need to add the alternate stylesheet to the framework [1] you are using or to an extension [2] of the framework.
After that, add the modified framework to the web author [3][4].

You can switch the active style-sheet by passing in a stylesheet-titles url parameter which has a list of stylesheets separated by commas as value:

Code: Select all

&stylesheet-titles=Cursive,%2B%20Inline%20actions,Alternate%20Style
Note: The list of styles must be URL-encoded.

[1] - https://www.oxygenxml.com/doc/versions/ ... ernate,css
[2] - https://www.oxygenxml.com/doc/versions/ ... on-sharing
[3] - https://www.oxygenxml.com/doc/versions/ ... ,framework
[4] - https://www.oxygenxml.com/doc/versions/ ... ,framework

Re: Use of alternate CSS available in Oxygen Web Author

Posted: Thu Jul 06, 2017 10:58 am
by jbvalentin
I have an additional question about the alternate CSS feature for the Web Author: is it possible to "live" switch the stylesheet during an authoring session?

Or is it needed to close the browser and reopen it with the appropriate addtitional CSS from the start?

Thank you.

Regards,
Jean-Baptiste

Re: Use of alternate CSS available in Oxygen Web Author

Posted: Thu Jul 06, 2017 2:20 pm
by cristi_talau
Hello,

Currently we do not support changing dynamically the CSS. A similar result can be achieved by using CSS pseudo-classes [1]. You can implement a toolbar action that sets a custom pseudoclass on the document root and depending on that pseudo-class you can change the styles that apply to different elements.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... asses.html

Re: Use of alternate CSS available in Oxygen Web Author

Posted: Tue Jul 18, 2017 5:18 pm
by jbvalentin
Sorry for the late reply.

Thank you for the suggestion, we will definitely follow the way you suggested.

Cheers,
Jean-Baptiste

Re: Use of alternate CSS available in Oxygen Web Author

Posted: Wed Jun 20, 2018 10:11 am
by mihaela
Hello,

I am updating this thread to let you know that Oxygen XML Web Author 20.1 was release and it includes the support for dynamically change the styles for a document.

You can find more details on our website:
https://www.oxygenxml.com/xml_web_author/whats_new.html