Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] [XPath20] Decoding URIs

From: "Michael Kay" <mike@------------>
To:
Date: 11/1/2005 11:08:00 PM
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: [xsl] [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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent