This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Special entity characters in Shift-JIS XSL.



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]