|
Rank: Newbie
Joined: 6/16/2017 Posts: 4
|
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
|
|
Rank: Newbie
Joined: 6/16/2017 Posts: 4
|
looks like its my on doing ...
I added this:  
it seems to create line feeds ..
is there a "softer" way to create new lines
thank you,
Daniel
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 564
|
What, exactly, is your output format? Perhaps it specifies a method to specify a line break
|
|
Rank: Newbie
Joined: 6/16/2017 Posts: 4
|
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
|
|
guest |