RE: change stylesheet encoding
David ; Michael, Thanks. I am glad to see that I was wrong about some of the ideas I had concerning stylesheet encodings compared to xml documents they are transforming. Life is alot easier as a result. What is wierd, is that a friend of mine tried to change the encoding in his editor of one of my stylesheets. But it would not let him. The editor said that the stylesheet had characters in it that violated the encoding choice. My question comes from his experience with my stylesheet. Now, the solution is simple. Mike Ferrando Washington, DC --- Michael Kay <mhk@xxxxxxxxx> wrote: > 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 > __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/
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