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

Re: XALAN!!

Subject: Re: XALAN!!
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Sat, 2 Mar 2002 12:38:25 -0800
omit xml declaration xalan
On Saturday 02 March 2002 09:23, William Rutford wrote:
> i have also declared the encoding in the xsl file which says
> <xsl:output encoding="ISO-8859-1" indent="yes"
> omit-xml-declaration="yes" method="text"/>
> but still it doesnt seem to be working
> can someone help me?

Somebody correct me if I'm wrong, but if omit-xml-declaration="yes", then the 
parser that reads in your outputted XML will think it is UTF-8?  If you want 
it to think it is ISO-8859-1 (which it is), then you have to output the XML 
declaration, because the <?xml version="1.0" encoding="ISO-8859-1"?> is where 
the parser figures out which encoding to use.

My suggestion is to try omit-xml-declaration="no".  See if that works.  Also 
make sure that you have a proper XML declaration in your source XML and your 
stylesheet.

-- 
Peter Davis
Humor in th Court:
Q: Do you drink when you're on duty?
A: I don't drink when I'm on duty, unless I come on duty drunk.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.