RE: change stylesheet encoding
To change the encoding of any XML document: (a) use your text editor to save it in a different encoding from the original (b) change the XML declaration to specify the new encoding. You don't need to worry about numeric character references. They refer to Unicode codepoint values, and don't change when the encoding changes. Michael Kay > -----Original Message----- > From: Mike Ferrando [mailto:mikeferrando@xxxxxxxxx] > Sent: 14 May 2004 20:11 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: change stylesheet encoding > > Friends, > I was wondering what is the best way to change the encoding in the > processing statement for an XSL stylesheet. > > I am concerned about users with xml documents with other encodings > trying to use the stylesheet. > > I originally wrote the stylesheet for UTF-8. However, I can't find > anything but ASCII text in it. There are some UTF-8 NCRs in it > (&#xA;, &#x20;), but that is about it. > > Is there a good way to check the character set in a stylesheet in > order to change it to another encoding? > > Specifically, I would like to change UTF-8 to ISO-8859-1. > > I use a text editor (Note Tab Pro) to write my stylesheets. > > Mike F. > Washington, DC > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com
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