• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

URGENT: How can I make FM keep non-breaking spaces when saving to XML ?

Advocate ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

I have a deadline coming up and run into a problem with FrameMaker when saving to XML. Non-breaking spaces - which are put into the XML before opening the file, using the   character code - are handled correctly when reading the XML file into Frame, but when I save the XML, all of those spaces are replaced with simple (breakable) spaces. Not what would be expected.

 

Looking for a global setting or an entry in the read-write rules to keep Frame from corrupting my XML. Any pointers are welcome, as long as I get them asap.

 

Thanks

TOPICS
Error , Structured

Views

182

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

Hi Jang, What version of FrameMaker are you using and how are you doing the save? Thanks. -Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

Hi Rick, I am using FM 17 (i.e. 2022).

 

I believe it was a false alarm. I created a bunch of non-breaking spaces in an XML and saved it, then opened in oXygen. It looks like a regular space but in reality it seems to be a non-breaking one. I was expecting the &#A0; code to appear in the XML in oXygen, but apparently oXygen automatically renders it as a space. I will run some more tests to see if the hex code in the XML is correctly translated to a non-breaking space in FM and then kept when round-tripping.

 

Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 01, 2023 Dec 01, 2023

Copy link to clipboard

Copied

LATEST

Thanks, but that page does not say anything about non-breaking whitespace. I did find out that FM keeps the non-breaking spaces, though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines