Enable multiple selection of alternate CSSs from Framework Extension Script File
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Enable multiple selection of alternate CSSs from Framework Extension Script File
Hello,
I am using Oxygen component 24.0.0.2 version.
I want to use alternate css.
In our frameworks we define them like this
the alternate css is like
But when we select one of the alternate css, it is treated like the main css.
I did not find where to enable multiple selection of alternate CSSs from a framework extension script file.
Can you explain me how to fix that.
Thank you
Regards,
Isabelle
I am using Oxygen component 24.0.0.2 version.
I want to use alternate css.
In our frameworks we define them like this
Code: Select all
<author>
<css>
<addCss path="${frameworks}/descript.css" title="Default" alternate="false"/>
<addCss path="${frameworks}/comment-hide.css" title="+ Hide comments" alternate="true"/>
<addCss path="${frameworks}/comment-show.css" title="+ Show comments" alternate="true"/>
</css>
</author>
Code: Select all
@namespace oxy url(http://www.oxygenxml.com/extensions/author);
oxy|comment {
display: block !important;
}
I did not find where to enable multiple selection of alternate CSSs from a framework extension script file.
Can you explain me how to fix that.
Thank you
Regards,
Isabelle
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Enable multiple selection of alternate CSSs from Framework Extension Script File
Post by alex_jitianu »
Hello,
Unfortunately, you can't set this option through the script. I've added an issue to make it available in the the next Oxygen release. Meanwhile, if you are compiling the script (you can compile the script to obtain the *.framework file by using the Compile Framework Extension script action from the editor contextual menu or by running the scripts/compileFrameworkScript.bat external tool from an all platform Oxygen distribution), you can apply a fix-up script afterwards. For example, you can apply an XSLT over the resulting *.framework file, maybe from an ANT script to automate it:
Best regards,
Alex
Unfortunately, you can't set this option through the script. I've added an issue to make it available in the the next Oxygen release. Meanwhile, if you are compiling the script (you can compile the script to obtain the *.framework file by using the Compile Framework Extension script action from the editor contextual menu or by running the scripts/compileFrameworkScript.bat external tool from an all platform Oxygen distribution), you can apply a fix-up script afterwards. For example, you can apply an XSLT over the resulting *.framework file, maybe from an ANT script to automate it:
Code: Select all
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="authorExtension/field[@name='multipleAlternateSelectionEnabled']">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<Boolean>true</Boolean>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Alex
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Enable multiple selection of alternate CSSs from Framework Extension Script File
Hello Alex,
Thank you for your feedback.
We have found a workaround for now and we wait for your solution in the next version of Oxygen.
Regards,
Isabelle
Thank you for your feedback.
We have found a workaround for now and we wait for your solution in the next version of Oxygen.
Regards,
Isabelle
-
- Posts: 1
- Joined: Fri Oct 14, 2022 2:26 pm
Re: Enable multiple selection of alternate CSSs from Framework Extension Script File
Post by GabrielNedianu »
Hello Isabelle,
We've just released Oxygen version 25 and now you can control CSS merging and selecting options in the framework script.
More information can be found at Oxygen XML Editor's documentation page: https://www.oxygenxml.com/doc/versions/ ... lr_c2c_45b
Regards,
Gabriel N.
We've just released Oxygen version 25 and now you can control CSS merging and selecting options in the framework script.
More information can be found at Oxygen XML Editor's documentation page: https://www.oxygenxml.com/doc/versions/ ... lr_c2c_45b
Regards,
Gabriel N.
Return to “SDK-API, Frameworks - Document Types”
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