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

Re: Special characters turn out as garbage in xslt->html con

Subject: Re: Special characters turn out as garbage in xslt->html conversion
From: Paul_Dick@xxxxxxxxx
Date: Fri, 8 Sep 2000 10:07:37 -0400
xslt html special character
Guðmundur writes:
>If however the html-attribute is "href" the output is
>like this in html:

      <a href="#%C3%81">&Aacute;</a>

>I have absolutely no idea why this happens and haven't
>been able to find any clues. This could of course be a
>bug in saxon for all I know. Any ideas?

I don't believe this is a bug.  Section 16.2 of the spec
states that the HTML output method should escape non-ASCII
characters in URI attribute values using the method recommended
in Section B.2.1 of the HTML 4.0 spec.

Section B.2.1 recommends;
"that user agents adopt the following convention for handling non-ASCII
characters in such cases:
1.Represent each character in UTF-8 (see [RFC2279]) as one or more bytes.
2.Escape these bytes with the URI escaping mechanism (i.e., by converting
each byte to %HH,
where HH is the hexadecimal notation of the byte value).


Paul


 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.