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

RE: escaping/entities on the fly?

Subject: RE: escaping/entities on the fly?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 3 Mar 2005 17:34:36 -0000
escaping entities
Non-Ascii characters in a URI should be escaped using the %HH convention,
rather than using XML escaping.

XSLT 2.0 provides a function escape-uri() to achieve this.

In 1.0, it happens automatically when you use the HTML serialization method
if the URI appears in an attribute such as <a href="..."> that is known to
require a URI as its value.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Gabriel K. [mailto:gabriel.klappenbach@xxxxxxxxxxxx]
> Sent: 03 March 2005 17:11
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  escaping/entities on the fly?
>
> I'm creating an URL (a mailto: link) that uses characters not
> allowed,
> encoded in ISO-8859-1. The characters are for instance e d v.
> So when when you click the mailto link and a new mail is
> created, these
> characters in the subject line are not readable.
>
> Is there a function or some other way to convert for instance
> the character
> "e" to  &aring; or it's entity number  &#229; on the fly?
> I don't want to have these (entities) in the XML file.
>
> /Gabriel

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.