[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: pretty printing - having CRLF instead of LF
If you use a Java based XSLT Processor, you may change the system
property :
System.setProperty("line.separator", "\r\n");
But, you MUST test it before !
Best,
Christophe
Le 2018-05-29 10:03, Michael Kay mike@xxxxxxxxxxxx a C)critB :
I think saxon:newline works only for the "text" output method.
Michael Kay
Saxonica
On 29 May 2018, at 08:43, cmarchand@xxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
http://www.saxonica.com/documentation/index.html#!extensions/output-extras/serialization-parameters
saxon:newline="x0Cx0A" should do the trick...
Best,
Christophe
Le 2018-05-29 09:20, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx a C)crit :
Yeah, that could be an option, thanks,
I was hoping to keep it inside the XSLT process,
but we might end up postprocessing the result indeed
Best regards,
Geert Bormans
--------------------------------------------------------------
Markup UK - a conference about XML and other mark-up languages
London, June 9b10 2018
Programme now available at [ http://markupuk.org/speakers.xhtml |
http://markupuk.org/speakers.xhtml ]
Register at [ http://markupuk.org/registration.xhtml |
http://markupuk.org/registration.xhtml ]
----- Oorspronkelijk bericht -----
Van: "Abel Braaksma, (Exselt) abel@xxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Aan: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Verzonden: Dinsdag 29 mei 2018 09:03:36
Onderwerp: Re: pretty printing - having CRLF instead of LF
unix2dos perhaps
Assumes you use ... (maybe not these days)
Dave
On 29 May 2018 at 07:51, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
All,
Title says it all.
Using XSLT I need the output indent=yes
but it feeds in mainframe, so I need the line ends to be CRLF
instead of LF
I am doing so now by taking full control of the "pretty print"
process
But maybe there is a more straightforward way?
Best regards,
Geert Bormans
--------------------------------------------------------------
Markup UK - a conference about XML and other mark-up languages
London, June 9b10 2018
Programme now available at http://markupuk.org/speakers.xhtml
Register at http://markupuk.org/registration.xhtml
XSL-List info and archive
EasyUnsubscribe (by email)
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|