|
Subject:
|
XSLT transformation causes ^M
|
|
Posted By:
|
reddygaru
|
Post Date:
|
12/15/2003 7:58:46 AM
|
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 <!-- Initials for components -->^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 <!-- amounts context -->^M <!-- THE amount (199.90 $ -> 206.63 EUR) -->^M <context key="AmountValue" type="ConstantValue" value="19990000"/>^M ---------------------------------------------------------------------
|
|
Reply By:
|
reddygaru
|
Reply Date:
|
12/15/2003 9:28:13 AM
|
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.
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
12/16/2003 9:41:44 AM
|
Control M is the code for carriage return in ascii. How are you serialising your xml?
Joe (MVP - xml)
|