Altova Mailing List Archives


Re: [xsl] [XPath20] Decoding URIs

From: Colin Paul Adams <colin@------------------>
To:
Date: 11/3/2005 11:20:00 AM
>>>>> "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

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.