Re: document( URI ) with accented chars fails

"Alexandre Hoïde [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
On Tue, Nov 17, 2020 at 09:26:23PM -0000, Michael Kay [email protected] 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.

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

that or perl/python modules…

Thanks again and best regards,
Alexandre Hoïde
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.