[xslt] HTML output indenting



When I turn on indenting in HTML output of libXSLT transformation, I run into problems having extra space around images.

For example

<div><img /></div>

is transformed correctly as

<div><img></div>

but 

<div><img /><img /></div>

is transformed as

<div>
<img><img>
</div>

see the extra newlines, which I guess is not correct.
The problem is caused by extra line between tags <img> and </div> which is rendered as text node by IE.
This makes indenting in HTML output useless as I have to turn it off to obtain proper output.

Any suggestion?

Thanks

Marek



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]