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

RE: Using Entity References in XSL Templates

Subject: RE: Using Entity References in XSL Templates
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Fri, 21 Jan 2000 12:08:42 -0700
hex c2
> Another part of my problem was that a literal character #160 was
> mysteriously coming through not as a non-breaking space, but as a Â
> character, which is ANSI #194.

&#160; in an XML document always refers to UCS character code U+00A0. This
character must be encoded upon output in a document. If your document is
encoded as ISO-8859-1 or US-ASCII, the character will manifest as the single
byte A0 (in hex, or 160 in decimal). If your document is encoded with UTF-8,
it will be the pair of bytes C2 C0.

If you are looking at the UTF-8 encoded document in an editor or
shell/terminal window that doesn't know to interpret hex C2 C0 as a UTF-8
sequence, then you'll probably see  (the character in many character
sets/fonts at position hex C2, aka decimal 192) followed by an invisible
character (C0, which if interpreted as an ISO-8859-x character happens to be
invalid in HTML).

If you don't like the encoding your XSLT processor gives you normally, you
can use the encoding attribute on the xsl:output element to specify a
particular encoding (provided your processor knows how to deal with it).

Ref: http://www.w3.org/TR/xslt#output


 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.