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

RE: [XPath20] Decoding URIs

Subject: RE: [XPath20] Decoding URIs
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Nov 2005 23:07:07 -0000
xsl url decode
Sadly, there is no function for this. It was requested at a fairly late
stage in the game but no-one volunteered to do to the specification work,
especially as there was a good chance it wouldn't get in since there's a lot
of resistance to incremental growth in the function library.

An obvious candidate for an extension function, but I've promised to do some
decorating next weekend.

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

> -----Original Message-----
> From: Christian Roth [mailto:roth@xxxxxxxxxxxxxx] 
> Sent: 01 November 2005 22:44
> To: XSL List
> Subject:  [XPath20] Decoding URIs
> 
> Hi,
> 
> is there a method in XPath 2.0 - Functions to decode a URL (resp. its
> fragment identifier part)? Or is this done by some way of casting?
> 
> I see there is fn:encode-for-uri, but I cannot find its counterpart.
> 
> Suppose I have this source XML:
> 
> 
>   <elem uri="cust:/dir/a%20value" />
> 
> 
> How can I set a variable x to hold the string "cust:/dir/a value"?
> 
> 
> Regards, Christian.

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.