|
Subject: Re: [xsl] Windows file path to uri (iri?) using xpath functions From: andrew welch <andrew.j.welch@xxxxxxxxx> Date: Mon, 21 Nov 2005 11:57:38 +0000 |
On 11/21/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > doesn't
> > concat('file:///',translate($filepath,'\','/'))
> > fit the bill
>
> Yes, 99% of the time. It depends whether that's good enough. For example,
> this doesn't give you a valid IRI if the filename contains a "#" character.
This is exactly what I'm doing now, I was hoping for a function that
accepts anything windows accepts and returns a valid IRI.
Doing a concat and a translate seems a bit clunky...
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Windows file path to uri , Michael Kay | Thread | Re: [xsl] Windows file path to uri , andrew welch |
| RE: [xsl] Windows file path to uri , Michael Kay | Date | Re: [xsl] Windows file path to uri , andrew welch |
| Month |