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

RE: Is it possible to get " " in output rather th

Subject: RE: Is it possible to get " " in output rather than the encoded character?
From: "Steven Reddie" <smr@xxxxxxxxxxxxxx>
Date: Thu, 20 May 2004 00:59:13 +1000
ascii nbsp
Hi David,

Whoops, it's getting late here and I forgot some stuff, thanks for picking
it up just before I finish for the day...

Output when xsl:output encoding="us-ascii":
	<html>\x0Ahello_?_world\x0A</html>

The byte stream that I get has extended ascii characters "translated" to
'?'.

What I was attempting to say before was that if I can't get us-ascii to work
properly then a workaround would be to use iso-8859-1 and do the translation
of non-printable characters to &#000; format myself.

The three results show that the encoding is being considered, but for
us-ascii the output is broken.  What I'm expecting is that the processor
should be smart enough to use the &#000; notation for extended ascii
characters when in us-ascii mode.  Maybe I'm expecting too much.

Again, I'd very much appreciate it if anyone can tell me if the bug appears
to be in the processor or in my understanding.

Regards,

Steven

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Thursday, 20 May 2004 12:31 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Is it possible to get "&nbsp;" in output rather than the
encoded character?



  Here is the output of the processor with non-printable
  bytes output in \xAA format:

So, that's correct then isn't it? You get a latin 1 no breaking space (byte
xA0) when you ask for iso-8859-1 and you get two bytes which I didn't check
but look like the correct utf8 bytes for a utf8 no breaking space when you
ask for utf-8.

David


-- 
The LaTeX Companion
  http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996
 
http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-06198
04


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The service
is powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.