Documentation Center

IWriteMetadataAndBlobPlugin - BlobConvertTableConditions

Used to copy table conditions to the cells in the table. For DITA, this plugin copies "ishcondition" attributes from the table header (or from the first table row if there is no header) to all colspec and entry elements in the same column. Note that, for DITA, this plugin only works on 'table' elements, not on 'simpletable' elements.

Plugin Configuration

No parameters need to be configured.


<plugin name="ISHSYSCONVERTTABLECONDITIONS" handler="BlobConvertTableConditions" 
ishcondition="CurrentAction in ('Create', 'Update', 'Checkin') and (EDT='EDTXML')">
  <description>
      Used to copy DITA table conditions to the cells in the table. 
      It copies "ishcondition" attributes from the table header (or from the first table row if there is no header) 
      to all colspec and entry elements in the same column
  </description>
  <initialize>
    <parameters/>
  </initialize>
</plugin>
Suppose the input looks like this:

...
<table>
  <tgroup cols="5">
    <colspec colname="col1" colwidth="1.00*"/>
    <colspec colname="col2" colwidth="1.00*"/>
    <colspec colname="col3" colwidth="1.00*"/>
    <thead>
      <row>
        <entry ishcondition="MODEL=COL1">Column 1</entry>
        <entry>Column 2</entry>
        <entry ishcondition="MODEL=COL3">Column 3</entry>
      </row>
    </thead>
    <tbody>
      <row ishcondition="MODEL=ROW1">
        <entry ishcondition="MODEL=A1">A1</entry>
        <entry ishcondition="MODEL=A2">A2</entry>
        <entry ishcondition="MODEL=A3">A3</entry>
      </row>
    </tbody>
  </tgroup>
</table>
...
The output after running this plugin will then look like this:

...
<table>
  <tgroup cols="5">
    <colspec colname="col1" colwidth="1.00*" ishcondition="MODEL=COL1"/>
    <colspec colname="col2" colwidth="1.00*"/>
    <colspec colname="col3" colwidth="1.00*" ishcondition="MODEL=COL3"/>
    <thead>
      <row>
        <entry ishcondition="MODEL=COL1">Column 1</entry>
        <entry>Column 2</entry>
        <entry ishcondition="MODEL=COL3">Column 3</entry>
      </row>
    </thead>
    <tbody>
      <row ishcondition="MODEL=ROW1">
        <entry ishcondition="MODEL=COL1">A1</entry>
        <entry>A2</entry>
        <entry ishcondition="MODEL=COL3">A3</entry>
      </row>
    </tbody>
  </tgroup>
</table>
...