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

Re: Unescaping URIs?

Subject: Re: Unescaping URIs?
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Tue, 15 Feb 2011 08:08:32 -0600
Re:  Unescaping URIs?
OK, my use case is I need to take URIs and generate platform-specific file
paths from them. I want to do this in XSLT to avoid dependencies on
extension functions. For example, I am generating Ant scripts that require
filenames (must support Ant pre 1.8) and thus I have to be able to unescape
URIs.

I'm not sure I understand why the unescaping process is controversial--I
think the rules for escaping and thus unescaping are clear.

In the case of a % not followed by either another % or two digits, you have
a badly-formed escaped URI and must throw an exception. But I need to review
the relevant URI specs before I proceed. I cannot claim any particular
expertise in URI details at the moment.

Cheers,

E.

On 2/15/11 5:38 AM, "Florent Georges" <lists@xxxxxxxxxxxx> wrote:

> Eliot Kimber wrote:
>
>   Hi,
>
>> Poking about it looks like there is no built-in XSLT mechanism for
>> unescaping.  The last message on this list is Mike Kay's from 2006
>> saying "We [the XSLT WG] decided it couldn't provide a complete
>> solution."
>
>> Is this still true?
>
>   Yes and no.  Yes this is still not supported, and no, latest Mike's
> email on that subject is from 20 Nov 2009 ;-)
>
>     http://xsl.markmail.org/thread/nt3hjtdizvz2ltvx
>
>   Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
>

--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 512.554.9368
www.reallysi.com
www.rsuitecms.com

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.