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

Re: Special entity characters in Shift-JIS XSL.

Subject: Re: Special entity characters in Shift-JIS XSL.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 16 Mar 2000 22:53:06 GMT
xsl output encoding shift jis
> Is there a way in which I can specify UTF-8 encoding and output a ASCII
> sequence. I should be able to see the file in any text editor so can I code
> all the characters as &#nnnn??

you can code (in the input) all characters as &#nnnn; whatever your
output encoding.

To force the output to be encoded as ascii and have all non ascii
characters output as numeric references then (if the xslt system
supports the encoding) you can say
<xsl:output encoding="us-ascii"/>
saxon supports ascii output xt doesnt, I am not sure about the rest.
There is no _obligation_ on an xslt system to support xml output
encodings.

Note however if you do this you won't be able to output any documents
that use non ascii characters in element or attribute names.
<xxx&#2345; /> is not well formed XML.

David


 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.