xsl-list
[Top] [All Lists]

Re: [xsl] Unescaping URIs?

2011-02-15 08:08:44
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(_at_)fgeorges(_dot_)org> 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/




     

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>