[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Windows file path to uri (iri?) using xpath functions


Subject: RE: [xsl] Windows file path to uri (iri?) using xpath functions
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 21 Nov 2005 11:29:52 -0000

> 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.

Michael Kay
http://www.saxonica.com/


Current Thread