tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Preston L. Bannister" <>
Subject RE: cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs
Date Mon, 29 Nov 1999 01:52:02 GMT
From: James Duncan Davidson []
> 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.

View raw message