Re: [xsl] document( URI ) with accented chars fails

Subject: Re: [xsl] document( URI ) with accented chars fails
From: "Alexandre Hoïde alexandre.hoide@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Nov 2020 22:51:25 -0000
On Tue, Nov 17, 2020 at 09:26:23PM -0000, Michael Kay mike@xxxxxxxxxxxx wrote:
> The document() function expects a URI, not a filename, and URIs never contain accented characters.
> 
> XSLT 2.0+ has functions to escape special characters using %HH escapes so you can turn arbitrary filenames into valid URIs.
> 
> For xsltproc you'll need some processor-specific solution and I can't help you with that.

Thanks for your help Michael.

I'll find a way to URI-encode the filepath's. There seems to be a
couple.

b& for instance :
$ sudo apt-get install gridsite-clients
   which provides `urlencode`
  (https://www.urlencoder.net/linux-urlencode)

that or perl/python modulesb&

Thanks again and best regards,
Alexandre HoC/de

Current Thread