Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Insert a CRLF when transforming XML into text

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: 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>&#13</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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent