dtd help

Kevin P. Fleming kpfleming at linuxfromscratch.org
Tue Nov 4 09:49:30 PST 2003

Jamie Bennett wrote:

>>>>What about a "?" e.g.
>>>><!ELEMENT download       (file, url*, destination, digest?)>
>>>'?' means that in this case digest is optional.
>>So in this case '*' means that url is optional (and if used) repeatable?
> That's correct. Maybe if you are using download, url should be required?

No, <url> is not required for <download>. Without it, all <download> 
will do is check to ensure that the file is present, and that the digest 
matches if <digest> was supplied. Not really what you'd intend to use 
<download> for, but it will work that way.

More information about the alfs-discuss mailing list