Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSLT Newline handling quirks - Text mode

$
0
0

Hi

You can see below a relatively simple XSL file and the output produced.

Notice in the output, an extra line at line 1 and line 14
>> So my question is why the lack of consistency ?

e.g. Text in line 7 and line 14 directly follow XSL from the lines below => This causes an extra newline
However text in line 12 does NOT cause an extra newline, this being inside a 'for-each-select' while the others followed a 'template match' and 'if test'. Neither items in the XML had an newlines embedded in them.

Thanks in advance


Viewing all articles
Browse latest Browse all 935

Trending Articles