Re: [xsl] [XPath20] Decoding URIs

Subject: Re: [xsl] [XPath20] Decoding URIs
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 02 Nov 2005 05:41:03 +0000
>>>>> "Christian" == Christian Roth <roth@xxxxxxxxxxxxxx> writes:

    Christian> I see there is fn:encode-for-uri, but I cannot find its
    Christian> counterpart.

There's no need for one, I would have said.

    Christian> Suppose I have this source XML:

    Christian>   <elem uri="cust:/dir/a%20value" />

    Christian> How can I set a variable x to hold the string
    Christian> "cust:/dir/a value"?

You could write an xsl:function to do it.
N.B. the result will not be a valid URI.
-- 
Colin Adams
Preston Lancashire

Current Thread