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

Re: nbsp and copy-of and output xml

Subject: Re: nbsp and copy-of and output xml
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 18 Aug 2008 20:11:34 +0100
Re:  nbsp and copy-of and output xml
> The thing is: when I use #160 the non-breaking space is displayed as
> this "special character". So the whole calendar collapses.

This is a really common problem... google for #160 and multibyte utf-8
character to see all of the previous posts and answers about it.

In this case, ensure you're outputting the correct meta - yours currently says:

<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">

but the charset should be utf-8 - (the "special character" is the
first byte of the 2 bytes used for #160 in utf-8, which is visible
because you're reading it in the single byte encoding 8859-1)

That's first step of many that might be needed, but it may be sufficient.


> Maybe you have some addresses where I can find sample code to produce
> ouptut="xhtml". Just need a little idea how to do this.

Instead of Xalan, use Saxon (from www.saxonica.com) and then just use
the xhtml output method.  Anyone currently using Xalan should use
Saxon and XSLT 2.0.


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.