Table cell color
Oxygen general issues.
-
- Posts: 9443
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Table cell color
Hi,
Do you want this for editing or for publishing? If for publishing, to what output format are you publishing? HTML, PDF (using CSS for customizing) or PDF (using XSL-FO for customizing).
Usually something like this can be achieved by setting the @outputclass attribute on the DITA cell <entry> to a custom value and then using a CSS selector to match the element in the published output and to change its background.
Regards,
Radu
Do you want this for editing or for publishing? If for publishing, to what output format are you publishing? HTML, PDF (using CSS for customizing) or PDF (using XSL-FO for customizing).
Usually something like this can be achieved by setting the @outputclass attribute on the DITA cell <entry> to a custom value and then using a CSS selector to match the element in the published output and to change its background.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9443
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Table cell color
Hi,
On the Oxygen toolbar there is a "Highlight" tool which can be used to highlight selected content with various colors. This does not influence the publishing in any way, it's only for editing.
Regards,
Radu
On the Oxygen toolbar there is a "Highlight" tool which can be used to highlight selected content with various colors. This does not influence the publishing in any way, it's only for editing.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Wed Nov 18, 2020 5:25 pm
Re: Table cell color
Hello Radu, We are using both PDF and HTML formats. Please refer the attached image. I want to change the color of the table cell. I do not see any attributes related to color there.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9443
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Table cell color
Hi,
So you actually wanted this for publishing, right?
If you place the caret in the cell and look in the Attributes view, you can set there an "outputclass" attribute to some custom value like "special". Then save the topic.
If you publish to HTML you can create a custom CSS stylesheet with the rule:
then edit the transformation scenario in Oxygen and in the "Parameters" list set the "args.css" parameter to point to your custom CSS. There is also a parameter named "args.copycss" which should be set to "yes", in this way the output folder will contain both the HTML files and the custom CSS.
If you publish DITA to PDF using our "DITA Map PDF - based on HTML5 & CSS" transformation scenario, the same custom CSS can be used by similarly configuring parameters:
https://www.oxygenxml.com/doc/versions/ ... ml5-2.html
If you publish DITA to PDF using the classic XSL-FO based approach you will probably need to customize the PDF output using XSLT to match on a table cell with this particular attribute and produce the equivalent XSL-FO structure:
https://www.oxygenxml.com/doc/versions/ ... utput.html
Regards,
Radu
So you actually wanted this for publishing, right?
If you place the caret in the cell and look in the Attributes view, you can set there an "outputclass" attribute to some custom value like "special". Then save the topic.
If you publish to HTML you can create a custom CSS stylesheet with the rule:
Code: Select all
.special {
background-color:green
}
If you publish DITA to PDF using our "DITA Map PDF - based on HTML5 & CSS" transformation scenario, the same custom CSS can be used by similarly configuring parameters:
https://www.oxygenxml.com/doc/versions/ ... ml5-2.html
If you publish DITA to PDF using the classic XSL-FO based approach you will probably need to customize the PDF output using XSLT to match on a table cell with this particular attribute and produce the equivalent XSL-FO structure:
https://www.oxygenxml.com/doc/versions/ ... utput.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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