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

XML table input adding additional unwanted spacing

Community Beginner ,
Oct 20, 2023 Oct 20, 2023

I have some XML run through an XSLT in FrameMaker, and a table is created. For some reason, in the table are additional spaces that do not appear in the transformed XML, and it is adding exta space between my rows. 

 

Here is the relevant piece of XML:

<TEHead><table><tgroup><tbody><row><entry align="left"><ORS>315.237</ORS>
  </entry><entry align="right"><Carryforward>5 years</Carryforward></entry></row>
<row><entry align="left"><Sunset>12-31-2025</Sunset>
  </entry><entry align="right"><Refundable>No</Refundable></entry></row>
<row><entry align="left"><Enacted>2001</Enacted></entry>
<entry align="right"><Transferable>No</Transferable></entry></row></tbody></tgroup></table></TEHead>

 I have a series of prefix rules associated with each element in the table above. Here is the output I am getting from this with text markers on:

Result of FrameMaker table creationexpand image

How are these additional pieces being added to the Statute and Sunset Date cells? I would like the end of flow to be immediately following the text content. Obviously I could delete the spaces, but this issue is affecting hundreds of entries. 

TOPICS
Formatting and numbering , Getting started , Structured , XML author
227
Translate
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

correct answers 1 Correct answer

Community Expert , Oct 20, 2023 Oct 20, 2023

Your <entry> elements start on one line and end on the next, so a hard return is being introduced on input. In your XSLT, you can use <xsl:strip-space> on the element that creates the row. Or set indent="no" on the <xsl:output> element.

Translate
Community Expert ,
Oct 20, 2023 Oct 20, 2023

Your <entry> elements start on one line and end on the next, so a hard return is being introduced on input. In your XSLT, you can use <xsl:strip-space> on the element that creates the row. Or set indent="no" on the <xsl:output> element.

Translate
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 ,
Oct 20, 2023 Oct 20, 2023
LATEST

There is also an entry in your maker.ini that you can try setting:

 

[Preferences]
RemoveExtraWhiteSpacesOnXMLImport=On

Translate
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