On 08/26/2013 11:53 PM, Jeff Hooker wrote:
Is there any way of forcing the “Paste from Word” feature to use the
CALS table model instead of the HTML model?
Yes. Please follow the instructions found in:
* <paste_from_word_install_dir>/docbook5/docbook5.incl for DocBook 5.
* <paste_from_word_install_dir>/docbook/docbook.incl for DocBook 4.
Example of such instructions:
=================================================================
<!-- Uncomment the following property if you want to
generate CALS tables rather than HTML tables.
The only differences with the stock parameter are:
* -p tables.set-column-number yes (needed to generate
CALS tables)
* -p transform.cals-tables yes
<property name="$c.pasteFromWord.parameter">
[after para]
[xmlns:pfw=java:com.xmlmind.xmleditext.paste_from_word.XPathFunctions]
-p tables.set-column-number yes
-p sections.max-level {pfw:docbookSectionMaxLevel(.)}
-t paste-from-word:xslt/mswordhtml/docbook.xslt
-p transform.hierarchy-name
{if($pasting-root, local-name(/*), pfw:docbookHierarchyName(.))}
-p transform.cals-tables yes
</property>
-->
=================================================================
In production, instead uncommenting some code in the .incl file (which
would not survive XXE upgrades), please define property
"$c.pasteFromWord.parameter" in your custom configuration file.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support