Re: Hyperlink question: URL syntax
Hubert Christiaen wrote: > An URL is composed of > - a protocol part ended with ':' ftp:' 'http:' or 'file:' This is the URI scheme. It doesn't necessarily name a "protocol". > - an address of the server starting with '//' and ending in '/' > if the server is the localmachine, one can put 'localhost' or sometimes > also > just nothing. In this case you have for a file on your machine > already 'file:///' ! > - then follows the location on the server, which is a bit OS dependent ... The main point, in a case like this, is that the backslash (\) is not a valid URI character, nor is it the URI component separator for a hierarchical path. A valid file-scheme URL must use the forward slash (/). There's nothing OS-dependent about that; it's required by the URI specification. -- Michael Wojcik Micro Focus Rhetoric & Writing, Michigan State University
Re: Hyperlink question: URL syntax
On maandag 12 januari 2009, Tao Cumplido wrote: > "file:///c:/file.txt". (Actually, even that isn't strictly valid; the > > >"c:" ought to be "c|". But everyone uses and supports "c:".) > > Ok that kind of works. > But how am I supposed to know that the directory has to be written like > this? There's no mention about this in the Hyperlink-chapter of the manual. An URL is composed of - a protocol part ended with ':' ftp:' 'http:' or 'file:' - an address of the server starting with '//' and ending in '/' if the server is the localmachine, one can put 'localhost' or sometimes also just nothing. In this case you have for a file on your machine already 'file:///' ! - then follows the location on the server, which is a bit OS dependent ... Hope this helps! Sincerely, Hubert -- Hubert Christiaen Bloesemlaan 17 3360 Korbeek-Lo Belgium