xsl-list
[Top] [All Lists]

RE: global find and replace certain "special" characters and replicate structure as it is

2004-09-08 10:18:46
The Source XML as generated by Infopath:
Encoding: UTF-8
Character in Hex: c2

Output XML generated after XSL Transform:
Encoding: UTF-8
Character in Hex: a0

I essentially want to "eliminate" or be able to "replace" these characters 
globally either from the source XML before applying my other transforms & 
templates or after the transforms have been applied. 

Kindly advise.

Thanks,

Abhishek
____________________________________________________________

Abhishek Sanwal
HP - Houston Campus


-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk] 
Sent: Wednesday, September 08, 2004 2:40 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] global find and replace certain "special" characters and 
replicate structure as it is


I am using Infopath to collect rich text from a word document 
and for some weird reason the output I get in the XML has the 
special  character in it. 

I understand that the UTF-8 encoding etcetra causes it to be 
visible that way. 


The first thing is to discover whether the XML is actually incorrect, or
whether it is simply being displayed incorrectly. To help you answer that
question, we need to know (a) what encoding is specified in the XML
declaration (assuming there is one), and (b) what the actual bytes (octets)
in the file are. You can find this out using a hex editor.

Michael Kay


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--