From: James Duncan Davidson [mailto:james.davidson@eng.sun.com]
> The solution I'm currently mulling over is to whitespace delimit. If
> there's path with spaces, quote it... So it would look like:
>
> <...list="dir1 dir2 'c:\program files\foo'".../>
>
> Then, anything that was a '/' or a '\' would be treated as a directory
> seperator.
>
> Comments?
A mild concern - The most common error is to write:
<...list="dir1 dir2 c:\program files\foo".../>
Explicit seperator characters (as used in English) are perhaps slightly
better as they are a bit more visual:
<...list="dir1,dir2,c:\program files\foo".../>
<...list="dir1;dir2;c:\program files\foo".../>
(Having just read the XML book :) - Isn't this where we should use elements
rather than an attribute? You can only have one instance of an attribute.
You can have any number of elements.
|