[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Windows-style CRLF in text output
Michael Kay wrote:
<snip />, whereas if it contains An alternative approach, along the lines of Dan Appleman's infamous "it CAN be done in language xxx", could be to not write xA or xD at all, instead use a Unicode Private Use character. Then, after serializing, these "newlines" can be converted by either reprocessing it as unparsed-text with XSLT 2.0 (and writing it as method="text"), using sed on Unix or Perl or Ruby or Java or whatever you like to use to replace these Private Use characters to your type of line endings. That way you bypass the XML line ending normalization. One additional note, if I recall correctly, using a character map, you bypass the normalization process too and the newline character that you can create that way is not allowed to be changed... at least that's what I believe that the spec is saying. Cheers, -- Abel --
|
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
|