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

Re:   is being displayed as Á

Subject: Re:   is being displayed as Á
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Tue, 11 Dec 2001 19:12:42 +0000
trevor nash
Theo wrote:

>Ok then, since I *have* consulted the FAQ (and seem to be missing this).
>Could somebody explain to my WHY '&amp;' translates to '&' but '&amp;nbsp;'
>doesn't change at all?
>
'&amp;' should end up as '&amp;' except in specific circumstances
listed in 16.2 of the XSLT spec - for example, inside a <script>
element (assuming you are using output method html).  Are you really
telling us that '&amp;&amp;nbsp;' ends up as '&&amp;nbsp' ??

>And, how would you suggest someone actually get '&nbsp;' into the output in
>order to avoid  the issue which started this thread in the first place?
>(browsers assuming a different encoding type than is sent, and therefore
>mistranslating character 160 as 'A' instead of ' '?  I have yet to see a
>browser which misunderstands '&nbsp;'.
>
Persevere.  The problem is, if &#160; is going wrong because of
mis-interpreting the character encoding, then other characters will go
wrong too: accented characters for example.  Generating &nbsp; doesn't
fix the problem.

>For the record, the FAQ does not seem to contain an explanation of why this
>doesn't work.  All I can find is the solution of using '&#160;' instead.  A
>search of the archives for 'nbsp;' turnes up ABSOLUTELY NOTHING!!!!  As for
>the XSLT spec, I've tried reading it.
>
On searching the archives: try 'nbsp' and check the 'partial match'
box.  By default the search is for whole words.

>Also for the record, it took three responses to this error on my part for
>someone to bother to: a) be civil, and/or b) explain WHY the output one
>would expect isn't what you *actually* get.  Thank you, Michael Kay.
>
>David Carlisle, if there are as you said, "...an average of 1001 posting a
>week for explanations of why this is the case." please let me know what to
>search for in the archive to find ONE of them.  Until then get of your
>high-horse.
>
The answers you get from this list are free.  We all try to be patient
and accurate in our answers, but now you know how to search the
archive you will see that the &nbsp; issue is a bit over-worked.
That's not your fault (or ours) - it has a lot to do with browsers not
properly implementing standards.

Regards,
Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 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.