Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Insert a CRLF when transforming XML into text [Thread Next] Re: Insert a CRLF when transforming XML into textTo: NULL Date: 1/16/2009 7:57:00 PM On Fri, 16 Jan 2009 06:57:02 -0800, Savvoulidis Iordanis <SavvoulidisIordanis@d...> wrote: >Although the <xsl:text>
</xsl:text> goes to a new line, I noticed that >even when I just press Enter inside the XSLT file, the output text file has a >CRLF at the same position as the Enter I pressed. >And also, if I ident my XSL code using spaces on the left of my XSLT lines, >the output file is also carrying them too. I get spaces in front of every CSV >line produced. So, I'm forced to stuff all the code on the left which is ugly. >Is there anything I can do? OK so far you haven't shown your stylesheet - the suggestion for character entities was to clearly indicate where the intended CR/LF should appear, rather than using the invisible <press enter> method. Perhaps http://www.xml.com/pub/a/2001/12/05/whitespace.html and other google searches on white space in XSL might be more useful - note how they squash the space within the XSL stylesheet to get the desired output. Although it might not look readable to you, the machine will have no problem processing that even if all the xsl: instructions are squashed together into a single line. HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2009 http://mvp.support.microsoft.com/mvpfaqs | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
