On 09/06/2019 11:48 AM, Damian Cannon wrote:
I wonder if you can help me regarding the conversion of tables and the
setting of attributes (colname, colnum, namest, nameend, morerows)
within the output tables? I have looked through the documentation and as
far as I can tell there are no parameters which I can use.
If I import the attached document and output a ditamap there are a few
things that I'd like to see in the xml output:
1) It would be useful if each <entry> had a colname attribute which
matchesd the colname in the <colspec> element. With merged cells the
namest and nameend attributes are set so the column names must be known
when an <entry> is created.
2) For consistency with our editor it would be great if the colname
attributes where set as colA, colB, colC etc rather than c1, c2, c3 etc
(with these being used on the namest and nameend attributes as well)
3) For a similar reason we would like to have the colnum attribute set
on the <colspec> elements as well with this being a simple number
sequence (1,2,3 etc)
4) Finally do you know why the colwidth attributes are named as, say,
"20*" rather than "20%"?
"20*" is a valid value, "20%" is not. DITA tables are (simplified subset
of) CALS tables, not HTML tables.
See "CALS Table Model Document Type Definition",
https://www.oasis-open.org/specs/a502.htm
---
COLWIDTH: Either proportional measure of the form number*, i.e., "5*"
for 5 times the proportion, or "*" (which is equivalent to "1*"); fixed
measure, i.e., 2pt for 2 point, 3pi for 3 pica; or mixed measure, i.e.,
2*+3pt. Coefficients are positive integers or fixed point numbers.
Declared Value = CDATA
Default = IMPLIED (means obtain value from a named style specification
if any. If there is no such value, or if the value is "" [the null
string] then assume a proportion of "1*".)
---
See also "colwidth, Column Width (OASIS Table Model)",
https://jats.nlm.nih.gov/options/OASIS/tag-library/19990315/n-6i00.html
Again it would be useful for these to be set as
a percentage value when converted
We don't see any validity or consistency problems with the CALS tables
XMLmind Word To XML generates.
If you want to change the way XMLmind Word To XML generates CALS tables,
then you'll have to customize the following XSLT 1.0 stylesheet yourself:
<W2X_install_dir>/xslt/tgroup.xslt
(<W2X_install_dir>/xslt/tgroup.xslt is imported by
<W2X_install_dir>/xslt/topic.xslt)
A quick and dirty way to do that is to modify this file directly. A
clean way to do that is explained here:
See "A custom XSLT stylesheet" in
https://www.xmlmind.com/w2x/_distrib/doc/manual/index.html#general_customize_semantic_xml
=======================================================================
Sorry but we won't answer to any further questions from Scribestar Limited.
Please understand that support costs us time and money. Being a very
small, understaffed, company, we simply cannot afford spending too much
time on presales.
We certainly understand that this policy implies that we could miss some
sales.
=======================================================================
--
XMLmind Word To XML Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/w2x-support