Copy link to clipboard
Copied
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:
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.
1 Correct answer
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
There is also an entry in your maker.ini that you can try setting:
[Preferences]
RemoveExtraWhiteSpacesOnXMLImport=On

