Copy link to clipboard
Copied
I'm working on a project where we are updateing from FM7 to FM11. Here I find some strange behavior (or problems ..). We're extracting xml from a database and importing into FM11 with EDD's/templates to do the formatting.
In this new version, we are losing a lot of spaces, and it seems to be connected to how FM11 is reading what my xml-expert calls "new line characters": "There is a single new line character after &åttedel; and also after </nevner>, no space and it's correct like that. A new line character and a space (in PCDATA) in XML are 100% equivalent. This is an XML feature, enables XML serializers to line-break the XML without any information loss."
This worked fine in FM7, and we had all our spaces correct in connection with entities and fractions (teller/nevner), - but in FM11 they are gone. I'm using the same EDD's/templates as in FM7, just updated them to correct FM version.
Is this a sort of bug in FM11, have I done something wrong, or is it some trick in converting from FM7 to FM11 that I have missed?
BR
DagB
Copy link to clipboard
Copied
You can disable the whitespace stripping in the maker.ini, or by using the proper xml syntax.
Check this link:
Cheers
Alex
Copy link to clipboard
Copied
Sorry, but that link handles stripping/merging of double/multiple whitespace. That's not my problem. It's the single new line character which does not convert into a single space as it's supposed to do ...
Copy link to clipboard
Copied
Would you mind to give an example of what you get and what you should get?
Next question would be, which API client you are using for import.
Copy link to clipboard
Copied
Hi
This might be a related problem, but now I find that [space] [tab] is not changed in the FM11 import of the xml-file, while [tab] [space] is removed all together... Is this controlled in the maker.ini-file? Or is it a bug in FM11?
When I use FM7 to open the xml-file, it preserves both variants ...