[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: change stylesheet encoding

Subject: RE: change stylesheet encoding
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Fri, 14 May 2004 15:28:18 -0700 (PDT)
change stylesheet
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

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
> > (&amp;#xA;, &amp;#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.

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.