Table import in DITA format
Posted: Mon Feb 03, 2014 3:30 pm
We want to import text tables like the following into DITA:
The File > Import > Text File function works fine, but gives us the following:
Whereas in DITA we would prefer something like this:
Can this be configured using some settings or do we have to use a XSLT transformation?
TIA
Frank
Code: Select all
Type | Value | Description
Lead | Low | Starting point for alchemists.
Gold | High | The alchemist’s goal.
Code: Select all
<root>
<row>
<Type>Lead</Type>
<Value>Low</Value>
<Description>Starting point for alchemists.</Description>
</row>
<row>
<Type>Gold</Type>
<Value>High</Value>
<Description>The alchemist’s goal.</Description>
</row>
</root>
Code: Select all
<table>
<row>
<entry colname="Type">Lead</entry>
<entry colname="Value">Low</entry>
<entry colname="Description">Starting point for alchemists.</entry>
</row>
<row>
<entry colname="Type">Gold</entry>
<entry colname="Value">High</entry>
<entry colname="Description">The alchemist’s goal.</entry>
</row>
</table>
TIA
Frank