OpenXML (docx) & converted to &
Original issue 454 created by andriy.luts...@crowdin.com on 2015-04-07T15:46:25.000Z:
& converted to & in mc:AlternateContent/mc:Choice
& sign inside mc:Fallback converting without problems int & sign,
& sign in mc:Choice converting into &
<mc:AlternateContent>
<mc:Choice Requires="wpg">
<w:t xml:space="preserve"> & </w:t>
</mc:Choice>
<mc:Fallback xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml">
<w:t xml:space="preserve"> & </w:t>
</mc:Fallback>
</mc:AlternateContent>
(File with & don't open with MSO)
Sample of document in attachment.
okapi-dev (okapi)
Comments (14)
-
Account Deleted -
Account Deleted Comment 2. originally posted by @ysavourel on 2015-04-18T17:46:35.000Z:
-
Account Deleted - changed status to open
Comment 3. originally posted by @ysavourel on 2015-04-18T17:46:55.000Z:
-
Account Deleted Comment 4. originally posted by @ysavourel on 2015-04-18T18:13:03.000Z:
Thanks for the testcase Andriy. The same bug also applies to < and > in unused altContent, which your fix doesn't cover. I'm going to extend the testcase and your patch to cover those as well.
-
Account Deleted Comment 5. originally posted by @ysavourel on 2015-04-18T18:19:19.000Z:
This on the openxml-refactor branch:
https://code.google.com/r/tingley-tipp/source/detail?r=b4a3dcd147121300ae094272fb113ef0ded67cb9&name=openxml-refactor -
Account Deleted - attached t.docx
- attached document.xml
Comment 6. originally posted by andriy.luts...@crowdin.com on 2015-04-20T08:03:34.000Z:
You right, with <, >, same problem &.
Interesting fact, that these symbols processed on another levels of okapi.
My suggestion (https://code.google.com/r/andriylutskiv-okapi-dev/source/browse?name=dev) is like "hack" with &,but it's work ;-) -
- changed status to resolved
Fix issue
#454- unused altContent was not correctly escaped in outputBased on a patch and from Andriy Lutskiv <andriy.lutskiv@crowdin.com>.
→ <<cset 6d78497d59ec>>
-
Hi, I think I still have the issue with & => & in the chart.xml file embedded in the docx file. [for an included chart object in the doc file]
-
Hi @vince62s, do you have a sample file that shows this problem?
-
- attached test.out.docx
- attached test.docx
yes of course. I attached 2 files one is test.docx from which I run extract you will see on the last page 6 graphs. the first 2 of the 6 include somewhere the sequence S&P coded as S&P for "standard and poors". I f I process this file through exctraction and then merge with no text change, then the S&P is recoded as S&P instead of keeping S&P
hope this is clear.
-
just to make myself clear, you need to unzip the .docx file and look at \word\charts\chart7.xml and chart8.xml of the 2 docx files
-
Hi Chase, did you get a chance to look at the issue ? is this something easy to fix ?
-
You've split this off as Issue
#526, it looks like? I will take a look over there.(Edit: I said I wasn't getting notifications on this, but actually I just missed them. Sorry!)
-
Yes I did create new one
#526because this one was tagged as resolved... sorry for duplicate, feel free to close the other one. Cheers - Log in to comment
Comment 1. originally posted by andriy.luts...@crowdin.com on 2015-04-14T08:18:58.000Z:
Fix this and push changes
https://code.google.com/r/andriylutskiv-okapi-dev/