In XSLT 2.0, why is there no fn:decode-for-uri? -


i have uri encoded string in xml can't decode using xslt.

there fn:encode-for-uri encode string

but no decode-for-uri decode.

  1. is there function have missed?
  2. if not, why not exist?

michael kay answered question here:

no there's no such function.

as matter of interest, what's use case?

i think reasons it's not there (a) absence of use case, , (b) difficulty in detail of specifying it: do example percent signs aren't followed 2 hex digits.

(b) seems easy enough solve: either behavior implementation dependent, or processor throw runtime error. maybe there's more question i'm aware of.

update: this follow-up post (in same thread linked above) shows xslt implementation of function decode percent-encoded (unreserved) characters.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -