[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XALAN!!
> > 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. Both omit-xml-declaration="yes" or omit-xml-declaration="no" have no meaning here, since there's method="text" specified. This means, that the output will be plain text (not xml) and due to this will not contain any xml declaration. Thus the whole problem is what tool is used to read and display the generated text. Cheers, Dimitre Novatchev. __________________________________________________ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|