IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: grossd
About
User Name: grossd
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, June 16, 2017
Last Visit: Friday, June 16, 2017 12:42:54 PM
Number of Posts: 4
[0.02% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: white space at the end of generated line
Posted: Friday, June 16, 2017 12:42:54 PM
thank you.

I am using a complete clean slate as output format -- generating a text file.

The issues was indeed the hardcoded   which generated a "hard" LF. And ontop of that i noticed that i had two spaces infront of this code.

Instead i now use"
<xsl:text>
</xsl:text>

which resolved the problem.

thank you,

Daniel
Topic: white space at the end of generated line
Posted: Friday, June 16, 2017 11:14:44 AM
looks like its my on doing ...

I added this: &#xa0;

it seems to create line feeds ..

is there a "softer" way to create new lines

thank you,

Daniel
Topic: white space at the end of generated line
Posted: Friday, June 16, 2017 10:27:12 AM
Hi,

I am new to XSLT and created a transformation sheet that translates from xml to another format.

All works well, however i noticed that at the end of each emitted line there are a number of white spaces -- which could also be some hidden characters.

These generate an error when i input the generated file into another tool i am using.

I visualized in XML Spy editor all white spaces and EOL markers and there are no white spaces at the end of lines.

Also the strings i am emitting have no white spaces preprended. Yet, i get the same number of white spaces at the end of each line --


any thoughts what this might be and how i can get rid of them would be great.

thank you,

Daniel

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.