On 03/05/2013 08:50 PM, Roy MacLean wrote:
I have a requirement to have 'optional' columns in tables.
I thought that it was possible to filter a complete column in a
simpletable, by setting @audience on every Nth (typically last) stentry
in a strow.
Something like this:
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN"
"topic.dtd">
<topic id="simple">
<title>Simple Table</title>
<body>
<p>try this</p>
<simpletable>
<sthead>
<stentry>Name</stentry>
<stentry>Comment</stentry>
<stentry audience="internal">Technical</stentry>
</sthead>
<strow>
<stentry>Foo</stentry>
<stentry>yellow</stentry>
<stentry audience="internal">E = Mc squared</stentry>
</strow>
<strow>
<stentry>Bar</stentry>
<stentry>green</stentry>
<stentry audience="internal">19 + 41 = 60</stentry>
</strow>
</simpletable>
</body>
</topic>
--------------------------------------------
The entries do indeed get filtered, but a 'ghost' column, with no
entries, remains.
My understanding is that filtering is done right at the start of the
conversion process - so that the above would be turned into a
two-entries-per-row table before any transforms were applied (and
therefore before any customizations).
Any clarification would be most welcome!
You are absolutely correct. XMLmind DITA Converter (ditac for short)
never removes table cells and just makes them empty. The rationale
behind this specificity is that ditac does not want an author to filter
all the cells out of a row, thus, making this row empty.
However, your use case is a quite useful one, so we have changed this in
ditac v2.4.0_01 (to be included in next release of XXE).
---
PS: If you are currently using ditac v2.4, we can send you the ditac.jar
of v2.4.0_01 so you can patch your ditac installation.
If you are invoking ditac from within XXE (i.e. "Convert Document"),
you'd better wait from the next release.
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support