Dear Hussein Thank you for your quick response. I am sorry for my delay in sending you the files you asked for due to a holiday in the UK and difficulty reproducing the superscript problem in text that I can share with you.
I have realised that this 2nd problem only occurs when I paste MS Word text that was created using XMLMind back into XMLMind (after my customer had reviewed my drafts in Word) See the example files. ... Footnote Text.docx is the original MS Word file containing footnotes: ... Footnote Text.dita is that text pasted into XML Mind. ... Footnote Text2.docx is the result when published to Word 2007+ - no problem with footnote numbering. ... Footnote Text2.dita is this 2nd word document pasted into XMLMind - the footnotes now contain extra numbering When this last file is published to MS Word it contains the double footnote numbers. I am using: Microsoft Office 365 ProPlus Version 1708 (Build 8431.2242 Regards Vic Vic Steadman Executive Consultant Mobile: +44 (0) 7940 507304 -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: 05 May 2018 09:19 To: Vic Steadman <vic.stead...@aspirecl.com> Cc: 'xmleditor-support@xmlmind.com' <xmleditor-support@xmlmind.com> Subject: Re: [XXE] Paste From Word - Footnotes 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
Footnote Text.docx
Description: Footnote Text.docx
Footnote Text2.docx
Description: Footnote Text2.docx
Footnote Text.dita
Description: Footnote Text.dita
Footnote Text2.dita
Description: Footnote Text2.dita
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support