[xslt] xsltproc win32 newlines after cdata
- From: "Matthew Pearce" <mpearce digitas com>
- To: <xslt gnome org>
- Subject: [xslt] xsltproc win32 newlines after cdata
- Date: Wed, 25 Feb 2004 18:51:57 -0000
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
<div>some text</div>
2)
<![CDATA[<div class="footer-]]><xsl:value-of select="type"/><![CDATA[">]]>some text<![CDATA[</div>]]>
generates
<div class="footer-
blue
">some text<div>
3)
<a href="{$href}">some link</a>
generates
<a href="
:foobar.html
:">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]