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

RE: Upper ASCII chars

Subject: RE: Upper ASCII chars
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 09:14:39 -0000
kay ascii
> I'm having trouble getting upper ASCII chars to output the
> way I need them
> to.

Oh dear: "upper ASCII". There's no such thing. ASCII stops at 0x7F. A good
first rule in understanding character coding issues is to get your
terminology straight!

  (I've pared down my examples below to just the relevant
> info.)  The
> XML data looks like the following :
>
>    <param
> name="input1">&#163;&#169;&#174;&#196;&#203;&#211;&#225;&#246;
> &#255;.DTD</param>
>
> I output two versions of this data to two different files.
...
> The second file is an HTML page...
>
> I get the following in the file:
>
>    <param name="input1"
> value="&pound;&copy;&reg;&Auml;&Euml;&Oacute;&aacute;&ouml;&yu
> ml;.DTD">
>
> What I want, though, is:
>
>    <param name="input1" value="£©®ÄËÓáöÿ.DTD">
>
> Is there a way to achieve this?
>
Not in standard XSLT. The two HTML files are equivalent, they result in the
same output from the browser, so you aren't supposed to care which is
produced.

Nevertheless, many people do care, so some processors give you a way of
controlling it. Saxon has an attribute saxon:character-representation, and I
think Xalan has some kind of configuration file.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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.