[xslt] xsltproc win32 newlines after cdata



Hi,
 
I developed stylesheets on linux using libxslt to help produce HTML pages from XML markup. The build script used xsltproc to do the transform. 
 
I donīt have access to the linux machine right now and I urgently need to produce some pages, so I downloaded the Win32 port of libxslt. 
 
Because I am producing html which conforms only to the loose.dtd, I make heavy use of CDATA sections in my stylesheets. 
 
However using the Win32 port of libxslt (xsltproc.exe) I find that the outputted HTML has many, many newlines, it also converts the < and > to their entity reference values. Why does this happen on Win32 and is there a way to prevent this behaviour?  Thankyou.
 
For example:
 
1) 
 
<![CDATA[<div>some text</div>]]> 
 
generates
 
 &lt;div&gt;some text&lt;/div&gt;
 
2)
<![CDATA[<div class="footer-]]><xsl:value-of select="type"/><![CDATA[">]]>some text<![CDATA[</div>]]>
 
generates
 
&lt;div class="footer-
blue
"&gt;some text&lt;div&gt;
 
3) 
 
<a href="{$href}">some link</a>   
 
generates
 
<a href="&#10:foobar.html&#10:">some link</a> 
 
 
 
I trust someone will be able to help.
 
Matthew
 



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