[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT engines and terminal newline
Hi Michael(tm)
The diff-like programs I tend to use ignore whitespace differences, or have at least an option to ignore them. But if that isn't an option for you, I can only think of the following (not sure it helps you though): <xsl:if test="contains(system-property('xsl:vendor'), 'SAXON 6.5')"> <xsl:text>
</xsl:text> </xsl:if> You can call that whenever you are supposed to enter the final newline. Cheers, Abel Braaksma http://abelleba.metacarpus.com Michael(tm) Smith wrote: When I do an XSLT transformation with xsltproc, the output is always newline-terminated (final byte is a newline character). When I do the same transformation with Saxon 6.5, the output is not newline-terminated.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|