On 07/25/2014 05:22 PM, Jeff Hooker wrote:
I have attached a small sample of a large document that, in my version
of XMLmind 6.0, utterly breaks the Paste From Word feature. I have yet
to get the engineer responsible for this document to admit what he did,
but I thought you might be interested in a sample. Since it also utterly
violates all of PMC’s guidelines for Word documents, I’m not terribly
interested in a fix for it; I am just submitting this sample as way of
possibly improving the Paste From Word feature in future versions of the
product.
Thanks.
A docm being a docx containing macros, I didn't manage to open normally
your sample in my copy of Word 2007, and this, even after enabling
macros. May be I need to install an extra component in my copy of Word
2007 (VBA?). See attached screenshots. It's all what I got.
"Paste from Word" works by parsing the unfiltered HTML copied by Word to
the clipboard. This unfiltered HTML is of course always invalid beyond
all recognition. In the case of your table, the unfiltered HTML seems to
be invalid in new creative ways, which are completely unexpected by both
TagSoup, the HTML parser we use and by our "Paste From Word" feature.
This causes "Paste From Word" to generate a DocBook/DITA/XHTML table
which is so broken that XXE crashes while rendering it.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support