Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2003, 08:58 AM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT transformation causes ^M

Hi all,

can somebody enlighten me as to why these ^M are introduced when transforming an XML file using XALAN.

Using: Win2k, J2SDK1.4.2 and ANT 1.5

I see these ^M as a character for end of line(EOF character) using a VIM or vi editor.

Example:
-------------------------------------------------------------------
  <init target="Controller">^M
    ^M
    <context key="TxId" type="ConstantValue" value="999000000"/>^M
    <context key="result-code" type="ConstantValue" value="Success"/>^M
    <context key="Quantity" type="ConstantValue" value="1"/>^M
    ^M
    ^M
    <context key="AmountValue" type="ConstantValue" value="19990000"/>^M
---------------------------------------------------------------------

 
Old December 15th, 2003, 10:28 AM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi I got some info. to my question. I see that XALAN processor replaces the new lines(or any whitespace characters) with ^M so is the case with VIM editor I see ^M character for EOL and this is not seen in a windows editors as the convention is different.

 
Old December 16th, 2003, 10:41 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Control M is the code for carriage return in ascii. How are you serialising your xml?

Joe (MVP - xml)





Similar Threads
Thread Thread Starter Forum Replies Last Post
help on xslt transformation li72 XSLT 2 March 4th, 2008 10:14 AM
Help on XSLT transformation li72 XSLT 2 February 22nd, 2008 12:33 PM
help with xslt transformation li72 XSLT 6 November 19th, 2007 01:51 PM
XSLT transformation using JDK 1.5.0 kgoldvas XSLT 4 October 30th, 2007 02:06 PM
XSLT transformation yengzhai XSLT 1 April 21st, 2005 05:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.