xsl-list
[Top] [All Lists]

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

2005-11-21 04:29:52
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--