URI's for local files
Posted: Wed Feb 16, 2005 8:39 pm
George et al,
Can you help me get straight in my confused mind what format(s) I can/should use for uri references to local files inside my xml? I know this is a vexing issue in a lot of contexts, and I'm trying to figure out what oxygen's understanding is driven by (Java, oxygen envrinoment, the parser being used or something else).
The relevant RFC's are evidently debated, as I understand it, but in the (practical) Mozilla world, either of the following are equally valid uri's for a file foo.bar on the local Windows C: drive:
(1) file://localhost/C:/foo.bar
(2) file:///C:/foo.bar
but Mozilla will also accept (after forcing a change to (2)):
(3) file:/C:/foo.bar
In my xml source with oxygen, it seems like (2) and (3) are okay, but (1) gives java.io.FileNotFoundException.
Is that a function of the parser, or the oxygen shell, or Java or something else? What *should* I be using (is there a best practice?)
John
Can you help me get straight in my confused mind what format(s) I can/should use for uri references to local files inside my xml? I know this is a vexing issue in a lot of contexts, and I'm trying to figure out what oxygen's understanding is driven by (Java, oxygen envrinoment, the parser being used or something else).
The relevant RFC's are evidently debated, as I understand it, but in the (practical) Mozilla world, either of the following are equally valid uri's for a file foo.bar on the local Windows C: drive:
(1) file://localhost/C:/foo.bar
(2) file:///C:/foo.bar
but Mozilla will also accept (after forcing a change to (2)):
(3) file:/C:/foo.bar
In my xml source with oxygen, it seems like (2) and (3) are okay, but (1) gives java.io.FileNotFoundException.
Is that a function of the parser, or the oxygen shell, or Java or something else? What *should* I be using (is there a best practice?)
John