On 05/04/2018 11:41 AM, Vic Steadman wrote:
I am using XMLMind XML Editor Professional Edition 8.0.0. I have just come across a problem where footnotes in my text have not been converted into my output documents (XML, pdf or Word 2007). On investigation, the problem areas were where I had pasted pieces of text using <<Past As>> <<Paste from Word >>. If I manually enter a footnote in XMLMind it appears in the xml as: <fn>Example Footnote Text</fn> If I paste t If I paste text from Word that contains a footnote it appears as: <fn id="_ftn1"><p><sup>(1)</sup> Example Footnote Text</p></fn> which does not render in the output documents. ext from Word that contains a footnote it appears as: <fn id="_ftn1"><p><sup>(1)</sup> Example Footnote Text</p></fn> which does not render in the output documents. If I remove the id attribute from the <p> element the footnote is rendered correctly in the output.
Yes, that's right. This @id is the cause of this issue because the DITA spec says:
---A footnote that specifies an @id attribute is a use-by-reference footnote. Upon output, it does not appear anywhere unless it has been referenced using an <xref> with the @type attribute set to "fn".
---See http://docs.oasis-open.org/dita/dita/v1.3/os/part2-tech-content/langRef/base/fn.html#fn
Note that footnote reference from the original Word source is retained (within the sup element) even though it may not be relevant in the new context and, in any case, doubles up the numbering.
This would be a *second* bug, unrelated to the @id one.I don't manage to get the "<sup>(1)</sup>" footnote reference using XXE v8 and MS-Word 2013. See attached test.
- Which version of MS-Word did you use?- Did you use MS-Word "Note Options" dialog to change the way footnotes are numbered?
Please do not hesitate to send a DOCX file allowing us to reproduce here at XMLmind this second bug. (By doing this, you'll almost ensure that we'll also fix this second bug.)
I think this is a bug in the way XMLMind pastes text from Word.
Indeed. We'll try to fix at least the first bug in the next version of XMLmind XML Editor
TestFootnotes.docx
Description: MS-Word 2007 document
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> <topic id="MyTopic"> <title>This is a DITA topic</title> <body> <p>What follows has been pasted from MS-Word using <menucascade> <uicontrol>Topic</uicontrol> <uicontrol>Paste As</uicontrol> <uicontrol>Paste from Word</uicontrol> </menucascade>:</p> <p>This paragraph contains a footnote<fn id="_ftn1"><p><i>First</i> footnote.</p></fn>.</p> <p>Same thing with these other paragraphs:</p> <p>This other paragraph also contains<fn id="_ftn1"><p><i>Second</i> footnote.</p></fn> a footnote.</p> <p>End of test.</p> </body> </topic>
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support