Apply formatting to first column of table based on "otherprops" attribute value
Posted: Tue Jul 31, 2018 12:05 am
Hello Oxygen Users and Team,
I am trying to apply formatting to the first column of a two-column table that describes "Report Properties" using the "DITA Map PDF - based on DITA & CSS (WYSIWYG)" transformation scenario.
In our current output solution (TopLeaf), the formatting is applied IF the <table> "otherprops" attribute has a value of "cheader". In order to support Legacy documentation with Oxygen I need to maintain this method and apply the same formatting as <thead> to the first column of a <table> when "otherprops=cheader" only.
Table Header Row Formatting
Sample Code for Report Properties Table]
What would be a suggested method to effectively implement this solution?
With regards,
Paul HIllier
I am trying to apply formatting to the first column of a two-column table that describes "Report Properties" using the "DITA Map PDF - based on DITA & CSS (WYSIWYG)" transformation scenario.
In our current output solution (TopLeaf), the formatting is applied IF the <table> "otherprops" attribute has a value of "cheader". In order to support Legacy documentation with Oxygen I need to maintain this method and apply the same formatting as <thead> to the first column of a <table> when "otherprops=cheader" only.
Table Header Row Formatting
Code: Select all
*[class~="topic/thead"] {
font-family: "Segoe UI", Arial, sans-serif;
color: white;
font-size: 0.9em;
background-color: #6aade4;
font-weight:bold;
margin-top: 1em;
text-align: left;
}
Sample Code for Report Properties Table
Code: Select all
<table id="table_26CBA0303BC74D48A2059FDB335D71D1" [b]otherprops="cheader"[/b]>
<title>Report Properties</title>
<tgroup cols="2"><colspec colnum="1" colname="col1"
colwidth="1.85in"/><colspec colnum="2" colname="col2" colwidth="5in"/>
<tbody>
<row>
<entry colname="col1">
<p>Report System Name
</p>
</entry>
<entry colname="col2">
<p>Redacted
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Report Business Name
</p>
</entry>
<entry colname="col2">
<p> Redacted
</entry>
</row>
<row>
<entry colname="col1">
<p>Report Control Name
</p>
</entry>
<entry colname="col2">
<p>RBCEFT0.P
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Type
</p>
</entry>
<entry colname="col2">
<p>Scheduler
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Sort Order
</p>
</entry>
<entry colname="col2">
<p>N/A
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Format
</p>
</entry>
<entry colname="col2">
<p>XML
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Output File Name
</p>
</entry>
<entry colname="col2">
<p>WIREFILE.REDCDN
</p>
</entry>
</row>
<row>
<entry colname="col1">
<p>Output Directory
</p>
</entry>
<entry colname="col2">
<p> Interface
</p>
</entry>
</row>
</tbody>
</tgroup>
</table>
What would be a suggested method to effectively implement this solution?
With regards,
Paul HIllier