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

RE: How generate encoding="ISO-8859-1" in the XML outp

Subject: RE: How generate encoding="ISO-8859-1" in the XML output?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 9 May 2001 18:16:48 +0100
xml encoding iso 88
> Can any body tell me how cal generate <?xml version="1.0"
> encoding="ISO-8859-1"?>  in the XML output
> because   MSXML generates <?xml version="1.0"
> encoding="UTF-16"?> discard
> the sentence
>  <xsl:output method="xml" indent="yes" encoding="ISO-8859-1" />?

The answer is to call MSXML in such a way that the output goes to a stream
and not to a DOM. If you send the transformation output to a DOM and then
use the DOM serializer, the xsl:output element has no effect.
>
> The only way I've found is
>
>          <xsl:text disable-output-escaping='yes'>&lt;?xml
> version="1.0"
> encoding="ISO-8859-1"?></xsl:text>
>

That will put something that looks like an XML declaration into the output
stream, but do you really want the output just to say it's encoded in
ISO-8859-1, or do you want it actually to be encoded in ISO-8859-1?

Mike Kay
Software AG


 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.