xsl-list
[Top] [All Lists]

Re: [xsl] How to prevent stripping of EOL/CR chars at the end of lines?

2009-08-12 06:23:37
You can try to add xml:space="preserve" in the root element xsl:stylesheet
Israel

On Wed, Aug 12, 2009 at 12:07 PM, Ben 
Stover<bxstover(_at_)yahoo(_dot_)co(_dot_)uk> wrote:
When I apply an xslt script onto an source XML file (under WinXP) then 
everything is fine except the fact
that the result XML file is on one single, very, very long line.

How to I prevent stripping of EOL/CR line end chars?

The source file contains them, the XSLT script contains them. So the reuslt 
file
should contains them as well.

Moreover the prepended blanks/tabs at the beginning of a line should NOT 
stripped as well.

So how can I achieve this all?

Ben












--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>