Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This 'trial by internet' is madness.
Home
Help
Login
Register
THE BORE
»
General
»
The Superdeep Borehole
»
Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
Print
Pages: [
1
]
Author
Topic: Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV? (Read 526 times)
0 Members and 1 Guest are viewing this topic.
GilloD
TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
Senior Member
Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
«
on:
May 07, 2009, 04:19:51 PM »
So, I have an XSL sheet that exports orders to our ERP in a CSV. Currently, everything exports to a single line. How do I insert a linebreak via the XSL? I've tried the usual &13 shit.
Logged
wha
Howard Alan Treesong
キング・メタル・ドラゴン
Icon
Re: Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
«
Reply #1 on:
May 07, 2009, 04:20:33 PM »
\n ? I Dunno
Logged
乱学者
GilloD
TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
Senior Member
Re: Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
«
Reply #2 on:
May 07, 2009, 04:30:42 PM »
FOUND IT NO THANKS TO YOU
But when I was going to make a CSV export using XSLT, the same formula didn’t work. After some googling and testing I found this solution: Use method=”text” and indent=”yes” in xsl:output. Use xsl text and put a line break (#x0D;) and use xml:space=”preserve”.
Note the key here is xml:space=”preserve”. Without it won’t work. It only worked if I added some text before the line break. But obviously, in a CSV, I don’t wont test at the end of the line.
Logged
wha
recursivelyenumerable
you might think that; I couldn't possibly comment
Senior Member
Re: Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
«
Reply #3 on:
May 07, 2009, 04:52:38 PM »
I hope you're posting these questions to Stack Overflow and not just here.
Logged
QED
GilloD
TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
Senior Member
Re: Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?
«
Reply #4 on:
May 07, 2009, 05:17:43 PM »
HA DURR. I did it wrong:
<xsl:text> </xsl:text>
Winner Dinner.
Logged
wha
Print
Pages: [
1
]
THE BORE
»
General
»
The Superdeep Borehole
»
Comp00ter dudez: How to insert a linebreak in an XSL when outputting to CSV?