Re: [xsl] [XPath20] Decoding URIs

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

    >> You could write an xsl:function to do it.

    Christian> If that is possible without having to resort to a
    Christian> custom extension function as Michael Kay suggested
    Christian> earlier, I'd really love to see that.

I'm sure it is.

    Christian> I guess it probably is possible to decode a "%XX"
    Christian> character sequence into the respective integer using
    Christian> the "Functions on Numeric Values" and some
    Christian> <xsl:choose>. Then, I'd have to implement an UTF-8
    Christian> decoder (might also be possible, I guess) and then use
    Christian> fn:codepoints-to-string().

Yes. This is what I had in mind. I don't think it will be difficult.
-- 
Colin Adams
Preston Lancashire

Current Thread